Skip to contentSkip to conversation

KVM: Fix EPT identity page location

PATCH Applied Sheng Yang 2 participants 4 messages Aug 3, 2009 – Aug 4, 2009

Subsystems (3)
lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

PATCH 1/1 KVM: Fix EPT identity page location

Should be new ept_identity_map_addr rather than old macro.

---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
index 7931c72..c5aaa1b 100644
@@ -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
author
#1 lore raw

PATCH 1/1 kvm: fix set_ept_identity_addr() in pae

The argument to kernel space should be u64 rather than unsigned long.

---
 qemu-kvm-x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-kvm-x86.c +1 -1
index 492dbc5..5fa89e8 100644
@@ -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
Applied
#2 lore raw

Re: [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
Applied
#3 lore raw
In reply to Sheng Yang
Quoted 2 lines · Sheng Yang

Should be new ept_identity_map_addr rather than old macro.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function