Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB

2013-06-30 Thread Alexey Kardashevskiy
On 06/30/2013 04:32 PM, Benjamin Herrenschmidt wrote: > On Sun, 2013-06-30 at 10:59 +1000, Alexey Kardashevskiy wrote: >>> 1) A PCI bus function to do the MSI -> virq mapping >>> 2) On x86 (and e500), this is implemented by calling >>> kvm_irqchip_add_msi_route() >>> 3) On pseries, this just retur

Re: [Qemu-devel] [PATCH] Avoid use of QOM type name macros in VMStateDescriptions

2013-06-30 Thread Andreas Färber
Am 27.06.2013 13:03, schrieb Peter Maydell: > The name field in a VMStateDescription is part of the migration state > versioning, so changing it will break migration. It's therefore a > bad idea to use a QOM typename macro to initialize it, because in > general we're free to rename QOM types as pa

Re: [Qemu-devel] [PATCH v2 03/30] net/pcnet-pci: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:52, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/net/pcnet-pci.c | 14 +- > 1 file changed,

Re: [Qemu-devel] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB

2013-06-30 Thread Alexey Kardashevskiy
On 06/30/2013 12:28 AM, Anthony Liguori wrote: > On Sat, Jun 29, 2013 at 8:45 AM, Alexey Kardashevskiy wrote: >> On PPC64 systems MSI Messages are translated to system IRQ in a PCI >> host bridge. This is already supported for emulated MSI/MSIX but >> not for irqfd where the current QEMU allocates

Re: [Qemu-devel] [PATCH v2 04/30] usb/hcd-xhci: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:52, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/usb/hcd-xhci.c | 19 +-- > 1 file chan

Re: [Qemu-devel] [PATCH v2 05/30] scsi/lsi53c895a: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:53, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/scsi/lsi53c895a.c | 26 -- > 1

