diff options
| author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-12-23 21:10:40 +0530 |
|---|---|---|
| committer | Alexander Graf <agraf@suse.de> | 2014-03-05 03:06:24 +0100 |
| commit | 135a129a1cd047cc913e88c795eda859a0ebb81f (patch) | |
| tree | 989f0f2ab90da6d61caffa3af5ab22152c6a8e25 /xen-all.c | |
| parent | 9c06a1f79f959fffd09bfb7efc3d76051a6cd2da (diff) | |
| download | focaccia-qemu-135a129a1cd047cc913e88c795eda859a0ebb81f.tar.gz focaccia-qemu-135a129a1cd047cc913e88c795eda859a0ebb81f.zip | |
kvm: Add a new machine option kvm-type
Targets like ppc64 support different types of KVM, one which use hypervisor mode and the other which doesn't. Add a new machine option kvm-type that helps in selecting the respective ones We also add a new QEMUMachine callback get_vm_type that helps in mapping the string representation of kvm type specified. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> [agraf: spelling fixes, use error_report(), use qemumachine.h] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'xen-all.c')
| -rw-r--r-- | xen-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen-all.c b/xen-all.c index 4a594bdd9b..ba3473901e 100644 --- a/xen-all.c +++ b/xen-all.c @@ -1001,7 +1001,7 @@ static void xen_exit_notifier(Notifier *n, void *data) xs_daemon_close(state->xenstore); } -int xen_init(void) +int xen_init(QEMUMachine *machine) { xen_xc = xen_xc_interface_open(0, 0, 0); if (xen_xc == XC_HANDLER_INITIAL_VALUE) { |