xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot
@ 2014-08-19  2:32 Liliang
  0 siblings, 0 replies; 7+ messages in thread
From: Liliang @ 2014-08-19  2:32 UTC (permalink / raw)
  To: xen-devel; +Cc: Li Liang, keir, jbeulich

From: Li Liang <liangx.z.li@intel.com>

The commit aa9114edd added the needless function call memory_type_changed,
it is unnessary because the PAT content does not influence the result of
epte_get_entry_emt(). If it is called, the cache will be flushed excessively
and make the nested guest very slowly, just like blocked.

Signed-off-by: Li Liang <liangx.z.li@intel.com>
---
 xen/arch/x86/hvm/hvm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index d40c48e..e8f41c1 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -257,8 +257,6 @@ int hvm_set_guest_pat(struct vcpu *v, u64 guest_pat)
     if ( !hvm_funcs.set_guest_pat(v, guest_pat) )
         v->arch.hvm_vcpu.pat_cr = guest_pat;
 
-    memory_type_changed(v->domain);
-
     return 1;
 }
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot
@ 2014-08-18 11:11 Liliang
  2014-08-18 11:26 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Liliang @ 2014-08-18 11:11 UTC (permalink / raw)
  To: xen-devel; +Cc: Li Liang, keir, jbeulich

From: Li Liang <liangx.z.li@intel.com>

The function memory_type_changed should not be called in hvm_set_guest_pat.
or the cache will be flushed excessively and make the nested guest very slowly,
just like blocked.

Signed-off-by: Li Liang <liangx.z.li@intel.com>
---
 xen/arch/x86/hvm/hvm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index d40c48e..1a0534b 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -257,7 +257,6 @@ int hvm_set_guest_pat(struct vcpu *v, u64 guest_pat)
     if ( !hvm_funcs.set_guest_pat(v, guest_pat) )
         v->arch.hvm_vcpu.pat_cr = guest_pat;
 
-    memory_type_changed(v->domain);
 
     return 1;
 }
-- 
1.9.1

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

end of thread, other threads:[~2014-08-25  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19  2:32 [PATCH] x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot Liliang
  -- strict thread matches above, loose matches on Subject: below --
2014-08-18 11:11 Liliang
2014-08-18 11:26 ` Andrew Cooper
2014-08-18 13:08 ` Jan Beulich
2014-08-18 13:31   ` Jan Beulich
2014-08-25  8:08 ` Olaf Hering
2014-08-25  8:11   ` Jan Beulich

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).