]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/kvm: Add xen-version KVM accelerator property and init KVM Xen support
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 3 Dec 2022 17:51:13 +0000 (09:51 -0800)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 11 Jan 2023 08:07:51 +0000 (08:07 +0000)
commit4b0eaf57bbab369c966eda7a2248f8397c5ecb3d
tree88968d65a6048afe15ff0546ed720050746dab11
parentb32a91e4048e2c2049c8c0078358c54bd31c8b48
i386/kvm: Add xen-version KVM accelerator property and init KVM Xen support

This just initializes the basic Xen support in KVM for now. Only permitted
on TYPE_PC_MACHINE because that's where the sysbus devices for Xen heap
overlay, event channel, grant tables and other stuff will exist. There's
no point having the basic hypercall support if nothing else works.

Provide sysemu/kvm_xen.h and a kvm_xen_get_caps() which will be used
later by support devices.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
accel/kvm/kvm-all.c
include/sysemu/kvm_int.h
include/sysemu/kvm_xen.h [new file with mode: 0644]
target/i386/kvm/kvm.c
target/i386/kvm/meson.build
target/i386/kvm/xen-emu.c [new file with mode: 0644]
target/i386/kvm/xen-emu.h [new file with mode: 0644]