]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
KVM: SVM: Add clean-bit for IOPM_BASE and MSRPM_BASE
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 3 Dec 2010 10:45:50 +0000 (11:45 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:25 +0000 (11:30 +0200)
This patch adds the clean bit for the physical addresses of
the MSRPM and the IOPM. It does not need to be set in the
code because the only place where these values are changed
is the nested-svm vmrun and vmexit path. These functions
already mark the complete VMCB as dirty.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c

index 052561c347531ffbcb2a6ba9c7b1479fd31b8e30..284c34c997a441ba6174769a29432e2acb4c781f 100644 (file)
@@ -188,6 +188,7 @@ static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,
 enum {
        VMCB_INTERCEPTS, /* Intercept vectors, TSC offset,
                            pause filter count */
+       VMCB_PERM_MAP,   /* IOPM Base and MSRPM Base */
        VMCB_DIRTY_MAX,
 };