Commit 83987ace authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Marcelo Tosatti

s390/kvm: Fix BUG in include/linux/kvm_host.h:745

commit b080935c
    kvm: Directly account vtime to system on guest switch

also removed the irq_disable/enable around kvm guest switch, which
is correct in itself. Unfortunately, there is a BUG ON that (correctly)
checks for preemptible to cover the call to rcu later on.
(Introduced with commit 8fa22068
    KVM: make guest mode entry to be rcu quiescent state)

This check might trigger depending on the kernel config.
Lets make sure that no preemption happens during kvm_guest_enter.
We can enable preemption again after the call to
rcu_virt_note_context_switch returns.

Please note that we continue to run s390 guests with interrupts
Acked-by: default avatarFrederic Weisbecker <>
CC: Gleb Natapov <>
Signed-off-by: default avatarChristian Borntraeger <>
Signed-off-by: default avatarMarcelo Tosatti <>
parent ecf02a60
......@@ -613,7 +613,9 @@ static int __vcpu_run(struct kvm_vcpu *vcpu)
vcpu->arch.sie_block->icptcode = 0;
VCPU_EVENT(vcpu, 6, "entering sie flags %x",
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