From 21dead637018a292c6eef862b4ef8774ef76ec86 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 22 Jun 2016 12:34:07 +0200 Subject: [PATCH] qemu: Introduce virQEMUCapsGetHostModel Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 7 +++++++ src/qemu/qemu_capabilities.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 5ef6c9c8da..18927cba97 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2364,6 +2364,13 @@ virQEMUCapsGetCPUDefinitions(virQEMUCapsPtr qemuCaps, } +virCPUDefPtr +virQEMUCapsGetHostModel(virQEMUCapsPtr qemuCaps) +{ + return qemuCaps->hostCPUModel; +} + + int virQEMUCapsGetMachineTypesCaps(virQEMUCapsPtr qemuCaps, size_t *nmachines, virCapsGuestMachinePtr **machines) diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index c05adfd306..b1d512efde 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -429,6 +429,7 @@ int virQEMUCapsAddCPUDefinitions(virQEMUCapsPtr qemuCaps, int virQEMUCapsGetCPUDefinitions(virQEMUCapsPtr qemuCaps, char ***names, size_t *count); +virCPUDefPtr virQEMUCapsGetHostModel(virQEMUCapsPtr qemuCaps); const char *virQEMUCapsGetCanonicalMachine(virQEMUCapsPtr qemuCaps, const char *name); int virQEMUCapsGetMachineMaxCpus(virQEMUCapsPtr qemuCaps,