* [PATCH] KVM: Fix EPT identity page location
@ 2009-08-03 16:23 Sheng Yang
2009-08-03 16:23 ` [PATCH] kvm: fix set_ept_identity_addr() in pae Sheng Yang
2009-08-04 11:58 ` [PATCH] KVM: Fix EPT identity page location Avi Kivity
0 siblings, 2 replies; 4+ messages in thread
From: Sheng Yang @ 2009-08-03 16:23 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, Jan Kiszka, kvm, Sheng Yang
Should be new ept_identity_map_addr rather than old macro.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
arch/x86/kvm/vmx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 7931c72..c5aaa1b 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -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;
--
1.5.4.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] kvm: fix set_ept_identity_addr() in pae
2009-08-03 16:23 [PATCH] KVM: Fix EPT identity page location Sheng Yang
@ 2009-08-03 16:23 ` Sheng Yang
2009-08-04 11:59 ` Avi Kivity
2009-08-04 11:58 ` [PATCH] KVM: Fix EPT identity page location Avi Kivity
1 sibling, 1 reply; 4+ messages in thread
From: Sheng Yang @ 2009-08-03 16:23 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, Jan Kiszka, kvm, Sheng Yang
The argument to kernel space should be u64 rather than unsigned long.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
qemu-kvm-x86.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 492dbc5..5fa89e8 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -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;
--
1.5.4.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM: Fix EPT identity page location
2009-08-03 16:23 [PATCH] KVM: Fix EPT identity page location Sheng Yang
2009-08-03 16:23 ` [PATCH] kvm: fix set_ept_identity_addr() in pae Sheng Yang
@ 2009-08-04 11:58 ` Avi Kivity
1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-08-04 11:58 UTC (permalink / raw)
To: Sheng Yang; +Cc: Marcelo Tosatti, Jan Kiszka, kvm
On 08/03/2009 07:23 PM, Sheng Yang wrote:
> Should be new ept_identity_map_addr rather than old macro.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kvm: fix set_ept_identity_addr() in pae
2009-08-03 16:23 ` [PATCH] kvm: fix set_ept_identity_addr() in pae Sheng Yang
@ 2009-08-04 11:59 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-08-04 11:59 UTC (permalink / raw)
To: Sheng Yang; +Cc: Marcelo Tosatti, Jan Kiszka, kvm
On 08/03/2009 07:23 PM, Sheng Yang wrote:
> The argument to kernel space should be u64 rather than unsigned long.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-04 11:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 16:23 [PATCH] KVM: Fix EPT identity page location Sheng Yang
2009-08-03 16:23 ` [PATCH] kvm: fix set_ept_identity_addr() in pae Sheng Yang
2009-08-04 11:59 ` Avi Kivity
2009-08-04 11:58 ` [PATCH] KVM: Fix EPT identity page location Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox