On Thursday 08 January 2009 22:20:22 Marcelo Tosatti wrote:
> On Thu, Jan 08, 2009 at 06:45:29PM +0800, Sheng Yang wrote:
> > * ioctls for VM fds
> > @@ -433,6 +436,8 @@ struct kvm_trace_rec {
> > #define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \
> > struct kvm_assigned_irq)
> > #define KVM_REINJECT_CONTROL _IO(KVMIO, 0x71)
> > +#define KVM_REQUEST_GSI_ROUTE _IOWR(KVMIO, 0x72, void *)
> > +#define KVM_FREE_GSI_ROUTE _IOR(KVMIO, 0x73, void *)
>
> Oh this slipped: should be struct kvm_gsi_route_guest.
Oh, yeah, forgot to change it back(I original purpose a array here...)
>
> > /*
> > * ioctls for vcpu fds
> > @@ -553,4 +558,25 @@ struct kvm_assigned_irq {
> > #define KVM_DEV_IRQ_ASSIGN_MSI_ACTION KVM_DEV_IRQ_ASSIGN_ENABLE_MSI
> > #define KVM_DEV_IRQ_ASSIGN_ENABLE_MSI (1 << 0)
> >
> > +struct kvm_gsi_route_guest {
> > + __u32 entries_nr;
> > + struct kvm_gsi_route_entry_guest *entries;
> > +};
>
> And you can use a zero sized array here.
OK.
>
> Sorry :(
Oh, that's not necessary. :)
--
regards
Yang, Sheng
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html