cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
958e1b
From aa6910ca37db66c51b7a9a6431b68f7223b8fd7b Mon Sep 17 00:00:00 2001
958e1b
From: Radim Krcmar <rkrcmar@redhat.com>
958e1b
Date: Wed, 27 Aug 2014 13:29:34 +0200
958e1b
Subject: [PATCH 2/6] pc: increase maximal VCPU count to 240
958e1b
MIME-Version: 1.0
958e1b
Content-Type: text/plain; charset=UTF-8
958e1b
Content-Transfer-Encoding: 8bit
958e1b
958e1b
Message-id: <1409146174-28442-1-git-send-email-rkrcmar@redhat.com>
958e1b
Patchwork-id: 60740
958e1b
O-Subject: [RHEL7.1 qemu-kvm PATCH] pc: increase maximal VCPU count to 240
958e1b
Bugzilla: 1134408
958e1b
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
958e1b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
958e1b
RH-Acked-by: Andrew Jones <drjones@redhat.com>
958e1b
958e1b
To prevent TCG from going over RHEL KVM's limit in bc949bc00c, we added
958e1b
another downstream constraint that needs to be bumped.
958e1b
958e1b
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
958e1b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
---
958e1b
 include/hw/i386/pc.h |    3 ++-
958e1b
 1 files changed, 2 insertions(+), 1 deletions(-)
958e1b
958e1b
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
958e1b
index 57e2f93..3b8f7d8 100644
958e1b
--- a/include/hw/i386/pc.h
958e1b
+++ b/include/hw/i386/pc.h
958e1b
@@ -15,7 +15,8 @@
958e1b
 #include "sysemu/sysemu.h"
958e1b
 #include "hw/pci/pci.h"
958e1b
 
958e1b
-#define RHEL_MAX_CPUS 160
958e1b
+/* KVM can't exceed KVM_SOFT_MAX_VCPUS (arch/x86/include/asm/kvm_host.h) */
958e1b
+#define RHEL_MAX_CPUS 240
958e1b
 
958e1b
 /* PC-style peripherals (also used by other machines).  */
958e1b
 
958e1b
-- 
958e1b
1.7.1
958e1b