Re: [patch 2/3] KVM: rename KVM_REQ_PENDING_TIMER to KVM_REQ_UNBLOCK

Paolo Bonzini
2021-05-27T11:57:34Z

On 25/05/21 15:41, Marcelo Tosatti wrote:
> -KVM_REQ_PENDING_TIMER
> +KVM_REQ_UNBLOCK
>
> This request may be made from a timer handler run on the host on behalf
> - of a VCPU. It informs the VCPU thread to inject a timer interrupt.
> + of a VCPU, or when device assignment is performed. It informs the VCPU to
> + exit the vcpu halt inner loop.
>

A small change:

This request informs the vCPU to exit kvm_vcpu_block. It is used for
example from timer handlers that run on the host on behalf of a vCPU,
or in order to update the interrupt routing and ensure that assigned
devices will wake up the vCPU.

Paolo