qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Drop support for qdev taddr properties
@ 2013-04-02 16:10 Peter Maydell
  2013-04-02 16:10 ` [Qemu-devel] [PATCH 1/2] hw/sm501: Use correct setter for sysbus-ohci dma-address property Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Peter Maydell @ 2013-04-02 16:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, David Gibson, patches

There is currently only one user of the qdev taddr (target addr,
now hwaddr) property code, and that user is wrong anyway, since the
property it's trying to set isn't actually a taddr property.
Fix the erroneous use in sm501 and drop all the taddr property code.

The justification for dropping the support is that a device should
generally not be exposing properties whose width (conceptually)
depends on the target CPU type. (This is the same rationale for
not supporting hwaddr fields in migration state.) Instead the
device should expose either a 32 bit or 64 bit property, depending
on what the actual hardware does.

Aside: I may try to get rid of the DMAADDR property too at some
point, because what the sysbus-ohci device should actually be doing
is taking a MemoryRegion* [or maybe a DMAContext*] representing what
it should be DMAing into, rather than the current "DMA into the
system address space at addr + some constant offset" hack. One
thing at a time, though.

Peter Maydell (2):
  hw/sm501: Use correct setter for sysbus-ohci dma-address property
  qdev: Drop taddr properties

 hw/Makefile.objs        |  1 -
 hw/fdc.c                |  1 -
 hw/milkymist-hw.h       |  1 -
 hw/milkymist-minimac2.c |  1 -
 hw/qdev-addr.c          | 78 -------------------------------------------------
 hw/qdev-addr.h          | 10 -------
 hw/sm501.c              |  3 +-
 hw/sparc/sun4m.c        |  1 -
 hw/tcx.c                |  1 -
 hw/xilinx_axidma.c      |  1 -
 10 files changed, 1 insertion(+), 97 deletions(-)
 delete mode 100644 hw/qdev-addr.c
 delete mode 100644 hw/qdev-addr.h

-- 
1.7.11.4

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

end of thread, other threads:[~2013-04-02 20:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 16:10 [Qemu-devel] [PATCH 0/2] Drop support for qdev taddr properties Peter Maydell
2013-04-02 16:10 ` [Qemu-devel] [PATCH 1/2] hw/sm501: Use correct setter for sysbus-ohci dma-address property Peter Maydell
2013-04-02 16:10 ` [Qemu-devel] [PATCH 2/2] qdev: Drop taddr properties Peter Maydell
2013-04-02 16:42 ` [Qemu-devel] [PATCH 0/2] Drop support for qdev " Paolo Bonzini
2013-04-02 17:07   ` Peter Maydell
2013-04-02 19:09     ` Paolo Bonzini
2013-04-02 20:33       ` Peter Maydell
2013-04-02 20:39         ` Paolo Bonzini
2013-04-02 20:43           ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).