All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: PPC: Not optimizing MSR_CE and MSR_DE with paravirt.
@ 2012-05-15  7:49 Bharat Bhushan
  2012-05-15 14:31 ` Alexander Graf
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Bharat Bhushan @ 2012-05-15  7:49 UTC (permalink / raw)
  To: kvm-ppc

From: Bhushan Bharat-R65777 <R65777@freescale.com>

If there is pending critical or machine check interrupt then guest
would like to capture it when guest enable MSR.CE and MSR_ME respectively.
Also as mostly MSR_CE and MSR_ME are updated with rfi/rfci/rfmii
which anyway traps so removing the the paravirt optimization for MSR.CE
and MSR.ME.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
---
 Documentation/virtual/kvm/ppc-pv.txt |    2 --
 arch/powerpc/kernel/kvm_emul.S       |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/Documentation/virtual/kvm/ppc-pv.txt b/Documentation/virtual/kvm/ppc-pv.txt
index 6e7c370..4911cf9 100644
--- a/Documentation/virtual/kvm/ppc-pv.txt
+++ b/Documentation/virtual/kvm/ppc-pv.txt
@@ -109,8 +109,6 @@ The following bits are safe to be set inside the guest:
 
   MSR_EE
   MSR_RI
-  MSR_CR
-  MSR_ME
 
 If any other bit changes in the MSR, please still use mtmsr(d).
 
diff --git a/arch/powerpc/kernel/kvm_emul.S b/arch/powerpc/kernel/kvm_emul.S
index e291cf3..3dfa890 100644
--- a/arch/powerpc/kernel/kvm_emul.S
+++ b/arch/powerpc/kernel/kvm_emul.S
@@ -132,7 +132,7 @@ kvm_emulate_mtmsrd_len:
 	.long (kvm_emulate_mtmsrd_end - kvm_emulate_mtmsrd) / 4
 
 
-#define MSR_SAFE_BITS (MSR_EE | MSR_CE | MSR_ME | MSR_RI)
+#define MSR_SAFE_BITS (MSR_EE | MSR_RI)
 #define MSR_CRITICAL_BITS ~MSR_SAFE_BITS
 
 .global kvm_emulate_mtmsr
-- 
1.7.0.4



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

end of thread, other threads:[~2012-05-17 11:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15  7:49 [PATCH] KVM: PPC: Not optimizing MSR_CE and MSR_DE with paravirt Bharat Bhushan
2012-05-15 14:31 ` Alexander Graf
2012-05-16  8:42 ` Bhushan Bharat-R65777
2012-05-16  9:11 ` Alexander Graf
2012-05-16 12:27 ` Sethi Varun-B16395
2012-05-16 12:47 ` Alexander Graf
2012-05-16 15:13 ` Sethi Varun-B16395
2012-05-16 22:07 ` Scott Wood
2012-05-17 11:03 ` Sethi Varun-B16395

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.