Avi Kivity wrote:
> Dong, Eddie wrote:
>> Here is the update with adding HLT cap.
>>
>>
>> diff --git a/drivers/kvm/i8259.c b/drivers/kvm/i8259.c index
>> f4ae5f7..e84e665 100644 --- a/drivers/kvm/i8259.c
>> +++ b/drivers/kvm/i8259.c
>> @@ -411,8 +411,13 @@ static void picdev_read(struct kvm_io_device
>> *this, static void pic_irq_request(void *opaque, int level) {
>> struct kvm *kvm = opaque;
>> + struct kvm_vcpu *vcpu = &kvm->vcpus[0];
>>
>> pic_irqchip(kvm)->output = level;
>> + if (waitqueue_active(&vcpu->wq)) {
>> + wake_up_interruptible(&vcpu->wq);
>> + ++vcpu->stat.halt_wakeup;
>> + }
>> }
>>
>
> Please strip out non-hlt related things like this so I can apply on
> current kvm.git.
>
Apply to current kvm.git? Then we need to define false for
irqchip_in_kernel() which makes the patch quit stranger.
In theory this is only valid for a case with irqchip in kernel since we
always fall back to user if irqchip is in user.
Eddie
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel