diff mbox

[qemu] KVM CAPS DBG

Message ID 1464775616-41192-1-git-send-email-aik@ozlabs.ru
State New
Headers show

Commit Message

Alexey Kardashevskiy June 1, 2016, 10:06 a.m. UTC
---
 target-ppc/kvm.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
diff mbox

Patch

diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index df6b45c..896b38b 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -113,6 +113,22 @@  int kvm_arch_init(MachineState *ms, KVMState *s)
     cap_spapr_tce_64 = kvm_check_extension(s, KVM_CAP_SPAPR_TCE_64);
     cap_spapr_multitce = kvm_check_extension(s, KVM_CAP_SPAPR_MULTITCE);
     cap_spapr_vfio = kvm_check_extension(s, KVM_CAP_SPAPR_TCE_VFIO);
+//    cap_spapr_multitce = false;
+//    cap_spapr_vfio = false;
+//    cap_spapr_tce = false;
+//    cap_spapr_tce_64 = false;
+#if 0
+    cap_spapr_vfio = false;
+    cap_spapr_multitce = false;
+    cap_spapr_tce = false;
+    cap_spapr_tce_64 = false;
+#endif
+#if 0
+    cap_spapr_vfio = true;
+    cap_spapr_multitce = true;
+    cap_spapr_tce = true;
+    cap_spapr_tce_64 = true;
+#endif
     cap_one_reg = kvm_check_extension(s, KVM_CAP_ONE_REG);
     cap_hior = kvm_check_extension(s, KVM_CAP_PPC_HIOR);
     cap_epr = kvm_check_extension(s, KVM_CAP_PPC_EPR);