[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] tools: virt-host-validate: fix KVM check on s390



Since kernel version 4.5, s390 has the 'sie' flag to declare its
hardware virtualization support. Let's make virt-host-validate aware so
this check is passed correctly.

Signed-off-by: Bjoern Walk <bwalk linux vnet ibm com>
Reviewed-by: Boris Fiuczynski <fiuczy linux vnet ibm com>
---
 tools/virt-host-validate-qemu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/virt-host-validate-qemu.c b/tools/virt-host-validate-qemu.c
index a9f6c1e..01fb24b 100644
--- a/tools/virt-host-validate-qemu.c
+++ b/tools/virt-host-validate-qemu.c
@@ -31,7 +31,8 @@ int virHostValidateQEMU(void)
 
     virHostMsgCheck("QEMU", "%s", ("for hardware virtualization"));
     if (virHostValidateHasCPUFlag("svm") ||
-        virHostValidateHasCPUFlag("vmx")) {
+        virHostValidateHasCPUFlag("vmx") ||
+        virHostValidateHasCPUFlag("sie")) {
         virHostMsgPass();
         if (virHostValidateDeviceExists("QEMU", "/dev/kvm",
                                         VIR_HOST_VALIDATE_FAIL,
-- 
2.6.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]