]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/uapi/linux/kvm.h
KVM: PPC: Report single stepping capability
authorFabiano Rosas <farosas@linux.ibm.com>
Wed, 19 Jun 2019 16:01:27 +0000 (13:01 -0300)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 21 Oct 2019 04:55:22 +0000 (15:55 +1100)
commit1a9167a214f560a23c5050ce6dfebae489528f0d
tree0ef8fd0582efe7a784c0d2cc469e30d6c5dfe92c
parent12ade69c1eb9958b13374edf5ef742ea20ccffde
KVM: PPC: Report single stepping capability

When calling the KVM_SET_GUEST_DEBUG ioctl, userspace might request
the next instruction to be single stepped via the
KVM_GUESTDBG_SINGLESTEP control bit of the kvm_guest_debug structure.

This patch adds the KVM_CAP_PPC_GUEST_DEBUG_SSTEP capability in order
to inform userspace about the state of single stepping support.

We currently don't have support for guest single stepping implemented
in Book3S HV so the capability is only present for Book3S PR and
BookE.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Documentation/virt/kvm/api.txt
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h