* [PATCH 1/2] KVM MMU: remove unused field
@ 2010-04-06 10:29 Xiao Guangrong
2010-04-06 10:31 ` [PATCH 2/2] KVM MMU: remove unnecessary judgement Xiao Guangrong
2010-04-07 15:49 ` [PATCH 1/2] KVM MMU: remove unused field Marcelo Tosatti
0 siblings, 2 replies; 3+ messages in thread
From: Xiao Guangrong @ 2010-04-06 10:29 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, KVM list, LKML
kvm_mmu_page.oos_link is not used, so remove it
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
arch/x86/include/asm/kvm_host.h | 2 --
arch/x86/kvm/mmu.c | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 26c629a..0c49c88 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -187,8 +187,6 @@ struct kvm_mmu_page {
struct list_head link;
struct hlist_node hash_link;
- struct list_head oos_link;
-
/*
* The following two entries are used to key the shadow page in the
* hash table.
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index d7700bb..8dfe8eb 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -922,7 +922,6 @@ static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu,
sp->gfns = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_cache, PAGE_SIZE);
set_page_private(virt_to_page(sp->spt), (unsigned long)sp);
list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages);
- INIT_LIST_HEAD(&sp->oos_link);
bitmap_zero(sp->slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS);
sp->multimapped = 0;
sp->parent_pte = parent_pte;
--
1.6.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] KVM MMU: remove unnecessary judgement
2010-04-06 10:29 [PATCH 1/2] KVM MMU: remove unused field Xiao Guangrong
@ 2010-04-06 10:31 ` Xiao Guangrong
2010-04-07 15:49 ` [PATCH 1/2] KVM MMU: remove unused field Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Xiao Guangrong @ 2010-04-06 10:31 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, KVM list, LKML
After is_rsvd_bits_set() checks, EFER.NXE must be enabled if NX bit is seted
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
arch/x86/kvm/paging_tmpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h
index 067797a..d9dea28 100644
--- a/arch/x86/kvm/paging_tmpl.h
+++ b/arch/x86/kvm/paging_tmpl.h
@@ -170,7 +170,7 @@ walk:
goto access_error;
#if PTTYPE == 64
- if (fetch_fault && is_nx(vcpu) && (pte & PT64_NX_MASK))
+ if (fetch_fault && (pte & PT64_NX_MASK))
goto access_error;
#endif
--
1.6.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] KVM MMU: remove unused field
2010-04-06 10:29 [PATCH 1/2] KVM MMU: remove unused field Xiao Guangrong
2010-04-06 10:31 ` [PATCH 2/2] KVM MMU: remove unnecessary judgement Xiao Guangrong
@ 2010-04-07 15:49 ` Marcelo Tosatti
1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2010-04-07 15:49 UTC (permalink / raw)
To: Xiao Guangrong; +Cc: Avi Kivity, KVM list, LKML
On Tue, Apr 06, 2010 at 06:29:05PM +0800, Xiao Guangrong wrote:
> kvm_mmu_page.oos_link is not used, so remove it
>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
> ---
> arch/x86/include/asm/kvm_host.h | 2 --
> arch/x86/kvm/mmu.c | 1 -
> 2 files changed, 0 insertions(+), 3 deletions(-)
Applied both, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-07 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 10:29 [PATCH 1/2] KVM MMU: remove unused field Xiao Guangrong
2010-04-06 10:31 ` [PATCH 2/2] KVM MMU: remove unnecessary judgement Xiao Guangrong
2010-04-07 15:49 ` [PATCH 1/2] KVM MMU: remove unused field Marcelo Tosatti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.