All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] MIPS: KVM: RI + RDHWR handling fixes
@ 2014-03-14 13:06 ` James Hogan
  0 siblings, 0 replies; 11+ messages in thread
From: James Hogan @ 2014-03-14 13:06 UTC (permalink / raw)
  To: Ralf Baechle, Gleb Natapov, Paolo Bonzini
  Cc: James Hogan, Sanjay Lal, linux-mips, kvm

Some misc KVM RI/RDHWR handling fixes.

Patch 1 prevents a reserved instruction (RI) exception from taking out
the entire guest (e.g. crashme inevitably causes lots of these). If the
hypervisor can't handle the RI, it can just emulate a guest RI exception
instead so the guest OS can handle it. I've marked this one for stable
since it allows guest userland to take out the VM.

Patch 3 fixes the RDHWR emulation to actually consult HWREna so that the
guest can catch exceptions of implemented RDHWR if it desires. I've not
marked this for stable since Linux at least enables the hardware
registers with HWREna anyway.

Patch 2 and 4 are cleanups that I noticed while writing patch 3.

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sanjay Lal <sanjayl@kymasys.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org

James Hogan (4):
  MIPS: KVM: Pass reserved instruction exceptions to guest
  MIPS: KVM: asm/kvm_host.h: Clean up whitespace
  MIPS: KVM: Consult HWREna before emulating RDHWR
  MIPS: KVM: Remove dead code in CP0 emulation

 arch/mips/include/asm/kvm_host.h | 417 ++++++++++++++++++++-------------------
 arch/mips/kvm/kvm_mips_emul.c    |  40 ++--
 2 files changed, 229 insertions(+), 228 deletions(-)

-- 
1.8.1.2

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

end of thread, other threads:[~2014-03-19 16:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 13:06 [PATCH 0/4] MIPS: KVM: RI + RDHWR handling fixes James Hogan
2014-03-14 13:06 ` James Hogan
2014-03-14 13:06 ` [PATCH 1/4] MIPS: KVM: Pass reserved instruction exceptions to guest James Hogan
2014-03-14 13:06   ` James Hogan
2014-03-14 13:06 ` [PATCH 2/4] MIPS: KVM: asm/kvm_host.h: Clean up whitespace James Hogan
2014-03-14 13:06   ` James Hogan
2014-03-14 13:06 ` [PATCH 3/4] MIPS: KVM: Consult HWREna before emulating RDHWR James Hogan
2014-03-14 13:06   ` James Hogan
2014-03-14 13:06 ` [PATCH 4/4] MIPS: KVM: Remove dead code in CP0 emulation James Hogan
2014-03-14 13:06   ` James Hogan
2014-03-19 16:02 ` [PATCH 0/4] MIPS: KVM: RI + RDHWR handling fixes Paolo Bonzini

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.