kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.
@ 2009-04-16 10:11 Zhang, Xiantao
  2009-04-16 13:08 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2009-04-16 10:11 UTC (permalink / raw)
  To: Avi Kivity, kvm-ia64@vger.kernel.org; +Cc: kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

>From dcb73b5db2e91213a2536542945645caaf23bfe3 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Thu, 16 Apr 2009 17:59:16 +0800
Subject: [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.

Flush all vcpu's TLB entries once changes guest's memory mapping.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 arch/ia64/kvm/kvm-ia64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 112b402..2a88e42 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1629,6 +1629,7 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
 
 void kvm_arch_flush_shadow(struct kvm *kvm)
 {
+	kvm_flush_remote_tlbs(kvm);
 }
 
 long kvm_arch_dev_ioctl(struct file *filp,
-- 
1.6.0


[-- Attachment #2: 0001-KVM-ia64-Flush-all-TLBs-once-guest-s-memory-mappin.patch --]
[-- Type: application/octet-stream, Size: 815 bytes --]

From dcb73b5db2e91213a2536542945645caaf23bfe3 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Thu, 16 Apr 2009 17:59:16 +0800
Subject: [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.

Flush all vcpu's TLB entries once changes guest's memory mapping.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 arch/ia64/kvm/kvm-ia64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 112b402..2a88e42 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1629,6 +1629,7 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
 
 void kvm_arch_flush_shadow(struct kvm *kvm)
 {
+	kvm_flush_remote_tlbs(kvm);
 }
 
 long kvm_arch_dev_ioctl(struct file *filp,
-- 
1.6.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.
  2009-04-16 10:11 [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes Zhang, Xiantao
@ 2009-04-16 13:08 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-04-16 13:08 UTC (permalink / raw)
  To: Zhang, Xiantao; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

Zhang, Xiantao wrote:
> From dcb73b5db2e91213a2536542945645caaf23bfe3 Mon Sep 17 00:00:00 2001
> From: Xiantao Zhang <xiantao.zhang@intel.com>
> Date: Thu, 16 Apr 2009 17:59:16 +0800
> Subject: [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.
>
> Flush all vcpu's TLB entries once changes guest's memory mapping.
>
>   

Applied, thanks.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-16 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 10:11 [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes Zhang, Xiantao
2009-04-16 13:08 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).