|
|
a3bc25 |
From b06befbc433e1b6dc1a8ee5ee0814a20a2288685 Mon Sep 17 00:00:00 2001
|
|
|
a3bc25 |
Message-Id: <b06befbc433e1b6dc1a8ee5ee0814a20a2288685@dist-git>
|
|
|
a3bc25 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Date: Tue, 11 Jul 2017 15:15:01 +0200
|
|
|
a3bc25 |
Subject: [PATCH] qemu: Export virQEMUCapsGuestIsNative
|
|
|
a3bc25 |
|
|
|
a3bc25 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
a3bc25 |
(cherry picked from commit ee4180bef124cbc08a702689dda6fd95b21b1387)
|
|
|
a3bc25 |
|
|
|
a3bc25 |
https://bugzilla.redhat.com/show_bug.cgi?id=1470582
|
|
|
a3bc25 |
|
|
|
a3bc25 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
a3bc25 |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
a3bc25 |
---
|
|
|
a3bc25 |
src/qemu/qemu_capabilities.c | 2 +-
|
|
|
a3bc25 |
src/qemu/qemu_capabilities.h | 3 +++
|
|
|
a3bc25 |
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
a3bc25 |
|
|
|
a3bc25 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
a3bc25 |
index eea57e4c9c..f22c11941c 100644
|
|
|
a3bc25 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
a3bc25 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
a3bc25 |
@@ -491,7 +491,7 @@ static const char *virQEMUCapsArchToString(virArch arch)
|
|
|
a3bc25 |
|
|
|
a3bc25 |
/* Checks whether a domain with @guest arch can run natively on @host.
|
|
|
a3bc25 |
*/
|
|
|
a3bc25 |
-static bool
|
|
|
a3bc25 |
+bool
|
|
|
a3bc25 |
virQEMUCapsGuestIsNative(virArch host,
|
|
|
a3bc25 |
virArch guest)
|
|
|
a3bc25 |
{
|
|
|
a3bc25 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
a3bc25 |
index bbc6f6812f..c28c80d40a 100644
|
|
|
a3bc25 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
a3bc25 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
a3bc25 |
@@ -569,4 +569,7 @@ int virQEMUCapsFillDomainCaps(virCapsPtr caps,
|
|
|
a3bc25 |
virFirmwarePtr *firmwares,
|
|
|
a3bc25 |
size_t nfirmwares);
|
|
|
a3bc25 |
|
|
|
a3bc25 |
+bool virQEMUCapsGuestIsNative(virArch host,
|
|
|
a3bc25 |
+ virArch guest);
|
|
|
a3bc25 |
+
|
|
|
a3bc25 |
#endif /* __QEMU_CAPABILITIES_H__*/
|
|
|
a3bc25 |
--
|
|
|
a3bc25 |
2.13.2
|
|
|
a3bc25 |
|