All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] vt82686b query
@ 2011-07-27  8:31 Michael S. Tsirkin
  0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2011-07-27  8:31 UTC (permalink / raw)
  To: aurelien, zltjiangshi, qemu-devel

Does one of you maintain the vt82686b emulation?
I was doing an overview of pci devices and have some questions on it:

vt82c686b_write_config - this seems to assume that
config writes are done using single byte accesses.
E.g. a two byte access at 0x84 will modify the
register at offset 0x85 but isn't handled by the
emulation.  Is this intentional?

PCI_STATUS and PCI_CAPABILITY_LIST are initialized
in the reset callback. These are readonly so
should go into init - there's no guarantee
reset is invoked in time to set these correctly,
is there?

PCI_CAPABILITY_LIST is a single byte register.
Better set it using pci_set_byte or simple memory access?
Higer bytes in that word are reserved so zeroing them out is
harmless, but still ...

via_pm_info has a config write method that simply
invokes the pci_default_write_config directly -
makes sense to remove it and save some lines of code?

Will you be able to review/test patches addressing the above?
Thanks!

-- 
MST

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-27  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27  8:31 [Qemu-devel] vt82686b query Michael S. Tsirkin

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.