mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 05:17:54 +03:00
qemuxml2argvmock: drop virQEMUCapsGetKVMSupportsSecureGuest
It is actually not needed because in qemuxml2argvtest we preload domaincapsmock as well. Reported-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e7934a7a6d
commit
299174c532
@ -41,7 +41,6 @@
|
||||
#include "virutil.h"
|
||||
#include "qemu/qemu_interface.h"
|
||||
#include "qemu/qemu_command.h"
|
||||
#include "qemu/qemu_capabilities.h"
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
@ -302,18 +301,3 @@ virIdentityEnsureSystemToken(void)
|
||||
{
|
||||
return g_strdup("3de80bcbf22d4833897f1638e01be9b2");
|
||||
}
|
||||
|
||||
static bool (*real_virQEMUCapsGetKVMSupportsSecureGuest)(virQEMUCaps *qemuCaps);
|
||||
|
||||
bool
|
||||
virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps)
|
||||
{
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_CONFIDENTAL_GUEST_SUPPORT) &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_S390_PV_GUEST))
|
||||
return true;
|
||||
|
||||
if (!real_virQEMUCapsGetKVMSupportsSecureGuest)
|
||||
VIR_MOCK_REAL_INIT(virQEMUCapsGetKVMSupportsSecureGuest);
|
||||
|
||||
return real_virQEMUCapsGetKVMSupportsSecureGuest(qemuCaps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user