yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/0031-x86-bump-maximum-vcpu-count-of-pc-q35-rhel7.4.0-to-2.patch

76daa3
From 3c52050d74d4360395cca8d8917027df022ee8a5 Mon Sep 17 00:00:00 2001
76daa3
From: Radim Krcmar <rkrcmar@redhat.com>
76daa3
Date: Tue, 7 Mar 2017 17:32:12 +0100
76daa3
Subject: x86: bump maximum vcpu count of pc-q35-rhel7.4.0 to 288
76daa3
MIME-Version: 1.0
76daa3
Content-Type: text/plain; charset=UTF-8
76daa3
Content-Transfer-Encoding: 8bit
76daa3
76daa3
RH-Author: Radim Krcmar <rkrcmar@redhat.com>
76daa3
Message-id: <20170307173212.5752-1-rkrcmar@redhat.com>
76daa3
Patchwork-id: 74248
76daa3
O-Subject: [RHEL7.4 qemu-kvm-rhev PATCH] x86: bump maximum vcpu count of pc-q35-rhel7.4.0 to 288
76daa3
Bugzilla: 1289151
76daa3
RH-Acked-by: John Snow <jsnow@redhat.com>
76daa3
RH-Acked-by: Peter Xu <peterx@redhat.com>
76daa3
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
76daa3
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
76daa3
76daa3
RHEL only.  This is inspired by patch 00d0f9fd6602 ("pc: q35: Bump
76daa3
max_cpus to 288"), which was included in the rebase, but didn't affect
76daa3
our machine types.
76daa3
76daa3
tested: by me, with kernel patches that allow 288 VCPUs
76daa3
76daa3
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
76daa3
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
76daa3
(cherry picked from commit 414bc0d056f27c43595249c1981c97be5d96d4c0)
76daa3
---
76daa3
 hw/i386/pc_q35.c | 2 ++
76daa3
 1 file changed, 2 insertions(+)
76daa3
76daa3
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
76daa3
index a8ab052..b86e24d 100644
76daa3
--- a/hw/i386/pc_q35.c
76daa3
+++ b/hw/i386/pc_q35.c
76daa3
@@ -379,6 +379,7 @@ static void pc_q35_machine_rhel7_options(MachineClass *m)
76daa3
     m->no_floppy = 1;
76daa3
     m->has_dynamic_sysbus = true;
76daa3
     m->alias = "q35";
76daa3
+    m->max_cpus = 288;
76daa3
     SET_MACHINE_COMPAT(m, PC_RHEL_COMPAT);
76daa3
 }
76daa3
 
76daa3
@@ -406,6 +407,7 @@ static void pc_q35_machine_rhel730_options(MachineClass *m)
76daa3
     pc_q35_machine_rhel740_options(m);
76daa3
     m->alias = NULL;
76daa3
     m->desc = "RHEL-7.3.0 PC (Q35 + ICH9, 2009)";
76daa3
+    m->max_cpus = 255;
76daa3
     SET_MACHINE_COMPAT(m, PC_RHEL7_3_COMPAT);
76daa3
 }
76daa3
 
76daa3
-- 
76daa3
1.8.3.1
76daa3