mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8a9781f7ad
commit
a4cca3b419
1 changed files with 0 additions and 6 deletions
|
@ -2884,18 +2884,12 @@ static int hardware_enable_all(void)
|
|||
static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
|
||||
void *v)
|
||||
{
|
||||
int cpu = (long)v;
|
||||
|
||||
val &= ~CPU_TASKS_FROZEN;
|
||||
switch (val) {
|
||||
case CPU_DYING:
|
||||
pr_info("kvm: disabling virtualization on CPU%d\n",
|
||||
cpu);
|
||||
hardware_disable();
|
||||
break;
|
||||
case CPU_STARTING:
|
||||
pr_info("kvm: enabling virtualization on CPU%d\n",
|
||||
cpu);
|
||||
hardware_enable();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue