From 956bfdc1b90e0d241128ea2463932e2705a8ecf3 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 5 May 2014 20:27:12 +0200 Subject: [PATCH 186/212] pc: add hot_add_cpu callback to all machine types RH-Author: Paolo Bonzini Message-id: <1399321632-26203-1-git-send-email-pbonzini@redhat.com> Patchwork-id: 58691 O-Subject: [RHEL 7.0.z qemu-kvm PATCH] pc: add hot_add_cpu callback to all machine types Bugzilla: 1093411 RH-Acked-by: Markus Armbruster RH-Acked-by: Igor Mammedov RH-Acked-by: Laszlo Ersek Bugzilla: 1093411 Upstream status: N/A Brew build: 7416220 Due to the lack of the callback, RHEL6-compatible machine types failed CPU hotplug with a "not supported" error message. However CPU hotplug is supported in RHEL6, albeit with a different monitor command that we had inherited from qemu-kvm, and for all machine types. So, add it to all machine types in RHEL7 too. Tested locally with a RHEL6.5 guest and -Mrhel6.5.0. Signed-off-by: Paolo Bonzini --- hw/i386/pc_piix.c | 6 ++++++ 1 file changed, 6 insertions(+) Signed-off-by: Miroslav Rezanina --- hw/i386/pc_piix.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 715d55e..67573fe 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -1133,6 +1133,7 @@ static QEMUMachine pc_machine_rhel650 = { .name = "rhel6.5.0", .desc = "RHEL 6.5.0 PC", .init = pc_init_rhel650, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_5_COMPAT, @@ -1181,6 +1182,7 @@ static QEMUMachine pc_machine_rhel640 = { .name = "rhel6.4.0", .desc = "RHEL 6.4.0 PC", .init = pc_init_rhel640, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_4_COMPAT, @@ -1256,6 +1258,7 @@ static QEMUMachine pc_machine_rhel630 = { .name = "rhel6.3.0", .desc = "RHEL 6.3.0 PC", .init = pc_init_rhel630, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_3_COMPAT, @@ -1287,6 +1290,7 @@ static QEMUMachine pc_machine_rhel620 = { .name = "rhel6.2.0", .desc = "RHEL 6.2.0 PC", .init = pc_init_rhel620, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_2_COMPAT, @@ -1359,6 +1363,7 @@ static QEMUMachine pc_machine_rhel610 = { .name = "rhel6.1.0", .desc = "RHEL 6.1.0 PC", .init = pc_init_rhel610, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_1_COMPAT, @@ -1398,6 +1403,7 @@ static QEMUMachine pc_machine_rhel600 = { .name = "rhel6.0.0", .desc = "RHEL 6.0.0 PC", .init = pc_init_rhel600, + .hot_add_cpu = pc_hot_add_cpu, .max_cpus = 255, .compat_props = (GlobalProperty[]) { PC_RHEL6_0_COMPAT, -- 1.7.1