blob: 8ec10ef861e74cd7c9f228f0a79306b4ed40d68d [file] [log] [blame]
Anup Patel99cdc6c2021-09-27 17:10:01 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Western Digital Corporation or its affiliates.
4 *
5 * Authors:
6 * Anup Patel <anup.patel@wdc.com>
7 */
8
9#include <linux/bitops.h>
10#include <linux/errno.h>
11#include <linux/err.h>
12#include <linux/hugetlb.h>
13#include <linux/module.h>
14#include <linux/uaccess.h>
15#include <linux/vmalloc.h>
16#include <linux/kvm_host.h>
17#include <linux/sched/signal.h>
18#include <asm/page.h>
19#include <asm/pgtable.h>
20
21void kvm_arch_sync_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot)
22{
23}
24
25void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free)
26{
27}
28
29void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen)
30{
31}
32
33void kvm_arch_flush_shadow_all(struct kvm *kvm)
34{
35 /* TODO: */
36}
37
38void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
39 struct kvm_memory_slot *slot)
40{
41}
42
43void kvm_arch_commit_memory_region(struct kvm *kvm,
44 const struct kvm_userspace_memory_region *mem,
45 struct kvm_memory_slot *old,
46 const struct kvm_memory_slot *new,
47 enum kvm_mr_change change)
48{
49 /* TODO: */
50}
51
52int kvm_arch_prepare_memory_region(struct kvm *kvm,
53 struct kvm_memory_slot *memslot,
54 const struct kvm_userspace_memory_region *mem,
55 enum kvm_mr_change change)
56{
57 /* TODO: */
58 return 0;
59}
60
Anup Patel9f701322021-09-27 17:10:06 +053061int kvm_riscv_stage2_map(struct kvm_vcpu *vcpu,
62 struct kvm_memory_slot *memslot,
63 gpa_t gpa, unsigned long hva, bool is_write)
64{
65 /* TODO: */
66 return 0;
67}
68
Anup Patel99cdc6c2021-09-27 17:10:01 +053069void kvm_riscv_stage2_flush_cache(struct kvm_vcpu *vcpu)
70{
71 /* TODO: */
72}
73
74int kvm_riscv_stage2_alloc_pgd(struct kvm *kvm)
75{
76 /* TODO: */
77 return 0;
78}
79
80void kvm_riscv_stage2_free_pgd(struct kvm *kvm)
81{
82 /* TODO: */
83}
84
85void kvm_riscv_stage2_update_hgatp(struct kvm_vcpu *vcpu)
86{
87 /* TODO: */
88}