android_kernel_xiaomi_sm8350/arch/powerpc
Jan Kiszka d0bfb940ec KVM: New guest debug interface
This rips out the support for KVM_DEBUG_GUEST and introduces a new IOCTL
instead: KVM_SET_GUEST_DEBUG. The IOCTL payload consists of a generic
part, controlling the "main switch" and the single-step feature. The
arch specific part adds an x86 interface for intercepting both types of
debug exceptions separately and re-injecting them when the host was not
interested. Moveover, the foundation for guest debugging via debug
registers is layed.

To signal breakpoint events properly back to userland, an arch-specific
data block is now returned along KVM_EXIT_DEBUG. For x86, the arch block
contains the PC, the debug exception, and relevant debug registers to
tell debug events properly apart.

The availability of this new interface is signaled by
KVM_CAP_SET_GUEST_DEBUG. Empty stubs for not yet supported archs are
provided.

Note that both SVM and VTX are supported, but only the latter was tested
yet. Based on the experience with all those VTX corner case, I would be
fairly surprised if SVM will work out of the box.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2009-03-24 11:02:49 +02:00
..
boot powerpc/83xx: Fix TSEC0 workability on MPC8313E-RDB boards 2009-02-06 10:38:57 -06:00
configs powerpc/ps3: ps3_defconfig updates 2009-03-18 13:44:16 +11:00
include/asm KVM: New guest debug interface 2009-03-24 11:02:49 +02:00
kernel powerpc/mm: Fix Respect _PAGE_COHERENT on classic ppc32 SW TLB load machines 2009-03-23 08:38:26 -05:00
kvm KVM: New guest debug interface 2009-03-24 11:02:49 +02:00
lib powerpc: Fix 64bit __copy_tofrom_user() regression 2009-02-26 14:02:54 +11:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm powerpc/mm: Fix numa reserve bootmem page selection 2009-02-13 16:37:45 +11:00
oprofile powerpc/cell: Add missing #include for oprofile 2009-02-10 14:39:08 +11:00
platforms ps3/block: Replace mtd/ps3vram by block/ps3vram 2009-03-13 16:07:19 +11:00
sysdev powerpc/44x: Fix address decoding setup of PCI 2.x cells 2009-02-27 09:30:17 +11:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig powerpc: Remove arch/ppc cruft from Kconfig 2009-01-28 17:15:51 +11:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00