public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Correct way to enable BusMaster with VFIO?
@ 2015-04-08  4:02 Wei Hu
  2015-04-08 15:17 ` Alex Williamson
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Hu @ 2015-04-08  4:02 UTC (permalink / raw)
  To: alex.williamson; +Cc: kvm

Hi Alex,

With your change "Release devices with BusMaster disabled", I've found
that my VFIO device driver is no longer receiving MSI interrupts.
After reviewing the code I think it makes sense. But I had two
questions below while debugging my issue.

1.  If I had set the bus master bit in the command register by hand
before opening the vfio device, the kernel would actually leave
BusMaster enabled. This seems to contradict the call to
pci_clear_master() from vfio_pci_enable(). What's going on here, is
something else enabling BusMaster?

2. What's the recommended way to enable BusMaster with your change
now? Should my driver map the config space region and set the
BusMaster bit? Or should I have a separate command to enable the bit
before opening the device?

Thank you,
Wei

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

end of thread, other threads:[~2015-04-08 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08  4:02 Correct way to enable BusMaster with VFIO? Wei Hu
2015-04-08 15:17 ` Alex Williamson
2015-04-08 16:45   ` Wei Hu
2015-04-08 17:31     ` Alex Williamson
2015-04-08 17:50       ` Wei Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox