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
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
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,
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
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
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
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
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 +-
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
"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
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
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
>
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
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/
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
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
>> +++-
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
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
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
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
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
@@
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
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
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
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
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,
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/
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
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
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
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
++
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
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
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
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
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
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
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
"
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
[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
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
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
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
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
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
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
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
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
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.
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
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
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/
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
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
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 +++
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
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(
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
>> ---
>>
>
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-
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
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
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 +
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
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 +-
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
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
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
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
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
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
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
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
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
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
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
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 +
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 +
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.
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
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
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
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
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
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
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
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
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 - 100 of 103 matches
Mail list logo