KVM: Fix EPT identity page location
PATCH 1/1 KVM: Fix EPT identity page location
Should be new ept_identity_map_addr rather than old macro.
Signed-off-by Sheng Yang <[email protected]>
--- arch/x86/kvm/vmx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
@@ -2199,7 +2199,7 @@ static int alloc_identity_pagetable(struct kvm *kvm) goto out; kvm->arch.ept_identity_pagetable =gfn_to_page (kvm, -VMX_EPT_IDENTITY_PAGETABLE_ADDR >>PAGE_SHIFT ); + kvm->arch.ept_identity_map_addr >>PAGE_SHIFT ); out:up_write (&kvm->slots_lock);return r;
Signature · 1 line
1.5.4.5
PATCH 1/1 kvm: fix set_ept_identity_addr() in pae
The argument to kernel space should be u64 rather than unsigned long.
Signed-off-by Sheng Yang <[email protected]>
--- qemu-kvm-x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-kvm-x86.c +1 -1
@@ -73,7 +73,7 @@ static int kvm_init_tss(kvm_context_t kvm)return 0 ; } -static int kvm_set_identity_map_addr (kvm_context_t kvm,unsigned long addr) +static int kvm_set_identity_map_addr (kvm_context_t kvm,uint64_t addr) {#ifdef KVM_CAP_SET_IDENTITY_MAP_ADDR int r;
Signature · 1 line
1.5.4.5
Avi Kivity
AppliedRe: [PATCH] kvm: fix set_ept_identity_addr() in pae
Quoted 2 lines · Sheng Yang
The argument to kernel space should be u64 rather than unsigned long.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function
Avi Kivity
AppliedQuoted 2 lines · Sheng Yang
Should be new
ept_identity_map_addrrather than old macro.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function