[Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 19.12.2010, at 20:12, Andreas Färber wrote: Am 19.12.2010 um 16:34 schrieb Alexander Graf: On 19.12.2010, at 16:04, Andreas Färber wrote: Am 19.12.2010 um 10:54 schrieb Alexander Graf: On 14.12.2010, at 01:49, Andreas Färber wrote: Hello, Based on an earlier attempt of mine to

Re: [Qemu-devel] [PATCH, RFC 3/4] prep: Fix duplicate ISA IDE IRQ

2010-12-20 Thread Alexander Graf
On 20.12.2010, at 07:37, Andreas Färber wrote: Am 14.12.2010 um 01:49 schrieb Andreas Färber: Calling isa_ide_init() twice with the same IRQ 13 fails: qemu: hardware error: isa irq 13 already assigned Use a different IRQ (14) for the second one to avoid this. Signed-off-by: Hervé

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-20 Thread Marcelo Tosatti
On Sun, Dec 12, 2010 at 02:57:45PM -0500, Kevin O'Connor wrote: On Sun, Dec 12, 2010 at 09:49:16PM +0200, Gleb Natapov wrote: On Sun, Dec 12, 2010 at 02:11:29PM -0500, Kevin O'Connor wrote: On Wed, Dec 08, 2010 at 03:08:59PM -0200, Marcelo Tosatti wrote: Use _RMV method to indicate

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-20 Thread Avi Kivity
On 12/20/2010 10:49 AM, Marcelo Tosatti wrote: On Sun, Dec 12, 2010 at 02:57:45PM -0500, Kevin O'Connor wrote: On Sun, Dec 12, 2010 at 09:49:16PM +0200, Gleb Natapov wrote: On Sun, Dec 12, 2010 at 02:11:29PM -0500, Kevin O'Connor wrote: On Wed, Dec 08, 2010 at 03:08:59PM -0200,

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-20 Thread Fabien Chouteau
On 12/17/2010 08:14 PM, Blue Swirl wrote: On Wed, Dec 15, 2010 at 5:47 PM, Fabien Chouteauchout...@adacore.com wrote: On 12/13/2010 07:18 PM, Blue Swirl wrote: On Mon, Dec 13, 2010 at 3:51 PM, Fabien Chouteauchout...@adacore.com wrote: On 12/11/2010 10:56 AM, Blue Swirl wrote: On Tue,

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-20 Thread Fabien Chouteau
On 12/20/2010 07:46 AM, Edgar E. Iglesias wrote: On Fri, Dec 17, 2010 at 07:14:20PM +, Blue Swirl wrote: On Wed, Dec 15, 2010 at 5:47 PM, Fabien Chouteauchout...@adacore.com wrote: On 12/13/2010 07:18 PM, Blue Swirl wrote: On Mon, Dec 13, 2010 at 3:51 PM, Fabien

Re: [Qemu-devel] Re: [PATCH] sparc32: ledma extra registers

2010-12-20 Thread Artyom Tarasenko
On Sun, Dec 19, 2010 at 8:37 PM, Bob Breuer breu...@mc.net wrote: Andreas Färber wrote: Am 18.12.2010 um 19:53 schrieb Blue Swirl: On Sat, Dec 18, 2010 at 5:09 PM, Bob Breuer breu...@mc.net wrote: ledma has 0x20 bytes of registers according to OBP, and at least Solaris9 reads the 5th

[Qemu-devel] Re: [PATCH V2] qemu, kvm: Enable user space NMI injection for kvm guest

2010-12-20 Thread Marcelo Tosatti
On Fri, Dec 10, 2010 at 03:42:53PM +0800, Lai Jiangshan wrote: Make use of the new KVM_NMI IOCTL to send NMIs into the KVM guest if the user space raised them. (example: qemu monitor's nmi command) Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com Applied to uq/master, thanks.

Re: [Qemu-devel] [PATCH v2] win32: Fix CRLF problem in make_device_config.sh

2010-12-20 Thread Paolo Bonzini
On 12/19/2010 05:06 PM, Andreas Färber wrote: Andreas, may I ask you for one more test? $ echo -e 'include xy\r' | tr -d '\r' | awk '/^include / {ORS=; print $2}' | od -c I'd not bother with ORS and use '$1 == include { printf %s, $2 }' instead. Paolo

[Qemu-devel] Re: [PATCH v2 2/2] qemu, qmp: convert do_inject_nmi() to QObject, QError

2010-12-20 Thread Marcelo Tosatti
On Fri, Dec 10, 2010 at 09:20:26AM -0200, Luiz Capitulino wrote: On Fri, 10 Dec 2010 14:36:08 +0800 Lai Jiangshan la...@cn.fujitsu.com wrote: +SQMP +inject_nmi +-- + +Inject an NMI on the given CPU (x86 only). + +Arguments: + +- cpu_index: the index of the CPU to be

[Qemu-devel] Re: Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread François Revol
So we certainly do need some open source firmware solution for prep to at least have Linux running. For other guests, I don't see a reason why users shouldn't try to fetch a real firmware blob separately :). We're not shipping any firmware for ppcemb either, so that argument seems moot.

[Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 20.12.2010, at 13:19, François Revol wrote: So we certainly do need some open source firmware solution for prep to at least have Linux running. For other guests, I don't see a reason why users shouldn't try to fetch a real firmware blob separately :). We're not shipping any firmware

[Qemu-devel] [PATCH 1/3] ide: factor dma handling helpers

2010-12-20 Thread Christoph Hellwig
Factor the DMA I/O path that is duplicated between read and write commands, into common helpers using the s-is_read flag added for the macio ATA controller. Signed-off-by: Christoph Hellwig h...@lst.de Index: qemu/hw/ide/core.c ===

[Qemu-devel] [PATCH 2/3] ide: also reset io_buffer_index for writes

2010-12-20 Thread Christoph Hellwig
Currenly the code only resets the io_buffer_index field for reads, but the code seems to expect this for all types of I/O. I guess we simply don't hit large enough transfers that would require this often enough. Signed-off-by: Christoph Hellwig h...@lst.de Index: qemu/hw/ide/core.c

[Qemu-devel] [PATCH 3/3] ide: kill ide_dma_submit_check

2010-12-20 Thread Christoph Hellwig
Merge ide_dma_submit_check into it's only caller. Also use tail recursion using a goto instead of a real recursion - this avoid overflowing the stack in the pathological situation of an recurring error that is ignored. We'll still be busy looping in ide_dma_cb, but at least won't eat up all stack

Re: [Qemu-devel] [PATCH v2 2/6] qdev: reset qdev along with qdev tree

2010-12-20 Thread Markus Armbruster
Anthony Liguori aligu...@linux.vnet.ibm.com writes: On 12/17/2010 08:45 AM, Peter Maydell wrote: On 17 December 2010 00:24, Anthony Liguorialigu...@linux.vnet.ibm.com wrote: On 12/16/2010 05:48 PM, Michael S. Tsirkin wrote: Ugh, I keep forgetting about the non-qdev systems.

[Qemu-devel] Re: [PATCH v2] qbus: register reset handler for qbus whose parent is NULL

2010-12-20 Thread Michael S. Tsirkin
On Mon, Dec 20, 2010 at 02:33:35PM +0900, Isaku Yamahata wrote: Stefan Weil reported the regression caused by ec990eb622ad46df5ddcb1e94c418c271894d416 as follows The second regression also occurs with MIPS malta. Networking no longer works with the default pcnet nic. This is caused

[Qemu-devel] [Bug 502107] Re: qemu-kvm 0.12.1.2 crashes booting Ubuntu 9.10 with -vga std

2010-12-20 Thread Michael Kofler
still not resolved: guest=Ubuntu 10.10, host=Fedora14 crashes with -vga std or -vga vmware works with -vga cirrus -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/502107 Title: qemu-kvm 0.12.1.2

[Qemu-devel] [Bug 670883] Re: ARM : ldrexd and strexd implementation flawed

2010-12-20 Thread Peter Maydell
The patch has now been merged into qemu's master git repo: http://git.qemu.org/qemu.git/commit/?id=2c9adbda721c9996ec6b371cac4a00c1164b818e (and so this bug should be fixed in the 0.14 release since that has not yet branched.) ** Changed in: qemu Status: New = Fix Committed -- You

[Qemu-devel] [Bug 502107] Re: qemu-kvm 0.12.1.2 crashes booting Ubuntu 9.10 with -vga std

2010-12-20 Thread Michael Kofler
PS: qemu-kvm -version = 0.13.0 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/502107 Title: qemu-kvm 0.12.1.2 crashes booting Ubuntu 9.10 with -vga std Status in QEMU: Confirmed Bug

[Qemu-devel] [Bug 692570] [NEW] APIC Latency causing BSOD.

2010-12-20 Thread La' Maze Johnson
Public bug reported: I have a Proxmox Server with the following specs: Version: pve-manager: 1.7-10 (pve-manager/1.7/5323) running kernel: 2.6.32-4-pve proxmox-ve-2.6.32: 1.7-28 pve-kernel-2.6.32-4-pve: 2.6.32-28 qemu-server: 1.1-25 pve-firmware: 1.0-9 libpve-storage-perl: 1.0-16 vncterm: 0.9-2

[Qemu-devel] [Bug 502107] Re: qemu-kvm 0.12.1.2 crashes booting Ubuntu 9.10 with -vga std

2010-12-20 Thread Michael Kofler
PPS: Ubuntu 10.10 crashes also with qemu-kvm -vga qxl -spice ... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/502107 Title: qemu-kvm 0.12.1.2 crashes booting Ubuntu 9.10 with -vga std Status in

Re: [Qemu-devel] [PATCH 00/15] Megasas HBA emulation and SCSI update v.3

2010-12-20 Thread Christoph Hellwig
Any chance you could resubmit the remaining patches after addressing the outstanding comments? We'll really need the scsi changes to move forward without introducing conflicts.

Re: [Qemu-devel] [PATCH 00/15] Megasas HBA emulation and SCSI update v.3

2010-12-20 Thread Hannes Reinecke
On 12/20/2010 03:59 PM, Christoph Hellwig wrote: Any chance you could resubmit the remaining patches after addressing the outstanding comments? We'll really need the scsi changes to move forward without introducing conflicts. Yes, I'm currently rebasing my patchset relative to Kevin's git

[Qemu-devel] KVM call agenda for Dec 21

2010-12-20 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

Re: [Qemu-devel] [PATCH 2/3] nmi: make cpu-index argument optional

2010-12-20 Thread Markus Armbruster
Lai Jiangshan la...@cn.fujitsu.com writes: When the argument cpu-index is not given, then nmi command will inject NMI on all CPUs. This simulate the nmi button on physical machine. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git a/hmp-commands.hx b/hmp-commands.hx index

Re: [Qemu-devel] [PATCH V4 3/3] qmp, nmi: convert do_inject_nmi() to QObject, QError

2010-12-20 Thread Markus Armbruster
Lai Jiangshan la...@cn.fujitsu.com writes: Make we can inject NMI via qemu-monitor-protocol. We use inject-nmi for the qmp command name, the meaning is clearer. When cpu-index is found invalid in runtime, it will report QERR_INVALID_PARAMETER_VALUE. This patch does two separate things: 1.

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-20 Thread Avi Kivity
On 12/20/2010 07:05 PM, Marcelo Tosatti wrote: Yes, perhaps it all (including PCI hotplug controller) should be using something else than hardcoded IO ports, but thats what we have now. At least it should be documented. What's the behaviour with a qemu that doesn't support the new

[Qemu-devel] [PATCH v2] sparc32: ledma extra registers need tracing too

2010-12-20 Thread Bob Breuer
Also trace the extra registers, and update the comments with new info from Artyom Tarasenko. Signed-off-by: Bob Breuer breu...@mc.net --- Since the extra registers are aliased, we could instead alias them at a higher level. Solaris9 boots to single-user with either option. diff --git

[Qemu-devel] document QEMU-ACPIBIOS PCI hotplug interface

2010-12-20 Thread Marcelo Tosatti
Document how QEMU communicates with ACPI BIOS for PCI hotplug. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- /dev/null 2010-12-14 09:23:48.414180082 -0200 +++ qemu/docs/specs/acpi_pci_hotplug.txt2010-12-20 15:00:26.0 -0200 @@ -0,0 +1,39 @@ +QEMU-ACPI BIOS PCI hotplug

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-20 Thread Marcelo Tosatti
On Mon, Dec 20, 2010 at 11:15:40AM +0200, Avi Kivity wrote: On 12/20/2010 10:49 AM, Marcelo Tosatti wrote: On Sun, Dec 12, 2010 at 02:57:45PM -0500, Kevin O'Connor wrote: On Sun, Dec 12, 2010 at 09:49:16PM +0200, Gleb Natapov wrote: On Sun, Dec 12, 2010 at 02:11:29PM -0500, Kevin

Re: [Qemu-devel] [PATCH 1/3] nmi: convert cpu_index to cpu-index

2010-12-20 Thread Markus Armbruster
Lai Jiangshan la...@cn.fujitsu.com writes: cpu-index is better name. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git a/hmp-commands.hx b/hmp-commands.hx index 4befbe2..8de7aa3 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -721,7 +721,7 @@ ETEXI #if

Re: [Qemu-devel] Re: [PATCH] sparc32: ledma extra registers

2010-12-20 Thread Bob Breuer
Artyom Tarasenko wrote: On Sun, Dec 19, 2010 at 8:37 PM, Bob Breuer breu...@mc.net wrote: Andreas Färber wrote: Am 18.12.2010 um 19:53 schrieb Blue Swirl: On Sat, Dec 18, 2010 at 5:09 PM, Bob Breuer breu...@mc.net wrote: ledma has 0x20 bytes of registers according

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-20 Thread Marcelo Tosatti
On Mon, Dec 20, 2010 at 07:44:12PM +0200, Avi Kivity wrote: On 12/20/2010 07:05 PM, Marcelo Tosatti wrote: Yes, perhaps it all (including PCI hotplug controller) should be using something else than hardcoded IO ports, but thats what we have now. At least it should be documented.

[Qemu-devel] Re: [PATCH 2/2] serial: Declare as little endian

2010-12-20 Thread Blue Swirl
On Sun, Dec 19, 2010 at 3:25 PM, Alexander Graf ag...@suse.de wrote: On 19.12.2010, at 11:46, Blue Swirl wrote: This patch replaces explicit bswaps with endianness hints to the mmio layer. CC: Alexander Graf ag...@suse.de Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/serial.c |  

Re: [Qemu-devel] libqemu.a not made with version 0.13

2010-12-20 Thread Blue Swirl
On Sun, Dec 19, 2010 at 7:53 PM, Stefano Bonifazi stefboombas...@gmail.com wrote: On 12/19/2010 05:51 PM, Andreas Färber wrote: Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi: I need to create an application that execute a PPC binary on a i386 host with some input, and get the result from

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-20 Thread Blue Swirl
On Mon, Dec 20, 2010 at 9:25 AM, Fabien Chouteau chout...@adacore.com wrote: On 12/17/2010 08:14 PM, Blue Swirl wrote: On Wed, Dec 15, 2010 at 5:47 PM, Fabien Chouteauchout...@adacore.com  wrote: On 12/13/2010 07:18 PM, Blue Swirl wrote: On Mon, Dec 13, 2010 at 3:51 PM, Fabien

Re: [Qemu-devel] [PATCH v2 2/6] qdev: reset qdev along with qdev tree

2010-12-20 Thread Stefan Weil
Am 20.12.2010 13:58, schrieb Markus Armbruster: Anthony Liguori aligu...@linux.vnet.ibm.com writes: On 12/17/2010 08:45 AM, Peter Maydell wrote: On 17 December 2010 00:24, Anthony Liguorialigu...@linux.vnet.ibm.com wrote: On 12/16/2010 05:48 PM, Michael S. Tsirkin wrote: Ugh, I keep

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-20 Thread Blue Swirl
On Mon, Dec 20, 2010 at 9:40 AM, Fabien Chouteau chout...@adacore.com wrote: On 12/20/2010 07:46 AM, Edgar E. Iglesias wrote: On Fri, Dec 17, 2010 at 07:14:20PM +, Blue Swirl wrote: On Wed, Dec 15, 2010 at 5:47 PM, Fabien Chouteauchout...@adacore.com  wrote: On 12/13/2010 07:18 PM,

Re: [Qemu-devel] document QEMU-ACPIBIOS PCI hotplug interface

2010-12-20 Thread Blue Swirl
On Mon, Dec 20, 2010 at 5:09 PM, Marcelo Tosatti mtosa...@redhat.com wrote: Document how QEMU communicates with ACPI BIOS for PCI hotplug. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- /dev/null   2010-12-14 09:23:48.414180082 -0200 +++ qemu/docs/specs/acpi_pci_hotplug.txt        

Re: [Qemu-devel] [PATCH] libiscsi

2010-12-20 Thread ronnie sahlberg
Thanks. I have implemented all of your suggestions and will submit version 2 of the patch shortly. regards ronnie sahlberg On Tue, Dec 14, 2010 at 7:47 AM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Dec 13, 2010 at 8:05 AM, Ronnie Sahlberg ronniesahlb...@gmail.com wrote: This patch adds

Re: [Qemu-devel] Patches for OpenBSD support.

2010-12-20 Thread Blue Swirl
On Sun, Dec 19, 2010 at 8:59 PM, Brad b...@comstyle.com wrote: Here are a few patches for OpenBSD support. Thanks. Could you resend each patch separately and add Signed-off-by: Brad Smith b...@comstyle.com line before '---' line?

Re: [Qemu-devel] [PATCH v2 2/6] qdev: reset qdev along with qdev tree

2010-12-20 Thread Markus Armbruster
Stefan Weil w...@mail.berlios.de writes: Am 20.12.2010 13:58, schrieb Markus Armbruster: Anthony Liguori aligu...@linux.vnet.ibm.com writes: On 12/17/2010 08:45 AM, Peter Maydell wrote: On 17 December 2010 00:24, Anthony Liguorialigu...@linux.vnet.ibm.com wrote: On 12/16/2010 05:48 PM,

[Qemu-devel] Re: [PULL 0/3] Prepare removal of SoftFloat integer types

2010-12-20 Thread Blue Swirl
Thanks, applied all. On Sun, Dec 19, 2010 at 4:22 PM, Andreas Färber andreas.faer...@web.de wrote: Hello, The following patches are split off from the softfloat series and updated as requested. The following changes since commit 4fd37a98d1248bae54a9f71ee1c252d2b2f1efd5:  Avoid a warning

[Qemu-devel] [PATCH 8/8] ahci: fix !msi interrupts

2010-12-20 Thread Alexander Graf
When not using MSI, receiving an interrupt while the interrupt line is active pulses the interrupt line. Without this, guests don't realize that a new interrupt occured. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/ahci.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH 0/8] Some more AHCI work

2010-12-20 Thread Alexander Graf
Clearly, AHCI as is is not perfect yet (intentionally, release early, release often, remember?). This patch set makes it work with SeaBIOS so booting Windows 7 works flawlessly for me. it also adds some speedups and fixes a level based interrupts, rendering ahci useful on PPC targets. In

[Qemu-devel] [PATCH 3/8] ahci: send init d2h fis on fis enable

2010-12-20 Thread Alexander Graf
The drive sends a d2h init fis on initialization. Usually, the guest doesn't receive fises yet at that point though, so the delivery is deferred. Let's reflect that by sending the init fis on fis receive enablement. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/ahci.c | 34

[Qemu-devel] [PATCH 2/8] ahci: split ICH and AHCI even more

2010-12-20 Thread Alexander Graf
Sebastian's patch already did a pretty good job at splitting up ICH-9 AHCI code and the AHCI core. We need some more though. Copyright was missing, the lspci dump belongs to ICH-9, we don't need the AHCI core to have its own qdev device duplicate. So let's split them a bit more in this patch,

[Qemu-devel] [PATCH 5/8] ahci: Implement HBA reset

2010-12-20 Thread Alexander Graf
The ahci code was missing its soft reset functionality. This wasn't really an issue for Linux guests, but Windows gets confused when the controller doesn't reset when it tells it so. Using this patch I can now successfully boot Windows 7 from AHCI using AHCI enabled SeaBIOS. Signed-off-by:

[Qemu-devel] [PATCH 6/8] ahci: make number of ports runtime determined

2010-12-20 Thread Alexander Graf
Different AHCI controllers have a different number of ports, so the core shouldn't care about the amount of ports available. This patch makes the number of ports available to the AHCI core runtime configurable, allowing us to have multiple different AHCI implementations with different amounts of

[Qemu-devel] [PATCH 1/8] ahci: split ICH9 from core

2010-12-20 Thread Alexander Graf
From: Sebastian Herbszt herb...@gmx.de There are multiple ahci devices out there. The currently implemented ich-9 is only one of the many. So let's split that one out into a separate file to stress the difference. Signed-off-by: Sebastian Herbszt herb...@gmx.de Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 4/8] ahci: use qiov instead of dma helpers

2010-12-20 Thread Alexander Graf
The DMA helpers incur additional overhead on data transfers. I'm not sure we need the additional complexity provided by them. So let's just use qiovs directly when running in the fast path (ncq). Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/ahci.c | 100

[Qemu-devel] [PATCH] piix: use pci_config_set_prog_interface()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_prog_interface(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 1cad906..2772e08 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -135,7 +135,7 @@ static int pci_piix_ide_initfn(PCIIDEState *d) { uint8_t *pci_conf =

[Qemu-devel] [PATCH] cmd646: use pci_config_set_prog_interface()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_prog_interface(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 5d5464a..e125dfc 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -230,7 +230,7 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev)

[Qemu-devel] Re: [PATCH v2] sparc32: ledma extra registers need tracing too

2010-12-20 Thread Blue Swirl
Thanks, applied. On Mon, Dec 20, 2010 at 5:55 PM, Bob Breuer breu...@mc.net wrote: Also trace the extra registers, and update the comments with new info from Artyom Tarasenko. Signed-off-by: Bob Breuer breu...@mc.net --- Since the extra registers are aliased, we could instead alias them at

[Qemu-devel] [PATCH] rtl8139: use pci_config_set_revision()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/rtl8139.c b/hw/rtl8139.c index a8aed89..6407ce0 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -3346,7 +3346,7 @@ static int pci_rtl8139_init(PCIDevice *dev) pci_conf = s-dev.config;

[Qemu-devel] [PATCH] pcnet-pci: use pci_config_set_revision()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c index 339a401..c9811e2 100644 --- a/hw/pcnet-pci.c +++ b/hw/pcnet-pci.c @@ -282,7 +282,7 @@ static int pci_pcnet_init(PCIDevice *pci_dev)

[Qemu-devel] [PATCH] e1000: use pci_config_set_revision()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/e1000.c b/hw/e1000.c index af101bd..7bad51a 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1116,7 +1116,7 @@ static int pci_e1000_init(PCIDevice *pci_dev) pci_config_set_device_id(pci_conf,

[Qemu-devel] [PATCH] usb-uhci: use pci_config_set_revision()

2010-12-20 Thread Sebastian Herbszt
Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt herb...@gmx.de diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index b9b822f..5b3bf21 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1106,7 +1106,7 @@ static int usb_uhci_common_initfn(UHCIState *s) uint8_t *pci_conf =

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Andreas Färber
Am 20.12.2010 um 13:30 schrieb Alexander Graf: On 20.12.2010, at 13:19, François Revol wrote: So we certainly do need some open source firmware solution for prep to at least have Linux running. For other guests, I don't see a reason why users shouldn't try to fetch a real firmware blob

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 20.12.2010, at 23:24, Andreas Färber wrote: Am 20.12.2010 um 13:30 schrieb Alexander Graf: On 20.12.2010, at 13:19, François Revol wrote: So we certainly do need some open source firmware solution for prep to at least have Linux running. For other guests, I don't see a reason why

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 20.12.2010, at 23:24, Andreas Färber wrote: Am 20.12.2010 um 13:30 schrieb Alexander Graf: On 20.12.2010, at 13:19, François Revol wrote: So we certainly do need some open source firmware solution for prep to at least have Linux running. For other guests, I don't see a reason why

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread Alexander Graf
On 31.05.2009, at 17:20, Stuart Brady wrote: Hi! Here's an update of the Z80 system emulator, which currently emulates the ZX Spectrum only. Significant changes since Ulrich Hecht's updated version are as follows: * Converted CPU emulation core to TCG * Fixed emulation of 'bright'

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Andreas Färber
Am 20.12.2010 um 10:04 schrieb Alexander Graf: On 19.12.2010, at 20:12, Andreas Färber wrote: Am 19.12.2010 um 16:34 schrieb Alexander Graf: On 19.12.2010, at 16:04, Andreas Färber wrote: Am 19.12.2010 um 10:54 schrieb Alexander Graf: On 14.12.2010, at 01:49, Andreas Färber wrote:

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 21.12.2010, at 00:00, Andreas Färber wrote: Am 20.12.2010 um 10:04 schrieb Alexander Graf: On 19.12.2010, at 20:12, Andreas Färber wrote: Am 19.12.2010 um 16:34 schrieb Alexander Graf: On 19.12.2010, at 16:04, Andreas Färber wrote: Am 19.12.2010 um 10:54 schrieb Alexander Graf:

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread Andreas Färber
Am 20.12.2010 um 23:45 schrieb Alexander Graf: On 31.05.2009, at 17:20, Stuart Brady wrote: Here's an update of the Z80 system emulator, which currently emulates the ZX Spectrum only. [...] [...] do you think it's a valuable target to have in upstream qemu? The z80 was also used in the

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread Alexander Graf
On 21.12.2010, at 01:06, Andreas Färber wrote: Am 20.12.2010 um 23:45 schrieb Alexander Graf: On 31.05.2009, at 17:20, Stuart Brady wrote: Here's an update of the Z80 system emulator, which currently emulates the ZX Spectrum only. [...] [...] do you think it's a valuable target to

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Andreas Färber
Am 21.12.2010 um 00:07 schrieb Alexander Graf: On 21.12.2010, at 00:00, Andreas Färber wrote: Am 20.12.2010 um 10:04 schrieb Alexander Graf: On 19.12.2010, at 20:12, Andreas Färber wrote: Am 19.12.2010 um 16:34 schrieb Alexander Graf: On 19.12.2010, at 16:04, Andreas Färber wrote: Am

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-20 Thread Alexander Graf
On 21.12.2010, at 01:33, Andreas Färber wrote: Am 21.12.2010 um 00:07 schrieb Alexander Graf: On 21.12.2010, at 00:00, Andreas Färber wrote: Am 20.12.2010 um 10:04 schrieb Alexander Graf: On 19.12.2010, at 20:12, Andreas Färber wrote: Am 19.12.2010 um 16:34 schrieb Alexander Graf:

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread Andreas Färber
Am 21.12.2010 um 01:10 schrieb Alexander Graf: On 21.12.2010, at 01:06, Andreas Färber wrote: Am 20.12.2010 um 23:45 schrieb Alexander Graf: On 31.05.2009, at 17:20, Stuart Brady wrote: Here's an update of the Z80 system emulator, which currently emulates the ZX Spectrum only. [...]

Re: [Qemu-devel] Re: [PATCH] scsi-generic: bugfixes for 'SCSIRequest' conversion

2010-12-20 Thread Benjamin Herrenschmidt
Yep, so it appears that commit 89c0f6438d16 did introduce the bogus 'double complete' in scsi_read_complete, which I think was intended to handle residual counts for TYPE_TYPE... /* Cancel a pending data transfer. */ @@ -251,6 +257,8 @@ static void scsi_read_complete(void * opaque, int

[Qemu-devel] [PATCH 1/3] Add support for OpenBSD to QEMU's tap driver.

2010-12-20 Thread Brad
Signed-off-by: Brad Smith b...@comstyle.com --- net/tap-bsd.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net/tap-bsd.c b/net/tap-bsd.c index efccfe0..2f3efde 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -43,8 +43,8 @@ int tap_open(char *ifname, int

[Qemu-devel] [PATCH 2/3] Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC.

2010-12-20 Thread Brad
Signed-off-by: Brad Smith b...@comstyle.com --- qemu-timer-common.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-timer-common.c b/qemu-timer-common.c index fff4399..755e300 100644 --- a/qemu-timer-common.c +++ b/qemu-timer-common.c @@ -50,7 +50,8 @@ static void

[Qemu-devel] [PATCH 3/3] Use mmap() within code_gen_alloc() for OpenBSD.

2010-12-20 Thread Brad
Signed-off-by: Brad Smith b...@comstyle.com --- exec.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index 42a35e0..e513d16 100644 --- a/exec.c +++ b/exec.c @@ -517,7 +517,8 @@ static void code_gen_alloc(unsigned long tb_size) exit(1);

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread Natalia Portillo
Hi all, The Z80 CPU and its variants and clones are not only used in dozens of computers (ranging from a full range of CP/M compatible ones, and minicomputers mostly seen as general public as gaming devices -Amstrad, Speccy-), but also in hunders of embedded systems and even on Adaptec SCSI

Re: [Qemu-devel] [PATCH] disable sigcld handling before calling pclose()

2010-12-20 Thread Wen Congyang
At 12/20/2010 02:33 PM, Andreas Färber Write: Am 20.12.2010 um 02:25 schrieb Wen Congyang: At 12/14/2010 05:23 PM, Wen Congyang Write: At 2010-12-09 11:41, Wen Congyang Write: When I use the command 'virsh save' to save the domain state, I receive the following error message: operation

Re: [Qemu-devel] [PATCH] Z80 emulation updated again!

2010-12-20 Thread John Williams
On Tue, Dec 21, 2010 at 12:38 PM, Natalia Portillo clau...@claunia.comwrote: Hi all, The Z80 CPU and its variants and clones are not only used in dozens of computers (ranging from a full range of CP/M compatible ones, and minicomputers mostly seen as general public as gaming devices

[Qemu-devel] scsi-generic and max request size

2010-12-20 Thread Benjamin Herrenschmidt
Hi folks ! There's an odd problem I've encountered with my scsi host (basically an powerpc vscsi compatible with IBM PAPR). When using /dev/sg (ie, scsi-generic), there seem to be no way I can find to retrieve the underlying driver's max request transfer size. This can normally be obtained with

Re: [Qemu-devel] scsi-generic and max request size

2010-12-20 Thread ronnie sahlberg
Ben, Since it is a scsi device you can try the Inquiry command with pagecode 0xb0 : Block Limit VPD Page. That pages show optimal and maximum request sizes. This is for SBC, in the Vital Product Data chapter. Unfortunately this page is not mandatory so some devices might not understand it.

Re: [Qemu-devel] scsi-generic and max request size

2010-12-20 Thread Benjamin Herrenschmidt
On Tue, 2010-12-21 at 14:38 +1100, ronnie sahlberg wrote: Ben, Since it is a scsi device you can try the Inquiry command with pagecode 0xb0 : Block Limit VPD Page. That pages show optimal and maximum request sizes. This is for SBC, in the Vital Product Data chapter. Unfortunately

[Qemu-devel] [PATCH v2] disable sigcld handling before calling pclose()

2010-12-20 Thread Wen Congyang
When I use the command 'virsh save' to save the domain state, I receive the following error message: operation failed: Migration unexpectedly failed. I debug the qemu by adding some printf(), and find the function pclose() returns -1. I use strace to trace qemu, the log is as the following:

[Qemu-devel] [PATCH v2] hw/virtio-9p-local.c: Remove unnecessary null char in symlink file

2010-12-20 Thread Harsh Prateek Bora
This patch removes the addition of null char in symlink file which is being appended to file in case of mapped security model. Without this patch, the extra null char causes LTP testcase lstat03 to fail and hence this fix is required. v2: - Description updated to mention about LTP lstat testcase

Re: [Qemu-devel] [PATCH 1/3] nmi: convert cpu_index to cpu-index

2010-12-20 Thread Lai Jiangshan
On 12/21/2010 01:00 AM, Markus Armbruster wrote: Lai Jiangshan la...@cn.fujitsu.com writes: cpu-index is better name. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git a/hmp-commands.hx b/hmp-commands.hx index 4befbe2..8de7aa3 100644 --- a/hmp-commands.hx +++

Re: [Qemu-devel] [PATCH 2/3] nmi: make cpu-index argument optional

2010-12-20 Thread Lai Jiangshan
On 12/21/2010 12:58 AM, Markus Armbruster wrote: Lai Jiangshan la...@cn.fujitsu.com writes: When the argument cpu-index is not given, then nmi command will inject NMI on all CPUs. This simulate the nmi button on physical machine. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com ---

[Qemu-devel] NPTL support

2010-12-20 Thread maheen butt
hi I 'm working with fedora core 13(64 bit) x86_64 platform. I configured QEMU with --enable-nptl switch but I'm not able to run programs containing POSIX threads or fork system call. I run this commandqemu-x86_64 thread it gives system call errorand qemu-x86_64 forkfno child process

Re: [Qemu-devel] [PATCH v2] hw/virtio-9p-local.c: Remove unnecessary null char in symlink file

2010-12-20 Thread Stefan Hajnoczi
On Tue, Dec 21, 2010 at 5:20 AM, Harsh Prateek Bora ha...@linux.vnet.ibm.com wrote: This patch removes the addition of null char in symlink file which is being appended to file in case of mapped security model. Without this patch, the extra null char causes LTP testcase lstat03 to fail and