> struct kvm_arch_async_pf { > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 3089942f6630..431718309359 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -135,6 +135,8 @@ struct kvm_sev_info { > int fd; /* SEV device fd */ > unsigned long pages_locked; /* Number of pages locked */ > struct list_head regions_list; /* List of registered regions */ > + unsigned long *page_enc_bmap; > + unsigned long page_enc_bmap_size; > }; > Just a high level question. Would it be better for these bitmaps to live in kvm_memory_slot and the ioctl to be take a memslot instead of a GPA + length? The c-bit status bitmap will probably need to be checked at when checking the dirty log and KVM_GET_DIRTY_LOG operations on memslots.