]> git.proxmox.com Git - pve-qemu-kvm.git/blobdiff - debian/patches-0.12.1/cpuid-fix.diff
refer to the new repository
[pve-qemu-kvm.git] / debian / patches-0.12.1 / cpuid-fix.diff
diff --git a/debian/patches-0.12.1/cpuid-fix.diff b/debian/patches-0.12.1/cpuid-fix.diff
deleted file mode 100644 (file)
index 1052ad5..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-see http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=8fa3b3ce6e#patch1
-
-KVM_GET_SUPPORTED_CPUID has been known to fail to return -E2BIG
-when it runs out of entries. Detect this by always trying again
-with a bigger table if the ioctl() fills the table.
-
---- a/kvm/libkvm/libkvm-x86.c
-+++ b/kvm/libkvm/libkvm-x86.c
-@@ -575,6 +575,8 @@ static struct kvm_cpuid2 *try_get_cpuid(kvm_context_t kvm, int max)
-       r = ioctl(kvm->fd, KVM_GET_SUPPORTED_CPUID, cpuid);
-       if (r == -1)
-               r = -errno;
-+      else if (r == 0 && cpuid->nent >= max)
-+              r = -E2BIG;
-       if (r < 0) {
-               if (r == -E2BIG) {
-                       free(cpuid);
-