]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: register runstate info
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 24 Jul 2018 16:47:14 +0000 (12:47 -0400)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 11 Jan 2021 16:25:34 +0000 (16:25 +0000)
commita7d3f0457e9384bf6d7dd9e68596e90caa1337c9
treeb3fdb55a9e58f632901b4f2e85fa65d5c49fa825
parent7320281a53fbf42f8c7c615279db9c2f279c5f95
KVM: x86/xen: register runstate info

Allow emulator to register vcpu runstates which allow Xen guests
to use that for steal clock. The 'preempted' state of KVM steal clock
equates to 'runnable' state, 'running' has similar meanings for both and
'offline' is used when system admin needs to bring vcpu offline or
hotplug.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c
arch/x86/kvm/xen.c
arch/x86/kvm/xen.h
include/uapi/linux/kvm.h