Re: [Qemu-devel] [PATCH v2 16/30] pci/*: QOM casting sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 09:01, schrieb peter.crosthwa...@xilinx.com: > diff --git a/hw/pci/shpc.c b/hw/pci/shpc.c > index d35c2ee..aa45e77 100644 > --- a/hw/pci/shpc.c > +++ b/hw/pci/shpc.c > @@ -252,9 +252,9 @@ static void shpc_free_devices_in_slot(SHPCDevice *shpc, > int slot) > for (devfn = PCI_DEVF

Re: [Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:55, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/ide/ahci.h | 5 + > hw/ide/ich.c | 10 +-

Re: [Qemu-devel] [PATCH v2 09/30] ide/piix: QOM casting sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:56, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Use standard QOM cast macro. Remove usage of DO_UPCAST and > direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/ide/piix.c | 8 > 1 file changed, 4 insertions(+), 4 dele

Re: [Qemu-devel] [PATCH v2 12/30] virtio/vmware_vga: QOM casting sweep

2013-06-30 Thread Andreas Färber
"display/vmware_vga: ..." obviously. Am 24.06.2013 08:58, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST and > direct -> style casting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/display/vmware_vga

Re: [Qemu-devel] [PATCH v2 13/30] misc/ivshmem: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:59, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/misc/ivshmem.c | 18 +++--- > 1 file chang

Re: [Qemu-devel] [PATCH v2 14/30] xen/xen_platform: QOM casting sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 09:00, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/xen/xen_platform.c | 28 >

Re: [Qemu-devel] [PATCH v2 00/30] PCI: Cleanup legacy casts in device land -- ANN: qom-next revived

2013-06-30 Thread Andreas Färber
Hi Peter, Am 24.06.2013 08:49, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > There are a number of different cast implementations from various > stages of QEMU development out in device model land. This series cleans > up the ones involving TYPE_PCI_DEVICE to consistently u

[Qemu-devel] [PATCH qom-next] net/e1000: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any remaining fallout. Signed-off-by: Andreas Färber --- hw/net/e1000.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 27c4221..f3838ed 100644 --- a/hw/net/e1000.c +++ b/

[Qemu-devel] [PATCH qom-next] net/rtl8139: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any remaining fallout. Signed-off-by: Andreas Färber --- hw/net/rtl8139.c | 88 +++- 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 955d35e..0c81c83 100644

Re: [Qemu-devel] [PATCH 04/15] PPC: dbdma: Replace tabs with spaces

2013-06-30 Thread Alexander Graf
Am 30.06.2013 um 08:35 schrieb Andreas Färber : > Am 30.06.2013 03:26, schrieb Alexander Graf: >> s/^I//g on the file with a few manual tweaks to align things. >> >> Signed-off-by: Alexander Graf >> --- >> hw/misc/macio/mac_dbdma.c | 102 >> +++-

Re: [Qemu-devel] [PATCH v2 03/30] net/pcnet-pci: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 30.06.2013 09:34, schrieb Andreas Färber: > Am 24.06.2013 08:52, schrieb peter.crosthwa...@xilinx.com: >> From: Peter Crosthwaite >> >> Define and use standard QOM cast macro. Remove usages of DO_UPCAST >> and direct -> style upcasting. >> >> Signed-off-by: Peter Crosthwaite >> --- >> >> hw/n

[Qemu-devel] [PATCH qom-next] usb/hcd-xhci: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/usb/hcd-xhci.c | 83 --- 1 file changed, 48 insertions(+), 35 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index bdbca67..765ee0e 100644 --- a/hw

[Qemu-devel] [PATCH qom-next] scsi/lsi53c895a: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/scsi/lsi53c895a.c | 46 +++--- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c index d488c5c..d5d26f8 100644 --- a/hw

[Qemu-devel] [PATCH qom-next] scsi/megasas: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/scsi/megasas.c | 46 ++ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index 49fcae4..d62129e 100644 --- a/hw/scsi/meg

[Qemu-devel] [PATCH qom-next] scsi/esp-pci: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/scsi/esp-pci.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c index 2a72da6..8ad4dfa 100644 --- a/hw/scsi/esp-pci.c +++ b/hw/scsi/esp-pci.c @@

[Qemu-devel] [PATCH qom-next] ide/ich: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/ide/ahci.c | 11 ++- hw/ide/ahci.h | 5 - hw/ide/ich.c | 22 +++--- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 1adfa0b..3c86b3a 1

Re: [Qemu-devel] CAN device

2013-06-30 Thread Yang Jin
Hi, Thanks, Andreas. It really help me a lot. When I man qemu, I found "path specifies the name of the serial device to open". Does that mean I should have a real serial device or I cannot test it? Can I test it just in a virtual environment? When I try to open a /dev/ttyS0 through "cat /dev/ttyS0

Re: [Qemu-devel] CAN device

2013-06-30 Thread Andreas Färber
Hi, Am 30.06.2013 14:25, schrieb Yang Jin: > Thanks, Andreas. It really help me a lot. > > When I man qemu, I found "path specifies the name of the serial device > to open". Does that mean I should have a real serial device or I cannot > test it? Can I test it just in a virtual environment? When

[Qemu-devel] [PATCH qom-next] acpi/piix4: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/acpi/piix4.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index b0f7667..e4f3b03 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/pii

Re: [Qemu-devel] [PATCH v2 11/30] misc/pci-testdev: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 24.06.2013 08:58, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST > and direct -> style upcasting. > > Signed-off-by: Peter Crosthwaite > --- > > hw/misc/pci-testdev.c | 11 --- > 1 file changed,

[Qemu-devel] [PATCH qom-next] misc/pci-testdev: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/misc/pci-testdev.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c index 153603e..087ec3b 100644 --- a/hw/misc/pci-testdev.c +++ b/hw/misc/

Re: [Qemu-devel] [PATCH RFC qom-cpu 00/41] QOM CPUState, part 11: GDB stub

2013-06-30 Thread Michael Walle
On Sat, Jun 29, 2013 at 10:01:16PM +0200, Andreas Färber wrote: > Hello, > > This series cleans up gdbstub by changing all its internal CPU state to > CPUState > and by moving most target-specific code into the target directories. > > It depends on part 10 and starts with a follow-up, consolidat

[Qemu-devel] [PATCH qom-next] display/vmware_vga: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/display/vmware_vga.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index fcc8944..8624be9 100644 --- a/hw/display/vmwar

Re: [Qemu-devel] [PATCH v2 13/30] misc/ivshmem: QOM Upcast Sweep

2013-06-30 Thread Andreas Färber
Am 30.06.2013 11:18, schrieb Andreas Färber: > Am 24.06.2013 08:59, schrieb peter.crosthwa...@xilinx.com: >> From: Peter Crosthwaite >> >> Define and use standard QOM cast macro. Remove usages of DO_UPCAST >> and direct -> style upcasting. >> >> Signed-off-by: Peter Crosthwaite >> --- >> >> hw/m

[Qemu-devel] [PATCH qom-next] misc/ivshmem: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Rename to parent_obj and fix any fallout. Signed-off-by: Andreas Färber --- hw/misc/ivshmem.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 1f5f059..55def3a 100644 --- a/hw/misc/ivshmem.c ++

Re: [Qemu-devel] [PATCH v4 06/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-06-30 Thread Gal Hammer
On 26/06/2013 01:31, Tomoki Sekiyama wrote: Also, is it needed to call VSSCheckOSVersion from the requestor? I would think that checking VSSAPI.DLL is stronger than checking the version, and indeed you do that check too. In Windows XP, VSSAPI.DLL exists but it has different functionality and

[Qemu-devel] [PATCH qom-next] xen/xen_platform: QOM parent field cleanup

2013-06-30 Thread Andreas Färber
Replace direct uses of PCIXenPlatformState::pci_dev field with QOM casts and rename it to parent_obj. Signed-off-by: Andreas Färber --- hw/xen/xen_platform.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/xen/xen_platform.c b/hw/xen/xen_platform.c i

Re: [Qemu-devel] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB

2013-06-30 Thread Anthony Liguori
On Sun, Jun 30, 2013 at 2:37 AM, Alexey Kardashevskiy wrote: > On 06/30/2013 12:28 AM, Anthony Liguori wrote: > > Ah. Everybody ignored, I'll try asking again :) > > kvm_irqchip_update_msi_route() - where should it go? What is it for? > virtio-pci and pci device assignment use it but vfio does not

Re: [Qemu-devel] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB

2013-06-30 Thread Anthony Liguori
On Sat, Jun 29, 2013 at 7:59 PM, Alexey Kardashevskiy wrote: > On 06/30/2013 12:28 AM, Anthony Liguori wrote: >> Perhaps (2) can just be the default PCI bus implementation to simplify >> things. > > > hw/pci/pci.c does not have any kvm code yet and I would like not to be the > first person who tr

Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock

2013-06-30 Thread Andreas Färber
Am 25.06.2013 19:45, schrieb Eduardo Habkost: > On Tue, Jun 25, 2013 at 10:20:08AM +0800, Hu Tao wrote: > [...] >>> Is TYPE_SYS_BUS_DEVICE guaranteed to never override ->realize() itself? >>> >>> From DeviceClass documentation: >>> >>> * If a type derived directly from TYPE_DEVICE implements @real

Re: [Qemu-devel] [PATCH 26/26] ehci: use realize for ehci

2013-06-30 Thread Andreas Färber
Am 22.06.2013 12:38, schrieb Andreas Färber: > Am 22.06.2013 10:50, schrieb Hu Tao: >> Cc: Gerd Hoffmann >> Signed-off-by: Hu Tao >> --- >> hw/usb/hcd-ehci-sysbus.c | 11 +-- >> 1 file changed, 5 insertions(+), 6 deletions(-) > > I had already done this iirc, it should be in Gerd's USB

Re: [Qemu-devel] [PATCH 25/26] isa bus: use realize for isa bus

2013-06-30 Thread Andreas Färber
The subject is a bit misleading, suggest: "isa-bus: Use QOM realize for ISA SysBus bridge" Am 22.06.2013 10:50, schrieb Hu Tao: > Cc: "Andreas Färber" > Cc: Paolo Bonzini > Cc: Anthony Liguori > Cc: Avi Kivity This will bounce, please drop. ;) Also, if you use git-send-email together with "

Re: [Qemu-devel] [PATCH v2 00/30] PCI: Cleanup legacy casts in device land

2013-06-30 Thread Andreas Färber
Am 30.06.2013 12:44, schrieb Andreas Färber: >> Peter Crosthwaite (30): >> net/e1000: QOM Upcast Sweep >> net/rtl8139: QOM Upcast Sweep >> net/pcnet-pci: QOM Upcast Sweep >> usb/hcd-xhci: QOM Upcast Sweep >> scsi/lsi53c895a: QOM Upcast Sweep >> scsi/megasas: QOM Upcast Sweep >> scsi/e

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Michael Tokarev
[Rehashing a previous thread] 19.06.2013 20:58, Paolo Bonzini wrote: > Il 18/06/2013 19:34, Michael Tokarev ha scritto: >> The following working patchset demonstrates a one step to plugins system: >> it moves various dependent libraries and stuff out from libs_softmmu or >> libs_tools to object-sp

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Andreas Färber
Am 18.06.2013 19:34, schrieb Michael Tokarev: > The following working patchset demonstrates a one step to plugins system: > it moves various dependent libraries and stuff out from libs_softmmu or > libs_tools to object-specific variables. We did have a more elaborate Makefile variable system befor

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Michael Tokarev
30.06.2013 19:28, Andreas Färber wrote: > Am 18.06.2013 19:34, schrieb Michael Tokarev: >> The following working patchset demonstrates a one step to plugins system: >> it moves various dependent libraries and stuff out from libs_softmmu or >> libs_tools to object-specific variables. > > We did hav

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Peter Maydell
On 30 June 2013 16:36, Michael Tokarev wrote: > I don't understand. I for one like to see a plugins system used in qemu, > and except of the build system everything else is easy (and even nice, > there's even no need to load all plugins at startup as was initially > suggested). But for this to w

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Andreas Färber
Am 30.06.2013 17:36, schrieb Michael Tokarev: > 30.06.2013 19:28, Andreas Färber wrote: >> Am 18.06.2013 19:34, schrieb Michael Tokarev: >>> The following working patchset demonstrates a one step to plugins system: >>> it moves various dependent libraries and stuff out from libs_softmmu or >>> libs

Re: [Qemu-devel] [PATCH 00/26] use realizefn for SysBusDevice, part 1

2013-06-30 Thread Andreas Färber
Hi, Am 22.06.2013 10:50, schrieb Hu Tao: > This series updates part of devices inheriting from SysbusDevice > to use DeviceState::realize, and QOM'ify them. > > These devices are default to x86_64-softmmu. I'm planning to > make patches in the same manner, that is, each series is for > devices de

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-06-30 Thread Michael Tokarev
30.06.2013 19:51, Peter Maydell wrote: > On 30 June 2013 16:36, Michael Tokarev wrote: >> I don't understand. I for one like to see a plugins system used in qemu, >> and except of the build system everything else is easy (and even nice, >> there's even no need to load all plugins at startup as wa

[Qemu-devel] [PATCH RFC 03/15] cpu/a9mpcore: Embed GICState

2013-06-30 Thread Andreas Färber
From: Andreas Färber Prepares for conversion to QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index 63a4eb1..6340b0f 100644 --- a/hw/cpu/a9mpc

[Qemu-devel] [PATCH RFC 04/15] misc/a9scu: QOM cleanups

2013-06-30 Thread Andreas Färber
From: Andreas Färber Rename A9SCUState::busdev field to parent_obj and turn realizefn into an instance_init function to allow early MMIO mapping. Signed-off-by: Andreas Färber --- hw/misc/a9scu.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/misc/a9scu.c

[Qemu-devel] [PATCH RFC 02/15] cpu/a9mpcore: Split off instance_init

2013-06-30 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index 36254e9..63a4eb1 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.

[Qemu-devel] [PATCH RFC 01/15] cpu/a9mpcore: QOM casting cleanup

2013-06-30 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and enforce its use by renaming A9MPPrivState::busdev field to parent_obj. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw

[Qemu-devel] [PATCH RFC 10/15] cpu/a9mpcore: Prepare for QOM embedding

2013-06-30 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 24 +--- include/hw/cpu/a9mpcore.h | 37 + 2 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 include/hw/cpu/a9mpcore.h diff --git a/hw

[Qemu-devel] [PATCH RFC 06/15] timer/arm_mptimer: QOM cast cleanup

2013-06-30 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and rename ARMMPTimerState::busdev to enforce its use. Signed-off-by: Andreas Färber --- hw/timer/arm_mptimer.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/hw/timer/arm_mptimer.c b/hw/timer/

[Qemu-devel] [PATCH RFC 00/15] arm: A9MPCore+A15MPCore QOM'ification

2013-06-30 Thread Andreas Färber
From: Andreas Färber Hello Peter, This series fully QOM'ifies A9MPCore so that it can be embedded for Tegra2. It goes on to do the same for A15MPCore, which had previously been taken as template for Cortex-A57 by John Rigby. Separate headers are introduced to only expose device state to whom as

[Qemu-devel] [PATCH RFC 07/15] timer/arm_mptimer: Convert to QOM realize

2013-06-30 Thread Andreas Färber
From: Andreas Färber Split the SysBusDevice initfn into instance_init and realizefn. Signed-off-by: Andreas Färber --- hw/timer/arm_mptimer.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c index 58

[Qemu-devel] [PATCH RFC 08/15] cpu/a9mpcore: Embed ARMMPTimerState

2013-06-30 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 46 +-- hw/timer/arm_mptimer.c | 35 --- include/hw/timer/arm_mptimer.h | 54 +++

[Qemu-devel] [PATCH RFC 13/15] cpu/a15mpcore: Embed GICState

2013-06-30 Thread Andreas Färber
From: Andreas Färber This covers both emulated and KVM GIC. Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index 1a

[Qemu-devel] [PATCH RFC 05/15] cpu/a9mpcore: Embed A9SCUState

2013-06-30 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 23 ++- hw/misc/a9scu.c | 18 +- include/hw/misc/a9scu.h | 31 +++ 3 files changed, 46 insertions(+), 26 deletions(

[Qemu-devel] [PATCH RFC 12/15] cpu/a15mpcore: Split off instance_init

2013-06-30 Thread Andreas Färber
From: Andreas Färber Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index b30fe0c..1a15bf8 100644 --- a/hw/cpu/a15mpcore.c +++ b/hw/cpu/a15m

[Qemu-devel] [PATCH RFC 11/15] cpu/a15mpcore: QOM cast cleanup

2013-06-30 Thread Andreas Färber
From: Andreas Färber Introduce type constant and cast macro and rename A15MPPrivState::busdev field to parent_obj to enforce its use. Prepares for QOM realize. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --g

[Qemu-devel] [PATCH RFC 14/15] cpu/a15mpcore: Convert to QOM realize

2013-06-30 Thread Andreas Färber
From: Andreas Färber Turn SysBusDevice initfn into a QOM realizefn. Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c index ee09b57..7fd120f 100644 --- a/hw/cpu/a15mpcor

[Qemu-devel] [PATCH RFC 09/15] cpu/a9mpcore: Convert to QOM realize

2013-06-30 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a9mpcore.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c index 48f5897..67ecf5d 100644 --- a/hw/cpu/a9mpcore.c +++ b/hw/cpu/a9mpcore.c @@ -73,8 +73,9 @@ static v

[Qemu-devel] [PATCH RFC 15/15] cpu/a15mpcore: Prepare for QOM embedding

2013-06-30 Thread Andreas Färber
From: Andreas Färber Signed-off-by: Andreas Färber --- hw/cpu/a15mpcore.c | 21 + include/hw/cpu/a15mpcore.h | 44 2 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 include/hw/cpu/a15mpcore.h diff --g

Re: [Qemu-devel] [PATCH RFC 03/15] cpu/a9mpcore: Embed GICState

2013-06-30 Thread Peter Maydell
On 30 June 2013 22:00, Andreas Färber wrote: > From: Andreas Färber > > Prepares for conversion to QOM realize. > > Signed-off-by: Andreas Färber > --- > hw/cpu/a9mpcore.c | 25 - > 1 file changed, 16 insertions(+), 9 deletions(-) > > diff --git a/hw/cpu/a9mpcore.c b/hw/

Re: [Qemu-devel] [PATCH 08/32] kvm/openpic: in-kernel mpic support

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 08:13, Andreas Färber wrote: > Am 30.06.2013 03:44, schrieb Alexander Graf: >> From: Scott Wood >> >> Enables support for the in-kernel MPIC that thas been merged into the >> KVM next branch. This includes irqfd/KVM_IRQ_LINE support from Alex >> Graf (along with some other im

Re: [Qemu-devel] [PATCH 27/32] PPC: Introduce an alias cache for faster lookups

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 08:25, Andreas Färber wrote: > Am 30.06.2013 03:45, schrieb Alexander Graf: >> When running QEMU with "-cpu ?" we walk through every alias for every >> target CPU we know about. This takes several seconds on my very fast >> host system. >> >> Let's introduce a class object cach

Re: [Qemu-devel] [Qemu-ppc] [PULL 00/32] ppc patch queue 2013-06-30

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 03:44, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for ppc. Please pull. I've squashed the build fix into the openpic-kvm patch and renamed the klass variable to oc. Both changes are active in the very same branch mentioned below. I don't

Re: [Qemu-devel] [PATCH 08/32] kvm/openpic: in-kernel mpic support

2013-06-30 Thread Andreas Färber
Am 01.07.2013 01:01, schrieb Alexander Graf: > > On 30.06.2013, at 08:13, Andreas Färber wrote: > >> Am 30.06.2013 03:44, schrieb Alexander Graf: >>> From: Scott Wood >>> >>> Enables support for the in-kernel MPIC that thas been merged into the >>> KVM next branch. This includes irqfd/KVM_IRQ_L

Re: [Qemu-devel] [PATCH 02/15] PPC: g3beige: Move secondary IDE bus to mac-io

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 08:33, Andreas Färber wrote: > Am 30.06.2013 03:26, schrieb Alexander Graf: >> On a real G3 Beige the secondary IDE bus lives on the mac-io chip, not >> on some random PCI device. Move it there to become more compatible. >> >> While at it, also clean up the IDE channel connecti

Re: [Qemu-devel] [PATCH 05/15] PPC: Mac: Add debug prints in macio and dbdma code

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 08:42, Andreas Färber wrote: > Am 30.06.2013 03:26, schrieb Alexander Graf: >> The macio code is basically undebuggable as it stands today, with no >> debug prints anywhere whatsoever. DBDMA was better, but I needed a >> few more to create reasonable logs that tell me where brea

Re: [Qemu-devel] [PATCH 12/15] PPC: dbdma: Move processing to io

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 08:48, Andreas Färber wrote: > Am 30.06.2013 03:27, schrieb Alexander Graf: >> Soon we will introduce intermediate processing pauses which will >> allow the bottom half to restart a DMA request that couldn't be >> fulfilled yet. >> >> For that to work, move the processing varia

Re: [Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-06-30 Thread Alexander Graf
On 30.06.2013, at 10:21, Andreas Färber wrote: > Am 24.06.2013 08:55, schrieb peter.crosthwa...@xilinx.com: >> From: Peter Crosthwaite >> >> Define and use standard QOM cast macro. Remove usages of DO_UPCAST >> and direct -> style upcasting. >> >> Signed-off-by: Peter Crosthwaite >> --- >> >

Re: [Qemu-devel] [PATCH] target-mips: fix mipsdsp_trunc16_sat16_round

2013-06-30 Thread Petar Jovanovic
From: Richard Henderson [rth7...@gmail.com] on behalf of Richard Henderson [r...@twiddle.net] Sent: Friday, June 28, 2013 7:40 PM To: Petar Jovanovic Cc: Petar Jovanovic; qemu-devel@nongnu.org; aurel...@aurel32.net Subject: Re: [Qemu-devel] [PATCH] target-

[Qemu-devel] [PATCH v2] target-mips: fix mipsdsp_trunc16_sat16_round

2013-06-30 Thread Petar Jovanovic
From: Petar Jovanovic This change corrects rounding and saturation of Q31 fractional value in mipsdsp_trunc16_sat16_round(). Overflow detection was incorrect for the corner case for PRECRQ_RS.PH, and this test case is also part of the change. Signed-off-by: Petar Jovanovic --- v2: - added c

[Qemu-devel] [PATCH 06/17] PPC: dbdma: Fix debug print

2013-06-30 Thread Alexander Graf
There was a debug print that didn't compile for me because the format and the arguments weren't in sync. Fix it up. Signed-off-by: Alexander Graf --- hw/misc/macio/mac_dbdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdm

[Qemu-devel] [PATCH 01/17] PPC: Mac: Fix guest exported tbfreq values

2013-06-30 Thread Alexander Graf
We can tell the guest the frequency of its time base through fwcfg. However, we tell it a different value from the speed tb actually runs at. Let's fix it and make the tbfreq initialization and the fwcfg exposure use the same values. Signed-off-by: Alexander Graf --- hw/ppc/mac_newworld.c | 5 +

[Qemu-devel] [PATCH 00/17] PPC: Mac OS X guest bringup v2

2013-06-30 Thread Alexander Graf
Recently there has been a lot of progress on the OpenBIOS side to get Mac OS X to boot. For a while now it seemed there was only very little to make it a fully working guest os in QEMU. This patch set is the result of this. With this I can successfully boot Mac OS X 10.2 to 10.4 with the g3beige

[Qemu-devel] [PATCH 02/17] PPC: g3beige: Move secondary IDE bus to mac-io

2013-06-30 Thread Alexander Graf
On a real G3 Beige the secondary IDE bus lives on the mac-io chip, not on some random PCI device. Move it there to become more compatible. While at it, also clean up the IDE channel connection logic. Signed-off-by: Alexander Graf --- v1 -> v2: - fix spaces --- hw/ide/macio.c| 2 +-

[Qemu-devel] [PATCH 03/17] PPC: Macio: Replace tabs with spaces

2013-06-30 Thread Alexander Graf
s/^I//g on the file. Signed-off-by: Alexander Graf --- hw/ide/macio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 7a1c573..82409dc 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -55,7 +55,7 @@ static void pmac_ide

[Qemu-devel] [PATCH 07/17] PPC: dbdma: Allow new commands in RUN state

2013-06-30 Thread Alexander Graf
The DBDMA controller can not change its command stream while it's actively streaming data, true. But the fact that it's in RUN state doesn't actually indicate anything. It could just as well be in WAIT while in RUN. And then it's legal to change commands. This fixes a real world issue I've encount

[Qemu-devel] [PATCH 05/17] PPC: Mac: Add debug prints in macio and dbdma code

2013-06-30 Thread Alexander Graf
The macio code is basically undebuggable as it stands today, with no debug prints anywhere whatsoever. DBDMA was better, but I needed a few more to create reasonable logs that tell me where breakage is. Add a DPRINTF macro in the macio source file and add a bunch of debug prints that are all disab

[Qemu-devel] [PATCH 15/17] PPC: Add timer handler for newworld mac-io

2013-06-30 Thread Alexander Graf
Mac OS X accesses fancy timer registers inside of the mac-io on bootup. These really should be ticking at the mac-io bus frequency, but I don't see anyone upset when we just make them as fast as we want to. With this patch on top of my previous patch queue and latest OpenBIOS I am able to boot Ma

[Qemu-devel] [PATCH 10/17] PPC: dbdma: Move static bh variable to device struct

2013-06-30 Thread Alexander Graf
The DBDMA controller has a bottom half to asynchronously process DMA request queues. This bh was stored as a gross static variable. Move it into the device struct instead. While at it, move all users of it to the new generic kick function. Signed-off-by: Alexander Graf --- hw/misc/macio/mac_db

[Qemu-devel] [PATCH 17/17] PPC: dbdma: Support more multi-issue DMA requests

2013-06-30 Thread Alexander Graf
A DMA request can happen for data that hasn't been completely been provided by the IDE core yet. For example - DBDMA request for 0x1000 bytes - IDE request for 1 sector - DBDMA wants to read 0x1000 bytes (8 sectors) from bdrv - breakage Instead, we should truncate our bdrv request to the

[Qemu-devel] [PATCH 11/17] PPC: dbdma: macio: Add DMA callback

2013-06-30 Thread Alexander Graf
We need to know when the IDE core starts a DMA transfer. Add a notifier function so we have the chance to start transmitting data. Signed-off-by: Alexander Graf --- v1 -> v2: - fix dprintf --- hw/ide/macio.c | 40 hw/ppc/mac.h | 2 ++ 2 files chan

[Qemu-devel] [PATCH 13/17] PPC: dbdma: Wait for DMA until we have data

2013-06-30 Thread Alexander Graf
We should only start processing DMA requests when we have data to process. Hold off working through the DMA shuffling until the IDE core told us that it's ready. This is required because the guest can program the DMA engine or the IDE transfer first. Both are legal. Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 14/17] PPC: dbdma: Support unaligned DMA access

2013-06-30 Thread Alexander Graf
The DBDMA engine really just reads bytes from a producing device (IDE in our case) and shoves these bytes into memory. It doesn't care whether any alignment takes place or not. Our code today however assumes that block accesses always happen on sector (512 byte) boundaries. This is a fair assumpti

[Qemu-devel] [PATCH 04/17] PPC: dbdma: Replace tabs with spaces

2013-06-30 Thread Alexander Graf
s/^I//g on the file with a few manual tweaks to align things. Signed-off-by: Alexander Graf --- hw/misc/macio/mac_dbdma.c | 102 +++--- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_db

[Qemu-devel] [PATCH 12/17] PPC: dbdma: Move processing to io

2013-06-30 Thread Alexander Graf
Soon we will introduce intermediate processing pauses which will allow the bottom half to restart a DMA request that couldn't be fulfilled yet. For that to work, move the processing variable into the io struct which is what DMA providers work with. While touching it, also change it into a bool S

[Qemu-devel] [PATCH 08/17] PPC: dbdma: Move defines into header file

2013-06-30 Thread Alexander Graf
We usually keep struct and constant definitions in header files. Move them there to stay consistent and to make access to fields easier. Signed-off-by: Alexander Graf --- hw/misc/macio/mac_dbdma.c | 117 include/hw/ppc/mac_dbdma.h | 118 +

[Qemu-devel] [PATCH 09/17] PPC: dbdma: Introduce kick function

2013-06-30 Thread Alexander Graf
The DBDMA engine really is running all the time, waiting for input. However we don't want to waste cycles constantly polling. So introduce a kick function that data providers can call to notify the DBDMA controller of new input. Signed-off-by: Alexander Graf --- hw/misc/macio/mac_dbdma.c | 5 +

[Qemu-devel] [PATCH v3] linux-user: improve target_to_host_sock_type conversion

2013-06-30 Thread Petar Jovanovic
From: Petar Jovanovic Previous implementation has failed to take into account different value of SOCK_NONBLOCK on target and host, and existence of SOCK_CLOEXEC. The same conversion has to be applied both for do_socket and do_socketpair, so the code has been isolated in a static inline function.

Re: [Qemu-devel] [PATCH v2] linux-user: improve target_to_host_sock_type conversion

2013-06-30 Thread Petar Jovanovic
From: Peter Maydell [peter.mayd...@linaro.org] Sent: Thursday, June 27, 2013 7:21 PM To: Petar Jovanovic Cc: qemu-devel@nongnu.org; blauwir...@gmail.com; riku.voi...@linaro.org; Petar Jovanovic; aurel...@aurel32.net; r...@twiddle.net Subject: Re: [Qemu-dev

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2013-06-30 Thread Brad Smith
Any OS X and NetBSD users still affected by this issue should test this patch.. http://lists.nongnu.org/archive/html/qemu-devel/2013-06/msg05335.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/108

Re: [Qemu-devel] [PATCH for mst/pci] output nc->name in NIC_RX_FILTER_CHANGED event

2013-06-30 Thread Amos Kong
On Wed, Jun 26, 2013 at 12:07:53PM +0200, Markus Armbruster wrote: > Amos Kong writes: > > > On Mon, Jun 24, 2013 at 02:34:59PM +0800, Amos Kong wrote: > >> netclient 'name' entry in event is useful for management to know > >> which device is changed. n->netclient_name is not always set. > >> Thi

Re: [Qemu-devel] [PATCH for mst/pci] output nc->name in NIC_RX_FILTER_CHANGED event

2013-06-30 Thread Amos Kong
On Wed, Jun 26, 2013 at 12:02:45PM +0200, Markus Armbruster wrote: > Amos Kong writes: > > > netclient 'name' entry in event is useful for management to know > > which device is changed. n->netclient_name is not always set. > > This patch changes to use nc->name. If we don't assign 'id', > > qemu

Re: [Qemu-devel] [PATCH 4/4] qapi: Rename ChardevBackend member "memory" to "ringbuf"

2013-06-30 Thread Amos Kong
On Fri, Jun 28, 2013 at 07:19:39PM +0200, Markus Armbruster wrote: > Eric Blake writes: > > > On 06/27/2013 08:22 AM, Markus Armbruster wrote: > >> Commit 1da48c6 called the new member "memory" after commit 3949e59 > >> standardized "ringbuf". Rename for consistency. > >> > >> However, member n

Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information

2013-06-30 Thread Amos Kong
On Fri, Jun 28, 2013 at 07:27:21PM +0200, Markus Armbruster wrote: > Eric Blake writes: > > > On 06/26/2013 08:15 AM, Markus Armbruster wrote: > >> Luiz Capitulino writes: > >> > >>> On Wed, 26 Jun 2013 14:00:30 +0200 > >>> Markus Armbruster wrote: > >>> > Meh, I got confused and reviewed

[Qemu-devel] [PATCH] configure: detect endian via compile test

2013-06-30 Thread Mike Frysinger
This avoids needing to execute a program and keeping an (incomplete) list when cross-compiling. Signed-off-by: Mike Frysinger --- configure | 40 ++-- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/configure b/configure index 2206a87..19d0856

[Qemu-devel] [PATCH] vmdk: Implement .bdrv_has_zero_init

2013-06-30 Thread Fam Zheng
Depending on the subformat, has_zero_init queries underlying storage for flat extent. If it has a flat extent and its underlying storage doesn't have zero init, return 0. Otherwise return 1. Aligns the operator assignments. Signed-off-by: Fam Zheng --- block/vmdk.c | 48

Re: [Qemu-devel] [PATCH v2 00/30] PCI: Cleanup legacy casts in device land -- ANN: qom-next revived

2013-06-30 Thread Peter Crosthwaite
Hi Andreas, On Sun, Jun 30, 2013 at 8:44 PM, Andreas Färber wrote: > Hi Peter, > > Am 24.06.2013 08:49, schrieb peter.crosthwa...@xilinx.com: >> From: Peter Crosthwaite >> >> There are a number of different cast implementations from various >> stages of QEMU development out in device model land.

  1   2   >