]> Git Repo - qemu.git/blobdiff - kvm-all.c
target-arm: Fix broken indentation in arm_cpu_reest()
[qemu.git] / kvm-all.c
index b240bf87a9058518ac0dddb9a847325792e06495..b1cf703f9e84f7201e286c2657ba3412516b022e 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -493,6 +493,19 @@ int kvm_check_extension(KVMState *s, unsigned int extension)
     return ret;
 }
 
+int kvm_vm_check_extension(KVMState *s, unsigned int extension)
+{
+    int ret;
+
+    ret = kvm_vm_ioctl(s, KVM_CHECK_EXTENSION, extension);
+    if (ret < 0) {
+        /* VM wide version not implemented, use global one instead */
+        ret = kvm_check_extension(s, extension);
+    }
+
+    return ret;
+}
+
 static int kvm_set_ioeventfd_mmio(int fd, hwaddr addr, uint32_t val,
                                   bool assign, uint32_t size, bool datamatch)
 {
This page took 0.021467 seconds and 4 git commands to generate.