Commit a4cca3b4 authored by Heiko Carstens's avatar Heiko Carstens Committed by Paolo Bonzini

KVM: remove pointless cpu hotplug messages

On cpu hotplug only KVM emits an unconditional message that its notifier
has been called. It certainly can be assumed that calling cpu hotplug
notifiers work, therefore there is no added value if KVM prints a message.

If an error happens on cpu online KVM will still emit a warning.

So let's remove this superfluous message.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8a9781f7
...@@ -2884,18 +2884,12 @@ static int hardware_enable_all(void) ...@@ -2884,18 +2884,12 @@ static int hardware_enable_all(void)
static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val, static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
void *v) void *v)
{ {
int cpu = (long)v;
val &= ~CPU_TASKS_FROZEN; val &= ~CPU_TASKS_FROZEN;
switch (val) { switch (val) {
case CPU_DYING: case CPU_DYING:
pr_info("kvm: disabling virtualization on CPU%d\n",
cpu);
hardware_disable(); hardware_disable();
break; break;
case CPU_STARTING: case CPU_STARTING:
pr_info("kvm: enabling virtualization on CPU%d\n",
cpu);
hardware_enable(); hardware_enable();
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment