File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1115,6 +1115,8 @@ struct kvm *kvm_arch_alloc_vm(void);
1115
1115
1116
1116
#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS
1117
1117
1118
+ #define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS_RANGE
1119
+
1118
1120
static inline bool kvm_vm_is_protected (struct kvm * kvm )
1119
1121
{
1120
1122
return false;
Original file line number Diff line number Diff line change @@ -172,6 +172,14 @@ int kvm_arch_flush_remote_tlbs(struct kvm *kvm)
172
172
return 0 ;
173
173
}
174
174
175
+ int kvm_arch_flush_remote_tlbs_range (struct kvm * kvm ,
176
+ gfn_t gfn , u64 nr_pages )
177
+ {
178
+ kvm_tlb_flush_vmid_range (& kvm -> arch .mmu ,
179
+ gfn << PAGE_SHIFT , nr_pages << PAGE_SHIFT );
180
+ return 0 ;
181
+ }
182
+
175
183
static bool kvm_is_device_pfn (unsigned long pfn )
176
184
{
177
185
return !pfn_is_map_memory (pfn );
You can’t perform that action at this time.
0 commit comments