Re: [kvm-devel] [PATCH 2/4] KVM: Add irqdevice object

2007-05-07 Thread Gregory Haskins
>>> On Mon, May 7, 2007 at 5:42 AM, in message <[EMAIL PROTECTED]>, Avi Kivity <[EMAIL PROTECTED]> wrote: > >> +static void do_interrupt_requests(struct kvm_vcpu *vcpu, >> + struct kvm_run *kvm_run) >> +{ >> +int pending = __kvm_vcpu_irq_all_pending(vcpu); >> +

Re: [kvm-devel] [PATCH 2/4] KVM: Add irqdevice object

2007-05-07 Thread Avi Kivity
Gregory Haskins wrote: > +/** > + * kvm_irqdevice_ack - read and ack the highest priority vector from the > device > + * @dev: The device > + * @vector: Retrieves the highest priority pending vector > + *[ NULL = Dont ack a vector, just check pending status] > + *[

[kvm-devel] [PATCH 2/4] KVM: Add irqdevice object

2007-05-02 Thread Gregory Haskins
The current code is geared towards using a user-mode (A)PIC. This patch adds an "irqdevice" abstraction, and implements a "userint" model to handle the duties of the original code. Later, we can develop other irqdevice models to handle objects like LAPIC, IOAPIC, i8259, etc, as appropriate Signe