All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Enable MSI support for KVM VT-d
@ 2008-09-26  5:17 Sheng Yang
  2008-10-19 13:16 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Sheng Yang @ 2008-09-26  5:17 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm, Weidong", Allen M"

Hi, Avi

This patchset enable MSI support for KVM VT-d.

And here are only kernel space ones. The third patch would go to also goto x86
upstream.

The userspace code would looks like this:

assigned_irq_data.guest_msi_addr = *(uint32_t *)(d->msi_cap + 4);
assigned_irq_data.guest_msi_data = *(uint16_t *)(d->msi_cap + 8);
assigned_irq_data.flags |= KVM_DEV_IRQ_ASSIGN_ENABLE_MSI;
r = kvm_assign_irq(kvm_context, &assigned_irq_data);

I've test the patchset with some userspace hack, it works well.

Thanks!
--
regards
Yang, Sheng

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-20  5:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26  5:17 [PATCH 0/4] Enable MSI support for KVM VT-d Sheng Yang
2008-10-19 13:16 ` Avi Kivity
2008-10-20  4:09   ` Zhang, Xiantao
2008-10-20  5:39     ` Yang, Sheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.