* [PATCH] KVM: MMU: unnecessary NX state assignment
@ 2012-01-06 14:06 Davidlohr Bueso
2012-01-10 12:22 ` Davidlohr Bueso
2012-01-10 12:39 ` Marcelo Tosatti
0 siblings, 2 replies; 3+ messages in thread
From: Davidlohr Bueso @ 2012-01-06 14:06 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: lkml, kvm
From: Davidlohr Bueso <dave@gnu.org>
We can remove the first ->nx state assignment since it is assigned afterwards anyways.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
arch/x86/kvm/mmu.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index f1b36cf..efc0dd2 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -3320,7 +3320,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
context->get_cr3 = get_cr3;
context->get_pdptr = kvm_pdptr_read;
context->inject_page_fault = kvm_inject_page_fault;
- context->nx = is_nx(vcpu);
if (!is_paging(vcpu)) {
context->nx = false;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] KVM: MMU: unnecessary NX state assignment
2012-01-06 14:06 [PATCH] KVM: MMU: unnecessary NX state assignment Davidlohr Bueso
@ 2012-01-10 12:22 ` Davidlohr Bueso
2012-01-10 12:39 ` Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Davidlohr Bueso @ 2012-01-10 12:22 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, lkml, kvm
ping
On Fri, 2012-01-06 at 15:06 +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
>
> We can remove the first ->nx state assignment since it is assigned afterwards anyways.
>
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
> arch/x86/kvm/mmu.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
> index f1b36cf..efc0dd2 100644
> --- a/arch/x86/kvm/mmu.c
> +++ b/arch/x86/kvm/mmu.c
> @@ -3320,7 +3320,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
> context->get_cr3 = get_cr3;
> context->get_pdptr = kvm_pdptr_read;
> context->inject_page_fault = kvm_inject_page_fault;
> - context->nx = is_nx(vcpu);
>
> if (!is_paging(vcpu)) {
> context->nx = false;
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] KVM: MMU: unnecessary NX state assignment
2012-01-06 14:06 [PATCH] KVM: MMU: unnecessary NX state assignment Davidlohr Bueso
2012-01-10 12:22 ` Davidlohr Bueso
@ 2012-01-10 12:39 ` Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2012-01-10 12:39 UTC (permalink / raw)
To: Davidlohr Bueso; +Cc: Avi Kivity, lkml, kvm
On Fri, Jan 06, 2012 at 03:06:18PM +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
>
> We can remove the first ->nx state assignment since it is assigned afterwards anyways.
>
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
> arch/x86/kvm/mmu.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-10 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06 14:06 [PATCH] KVM: MMU: unnecessary NX state assignment Davidlohr Bueso
2012-01-10 12:22 ` Davidlohr Bueso
2012-01-10 12:39 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox