Skip to content

do not run halted vcpu's

Marcelo Tosatti kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: set debug registers after "schedulable" sectionarch/x86/kvm/x86.c+4 -51 reply
2/2KVM: x86: do not execute halted vcpus (v2)arch/x86/kvm/i8254.c arch/x86/kvm/lapic.c arch/x86/kvm/x86.c +2 more+66 -642 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] do not run halted vcpu's
Quoted 4 lines · Avi Kivity

Any reason this is not in __vcpu_run()?

Our main loop could look like

Quoted 8 lines

while (no reason to stop)
if (runnable)
enter guest
else
block
deal with aftermath

kvm_emulate_halt would then simply modify the mp state.

Like this?

- I don't think it is necessary to test for pending signals inside irq safe section, so move that to exit processing.

- Same for need_resched().