Re: [Qemu-devel] Get only TCG code without execution

2012-01-16 Thread Mulyadi Santosa
Hi On Mon, Jan 16, 2012 at 06:09, Rajat Goyal rajat.goyal...@gmail.com wrote: Is there a way by which I can get the complete TCG code for pthread parallel binaries in exchange for not making QEMU execute the binary? The thing is, the way I see it, TCG is meant to be like JIT compiler.

Re: [Qemu-devel] [Android-virt] [PATCH 03/12] hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop

2012-01-16 Thread Peter Maydell
On 16 January 2012 01:56, Alexander Graf ag...@suse.de wrote: On 13.01.2012, at 21:52, Peter Maydell wrote: From: Evgeny Voevodin e.voevo...@samsung.com The secondary CPU bootloader in arm_boot.c holds secondary CPUs in a pen until the primary CPU releases them. Make boards specify the

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, I just ran the Qemu monitor to get the PCI information. The information is listed belowe. From the listed information, I did not see anything wrong with the BAR0. --- INFO: Bus 0, device 0, function 0: Host bridge: PCI device 8086:1237 id Bus 0, device 1,

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Hannes Reinecke
On 01/13/2012 05:14 PM, Anthony Liguori wrote: On 01/13/2012 05:19 AM, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. I've tested it to work with Linux, Windows Vista, and Windows7. Changes since v8: - Remove 'disable' keyword from trace definitions

[Qemu-devel] [PATCH] block: replace unchecked strdup/malloc/calloc with glib

2012-01-16 Thread Stefan Hajnoczi
Most of the codebase as been converted to use glib memory allocation functions. There are still a few instances of malloc/calloc in the block layer and qemu-io. Replace them, especially since they do not check the strdup/malloc/calloc return value. Reported-by: Dr David Alan Gilbert

Re: [Qemu-devel] [PATCH 03/14] qemu-tool: Fix mixup of int64 and int64_t

2012-01-16 Thread Stefan Hajnoczi
On Mon, Jan 16, 2012 at 01:46:52AM +0100, Andreas Färber wrote: Commit cbcfa0418f0c196afa765f5c9837b9344d1adcf3 (link the main loop and its dependencies into the tools) introduced stray usages of int64. Use int64_t instead. Signed-off-by: Andreas Färber afaer...@suse.de Cc: Paolo Bonzini

Re: [Qemu-devel] Get only TCG code without execution

2012-01-16 Thread Stefan Hajnoczi
On Sun, Jan 15, 2012 at 11:09:18PM +, Rajat Goyal wrote: I am doing a project to build a daemonic ARM emulator using QEMU. One of the requirements is to get the complete TCG code for any multi-threaded ARM program that I run on QEMU. I do not need QEMU to execute the program and show me

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Stefan Hajnoczi
On Mon, Jan 16, 2012 at 10:02:22AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote: Vadim, Thank you for your prompt reply. Here are the information for our test case. 1) we use the following command line to launch the guest OS /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp

Re: [Qemu-devel] [PATCH v2 02/10] fdc: set busy bit when starting a command

2012-01-16 Thread Kevin Wolf
Am 15.01.2012 08:51, schrieb Hervé Poussineau: This bit must be active while a command is currently executed. Signed-off-by: Hervé Poussineau hpous...@reactos.org I believe this could use some more cleanup. The flag is set and reset multiple times in places that aren't quite obvious. Not

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Charles . Tsai-蔡清海-研究發展部
Stefan, We need the spice support in Qemu. Does qemu-kvm 1.0 support for spice? -Original Message- From: Stefan Hajnoczi [mailto:stefa...@gmail.com] Sent: Monday, January 16, 2012 4:37 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Vadim Rozenfeld; Alon Levy; spice-de...@lists.freedesktop.org; Alex

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Stefan Hajnoczi
2012/1/16 Charles.Tsai-蔡清海-研究發展部 charles.t...@cloudena.com: We need the spice support in Qemu. Does qemu-kvm 1.0 support for spice? I believe so. Stefan

Re: [Qemu-devel] [PATCH v2 04/10] fdc: emulate stepping 0

2012-01-16 Thread Kevin Wolf
Am 15.01.2012 08:51, schrieb Hervé Poussineau: Stepping 1 (S82078B) is not fully i82078 compatible, so better stick to initial revision Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/fdc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/fdc.c

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Dominique Rodrigues
I currently use qemu-1.0 and I confirm that this version works fine with SPICE. Regards, Dominique Rodrigues 8, rue Lemercier 75017 Paris France standard : +33 1 77 69 64 38

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Charles . Tsai-蔡清海-研究發展部
Dominique, Thank you for your information and we will try it here. From: Dominique Rodrigues [mailto:dominique.rodrig...@nanocloud.com] Sent: Monday, January 16, 2012 5:51 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Stefan Hajnoczi; spice-de...@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Vadim

Re: [Qemu-devel] [PATCH v2 07/10] block: add a transfer rate for floppy types

2012-01-16 Thread Kevin Wolf
Am 15.01.2012 08:51, schrieb Hervé Poussineau: Floppies must be read at a specific transfer rate, depending of its own format. Update floppy description table to include required transfer rate. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- block.c | 74

Re: [Qemu-devel] 回??: [PATCH 00/21][RFC] postcopy live?migration

2012-01-16 Thread Isaku Yamahata
On Mon, Jan 16, 2012 at 03:51:16PM +0900, Isaku Yamahata wrote: Thank you for your info. I suppose I found the cause, MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME. Your kernel enables KVM paravirt_ops, right? Although I'm preparing the next path series including the fixes, you can also try

Re: [Qemu-devel] [PATCH v2 09/10] fdc: fix seek command, which shouldn't check tracks

2012-01-16 Thread Kevin Wolf
Am 15.01.2012 08:51, schrieb Hervé Poussineau: The seek command just sends step pulses to the drive and doesn't care if there is a medium inserted of if it is banging the head against the drive. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/fdc.c | 13 ++--- 1

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Charles . Tsai-蔡清海-研究�l展部
Stefan, Can I replace both vireo-pci.c virtio-serial.h files from Qemu 1.0 source tree? Both files are to initialize the vioserial device when launching a VM. -Original Message- From: Stefan Hajnoczi [mailto:stefa...@gmail.com] Sent: Monday, January 16, 2012 5:49 PM To:

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-16 Thread Stefan Hajnoczi
2012/1/16 Charles.Tsai-蔡清海-研究�l展部 charles.t...@cloudena.com: Can I replace both vireo-pci.c virtio-serial.h files from Qemu 1.0 source tree? Both files are to initialize the vioserial device when launching a VM. I suspect that will not work due to larger scale refactoring and changes that

Re: [Qemu-devel] [PATCH] block: replace unchecked strdup/malloc/calloc with glib

2012-01-16 Thread Kevin Wolf
Am 16.01.2012 10:28, schrieb Stefan Hajnoczi: Most of the codebase as been converted to use glib memory allocation functions. There are still a few instances of malloc/calloc in the block layer and qemu-io. Replace them, especially since they do not check the strdup/malloc/calloc return

Re: [Qemu-devel] [PATCH v5 00/15] block: generic image streaming

2012-01-16 Thread Luiz Capitulino
On Fri, 13 Jan 2012 13:14:02 + Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: Note: This is a resend of v5 because the emails I sent earlier today disappeared. This series adds the 'block_stream' command which copies the contents of a backing file into the image file while the VM is

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/9] pci: Make bounds checks on config space accesses actually work

2012-01-16 Thread Alexander Graf
On 13.01.2012, at 02:44, David Gibson wrote: On Fri, Jan 13, 2012 at 03:23:37AM +0200, Michael S. Tsirkin wrote: On Fri, Jan 13, 2012 at 11:26:12AM +1100, David Gibson wrote: On Thu, Jan 12, 2012 at 03:32:32PM +0200, Michael S. Tsirkin wrote: On Thu, Jan 12, 2012 at 04:46:22PM +1100, David

Re: [Qemu-devel] [PATCH 01/14] lm32: Fix mixup of uint32 and uint32_t

2012-01-16 Thread Peter Maydell
On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: diff --git a/hw/milkymist-vgafb_template.h b/hw/milkymist-vgafb_template.h index 69af9ef..544b55e 100644 --- a/hw/milkymist-vgafb_template.h +++ b/hw/milkymist-vgafb_template.h @@ -39,7 +39,7 @@  #elif BITS == 24  #define

Re: [Qemu-devel] [PATCH 2/3] acpi_piix4: Add stub functions for CPU eject callback

2012-01-16 Thread Vasilis Liaskovitis
On Sun, Jan 15, 2012 at 02:38:52PM +0200, Avi Kivity wrote: On 01/13/2012 01:11 PM, Vasilis Liaskovitis wrote: Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff

Re: [Qemu-devel] [PATCH 1/3][Seabios] Add bitmap for cpu _EJ0 callback

2012-01-16 Thread Vasilis Liaskovitis
On Fri, Jan 13, 2012 at 07:27:01PM -0500, Kevin O'Connor wrote: On Fri, Jan 13, 2012 at 12:11:30PM +0100, Vasilis Liaskovitis wrote: Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com The SeaBIOS change is okay with me, but the qemu/kvm change needs to be accepted

Re: [Qemu-devel] unknown keycodes

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 08:04:32AM +0100, Daniel Espling wrote: Hi Daniel, please find the output of xdpyinfo and xprop attached, I checked the output from both the linux server side and the OSX client, but the only difference is the name of display parameter so I included only that of the

Re: [Qemu-devel] [PATCH 05/14] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

2012-01-16 Thread Peter Maydell
On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: +#if defined(CONFIG_SOLARIS) CONFIG_SOLARIS_VERSION 10 +/* uint_fast8_t and uint_fast16_t not in sys/int_types.h */ +typedef unsigned char           uint_fast8_t; +typedef unsigned int            uint_fast16_t; +#endif If you

Re: [Qemu-devel] [PATCH 05/14] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

2012-01-16 Thread Andreas Färber
Am 16.01.2012 12:38, schrieb Peter Maydell: On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: +#if defined(CONFIG_SOLARIS) CONFIG_SOLARIS_VERSION 10 +/* uint_fast8_t and uint_fast16_t not in sys/int_types.h */ +typedef unsigned char uint_fast8_t; +typedef unsigned

Re: [Qemu-devel] [PATCH 01/14] lm32: Fix mixup of uint32 and uint32_t

2012-01-16 Thread Andreas Färber
Am 16.01.2012 12:27, schrieb Peter Maydell: On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: diff --git a/hw/milkymist-vgafb_template.h b/hw/milkymist-vgafb_template.h index 69af9ef..544b55e 100644 --- a/hw/milkymist-vgafb_template.h +++ b/hw/milkymist-vgafb_template.h @@

Re: [Qemu-devel] [PATCH 05/14] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

2012-01-16 Thread Peter Maydell
On 16 January 2012 12:13, Andreas Färber afaer...@suse.de wrote: Am 16.01.2012 12:38, schrieb Peter Maydell: On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: +#if defined(CONFIG_SOLARIS) CONFIG_SOLARIS_VERSION 10 +/* uint_fast8_t and uint_fast16_t not in sys/int_types.h */

Re: [Qemu-devel] Get only TCG code without execution

2012-01-16 Thread Rajat Goyal
Thanks for your text, Stefan. The situation is like this. The most basic multi-threaded program (using pthreads) which just prints something like I am Thread 1 and I am Thread 2 does not work over the QEMU user emulator. There are no output messages saying I am thread 1 etc. when the program

Re: [Qemu-devel] [PATCH 2/3] acpi_piix4: Add stub functions for CPU eject callback

2012-01-16 Thread Avi Kivity
On 01/16/2012 01:32 PM, Vasilis Liaskovitis wrote: On Sun, Jan 15, 2012 at 02:38:52PM +0200, Avi Kivity wrote: On 01/13/2012 01:11 PM, Vasilis Liaskovitis wrote: Signed-off-by: Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com --- hw/acpi_piix4.c | 15 +++ 1

Re: [Qemu-devel] [PATCH 05/14] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

2012-01-16 Thread Andreas Färber
Am 16.01.2012 13:21, schrieb Peter Maydell: On 16 January 2012 12:13, Andreas Färber afaer...@suse.de wrote: Am 16.01.2012 12:38, schrieb Peter Maydell: On 16 January 2012 00:46, Andreas Färber afaer...@suse.de wrote: +#if defined(CONFIG_SOLARIS) CONFIG_SOLARIS_VERSION 10 +/* uint_fast8_t

Re: [Qemu-devel] Get only TCG code without execution

2012-01-16 Thread Peter Maydell
On 16 January 2012 12:23, Rajat Goyal rajat.goyal...@gmail.com wrote: The situation is like this. The most basic multi-threaded program (using pthreads) which just prints something like I am Thread 1 and I am Thread 2 does not work over the QEMU user emulator. There are no output messages

[Qemu-devel] Is guest agent socket being closed upon reboot?

2012-01-16 Thread Michal Privoznik
Hi, I'd like you to ask if/why is guest agent socked being closed upon guest reboot. I am using virtserialport to talk to guest agent: -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/f16x86_64.agent,server,nowait -device

Re: [Qemu-devel] [PATCH 0/2] MAINTAINERS updates for ppc

2012-01-16 Thread Alexander Graf
On 14.01.2012, at 00:33, Andreas Färber wrote: Hello Alex, As discussed recently, here's two patches to update the ppc entries in MAINTAINERS. They're based on ppc-next. Intent is to have get_maintainers.pl pick up you and qemu-ppc for ppc files. Thanks, applied all to ppc-next. Alex

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Anthony Liguori
On 01/16/2012 03:18 AM, Hannes Reinecke wrote: On 01/13/2012 05:14 PM, Anthony Liguori wrote: On 01/13/2012 05:19 AM, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. I've tested it to work with Linux, Windows Vista, and Windows7. Changes since v8: -

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Anthony Liguori
On 01/13/2012 10:54 AM, Andreas Färber wrote: Am 13.01.2012 12:19, schrieb Hannes Reinecke: +if (desc) { +trace_megasas_readl_reg(mmio, desc, retval); +} else { +trace_megasas_readl(mmio, addr, retval); +} Drop _reg version? Didn't review the SCSI bits. Patch is

[Qemu-devel] Offline for a bit

2012-01-16 Thread Avi Kivity
I'll be offline until next Monday (inclusive). Please send kvm patches to Marcelo, as usual. Urgent or non-core memory API fixes can go to Anthony, I'll review core memory patches, if any, when I return. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Hannes Reinecke
On 01/16/2012 02:39 PM, Anthony Liguori wrote: On 01/13/2012 10:54 AM, Andreas Färber wrote: Am 13.01.2012 12:19, schrieb Hannes Reinecke: +if (desc) { +trace_megasas_readl_reg(mmio, desc, retval); +} else { +trace_megasas_readl(mmio, addr, retval); +} Drop

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Alexander Graf
On 16.01.2012, at 14:59, Hannes Reinecke wrote: On 01/16/2012 02:39 PM, Anthony Liguori wrote: On 01/13/2012 10:54 AM, Andreas Färber wrote: Am 13.01.2012 12:19, schrieb Hannes Reinecke: +if (desc) { +trace_megasas_readl_reg(mmio, desc, retval); +} else { +

Re: [Qemu-devel] [PATCH] prep: Fix offset of BIOS MemoryRegion

2012-01-16 Thread Andreas Färber
Am 05.01.2012 18:13, schrieb Andreas Färber: Since 0c90c52fab5ea92d7f12b29bfe26a7cd75d9efcb (ppc_prep: convert to memory API) OHW was Trying to execute code outside RAM or ROM at 0xfff00700. The BIOS MemoryRegion is created with a fixed size of 1 MiB. Ensure that the full size can be

Re: [Qemu-devel] [PATCH] prep: Use ISA m48t59

2012-01-16 Thread Andreas Färber
Am 13.01.2012 18:35, schrieb Andreas Färber: This simplifies the code later when the i8259 moves to the i82378 PCI-ISA bridge and happens to fix a SysBus m48t59 io_base issue introduced by commit 0fb56ffc5edd66f12ccfc0d71af5f9c79c0a2612 (m48t59: drop obsolete address base arithmetic).

[Qemu-devel] [PATCH v2] do not chdir(/) in qemu-nbd before opening all files

2012-01-16 Thread Michael Tokarev
When qemu-nbd becomes a daemon it calls daemon(3) with nochdir=0, so daemon(3) changes current directory to /. But at this time, qemu-nbd did not open any user-specified files yet, so by changing current directory, all non-absolute paths becomes wrong. The solution is to pass nochdir=1 to

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Avi Kivity
On 01/16/2012 04:05 PM, Alexander Graf wrote: But the emulation itself would be pretty pointless to split up ... You could add the header in a separate first patch :) That makes reviewing harder, not easier. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] [PATCH v4 0/8] qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge

2012-01-16 Thread Andreas Färber
Am 13.01.2012 20:03, schrieb Andreas Färber: Andreas Färber (8): prep: qdev'ify Raven host bridge (PCIDevice) prep_pci: Simplify I/O endianness Applied 1-2 to prep-up branch: http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/prep-up /-F prep_pci: Update I/O to MemoryRegion ops

Re: [Qemu-devel] [PATCH v3 3/8] prep_pci: Update I/O to MemoryRegion ops

2012-01-16 Thread Andreas Färber
Am 15.01.2012 10:19, schrieb Avi Kivity: On 01/13/2012 05:09 AM, Andreas Färber wrote: Convert to new-style read/write callbacks. -static uint32_t PPC_PCIIO_readl (void *opaque, target_phys_addr_t addr) +static uint64_t ppc_pci_io_read(void *opaque, target_phys_addr_t addr, +

Re: [Qemu-devel] Is guest agent socket being closed upon reboot?

2012-01-16 Thread Michael Roth
On 01/16/2012 07:26 AM, Michal Privoznik wrote: Hi, I'd like you to ask if/why is guest agent socked being closed upon guest reboot. I am using virtserialport to talk to guest agent: -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/f16x86_64.agent,server,nowait -device

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Alexander Graf
On 16.01.2012, at 15:50, Avi Kivity wrote: On 01/16/2012 04:05 PM, Alexander Graf wrote: But the emulation itself would be pretty pointless to split up ... You could add the header in a separate first patch :) That makes reviewing harder, not easier. Oh, really? It's basically

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Avi Kivity
On 01/16/2012 05:35 PM, Alexander Graf wrote: On 16.01.2012, at 15:50, Avi Kivity wrote: On 01/16/2012 04:05 PM, Alexander Graf wrote: But the emulation itself would be pretty pointless to split up ... You could add the header in a separate first patch :) That makes

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Alexander Graf
On 16.01.2012, at 16:38, Avi Kivity wrote: On 01/16/2012 05:35 PM, Alexander Graf wrote: On 16.01.2012, at 15:50, Avi Kivity wrote: On 01/16/2012 04:05 PM, Alexander Graf wrote: But the emulation itself would be pretty pointless to split up ... You could add the header in a separate

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Luiz Capitulino
On Fri, 13 Jan 2012 14:48:04 -0700 Eric Blake ebl...@redhat.com wrote: On 01/13/2012 12:15 PM, Luiz Capitulino wrote: The guest-suspend command supports three modes: o hibernate (suspend to disk) o sleep (suspend to ram) o hybrid(save RAM contents to disk, but suspend

Re: [Qemu-devel] [PATCH] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Hannes Reinecke
On 01/16/2012 04:49 PM, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. I've tested it to work with Linux, Windows Vista, and Windows7. Hmm. I bet it'll be rejected now because it doesn't say '[v10]' in the subject :-( Better to set low expectation

Re: [Qemu-devel] [PATCH][v9] megasas: LSI Megaraid SAS HBA emulation

2012-01-16 Thread Avi Kivity
On 01/16/2012 05:39 PM, Alexander Graf wrote: Oh well, isn't it great how everyone is different? Everyone except me. -- error compiling committee.c: too many arguments to function

[Qemu-devel] [PATCH v7 10/18] ioapic: Drop post-load irr initialization

2012-01-16 Thread Jan Kiszka
As all devices undergo a reset prior to vmloa, and the reset value of irr is 0, we do not need to do this clearing for older vmstates explicitly. Dropping this redundant code will also make KVM integration a bit simpler. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/ioapic.c | 12

[Qemu-devel] [PATCH v7 17/18] kvm: x86: Add user space part for in-kernel IOAPIC

2012-01-16 Thread Jan Kiszka
This introduces the KVM-accelerated IOAPIC model 'kvm-ioapic' and extends the IRQ routing setup by the 0-2 redirection when needed. The kvm-ioapic model has a property that allows to define its GSI base for injecting interrupts into the kernel model. This will allow to disentangle PIC and IOAPIC

[Qemu-devel] [PATCH v7 01/18] msi: Generalize msix_supported to msi_supported

2012-01-16 Thread Jan Kiszka
Rename msix_supported to msi_supported and control MSI and MSI-X activation this way. That was likely to original intention for this flag, but MSI support came after MSI-X. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/msi.c |8 hw/msi.h |2 ++ hw/msix.c |9

[Qemu-devel] [PATCH v7 07/18] apic: Open-code timer save/restore

2012-01-16 Thread Jan Kiszka
To enable migration between accelerated and non-accelerated APIC models, we will need to handle the timer saving and restoring specially and can no longer rely on the automatics of VMSTATE_TIMER. Specifically, accelerated model will not start any QEMUTimer. This patch therefore factors out the

[Qemu-devel] [PATCH v7 05/18] apic: Introduce apic_report_irq_delivered

2012-01-16 Thread Jan Kiszka
The in-kernel i8259 and IOAPIC backends for KVM will need this, so encapsulate the shared bits. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/apic.c| 11 --- hw/apic.h|1 + trace-events |2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH v7 16/18] kvm: x86: Add user space part for in-kernel i8259

2012-01-16 Thread Jan Kiszka
Introduce the alternative 'kvm-i8259' device model that exploits KVM in-kernel acceleration. The PIIX3 initialization code is furthermore extended by KVM specific IRQ route setup. GSI injection differs in KVM mode from the user space model. As we can dispatch ISA-range IRQs to both IOAPIC and PIC

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Eric Blake
On 01/16/2012 03:51 AM, Jamie Lokier wrote: Since you mention async-signal-safety, execlp() isn't async-signal-safe! Last time I checked, in Glibc execlp() could call malloc(). Also reading PATH looks at the environment, which isn't always thread-safe either, depending on what else is

[Qemu-devel] [PATCH v5 3/6] MAINTAINERS: Add PCI host bridge files to PReP machine

2012-01-16 Thread Andreas Färber
Signed-off-by: Andreas Färber andreas.faer...@web.de Acked-by: Alexander Graf ag...@suse.de --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index de2a916..148f0d2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -307,6 +307,7 @@ PReP

[Qemu-devel] [PATCH v5 2/6] prep: qdev'ify Raven host bridge (SysBus)

2012-01-16 Thread Andreas Färber
Drop pci_prep_init() in favor of extended device state. Inspired by patches from Hervé and Alex. Assign the 4 IRQs from the board after device instantiation. This moves the knowledge out of prep_pci and allows for future machines with different IRQ wiring (IBM 40P). Suggested by Alex.

[Qemu-devel] [PATCH v5 6/6] prep: Use i82378 PCI-ISA bridge for 'prep' machine

2012-01-16 Thread Andreas Färber
Speaker I/O, ISA bus, i8259 PIC, RTC and DMA are no longer set up individually by the machine. Effectively, no-op speaker I/O is replaced by pcspk; PIT and i82374 DMA are introduced. Signed-off-by: Hervé Poussineau hpous...@reactos.org Remove related dead, alternative code. Wire up PCI host

[Qemu-devel] [PATCH v5 0/6] qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge

2012-01-16 Thread Andreas Färber
Hello, Here's a slightly simplified qdev'ification series for PReP. Sizes other than 1/2/4 are currently not supported, so no need to abort(). Regards, Andreas Changes since v4: * Patches 1-2 were applied to prep-up, thus drop. * Drop switch statements for prep_pci_io_{read,write}(). Suggested

[Qemu-devel] [PATCH v5 1/6] prep_pci: Update I/O to MemoryRegion ops

2012-01-16 Thread Andreas Färber
Convert to new-style read/write callbacks. Signed-off-by: Andreas Färber andreas.faer...@web.de Cc: Alexander Graf ag...@suse.de Cc: Michael S. Tsirkin m...@redhat.com Cc: Avi Kivity a...@redhat.com Cc: Benoît Canet benoit.ca...@gmail.com --- hw/prep_pci.c | 46

[Qemu-devel] [PATCH v5 5/6] prep: Add i82378 PCI-to-ISA bridge emulation

2012-01-16 Thread Andreas Färber
Prepare Intel 82378 emulation for use by PReP platforms. Signed-off-by: Hervé Poussineau hpous...@reactos.org Create ISA bus in this device (suggested by Markus). Rebase onto Memory API, mark memory ops as Little Endian. Add VMState. Provide access to i8259 IRQs via qdev GPIOs. Signed-off-by:

[Qemu-devel] [PATCH v5 4/6] prep: Add i82374 DMA emulation

2012-01-16 Thread Andreas Färber
Prepare Intel 82374 emulation for use by Intel 82378 PCI-ISA bridge. Signed-off-by: Hervé Poussineau hpous...@reactos.org Confine to CONFIG_I82374. Add VMState. Signed-off-by: Andreas Färber andreas.faer...@web.de Reviewed-by: Alexander Graf ag...@suse.de --- Makefile.objs |

[Qemu-devel] [PATCH v7 15/18] kvm: x86: Add user space part for in-kernel APIC

2012-01-16 Thread Jan Kiszka
This introduces the alternative APIC device which makes use of KVM's in-kernel device model. External NMI injection via LINT1 is emulated by checking the current state of the in-kernel APIC, only injecting a NMI into the VCPU if LINT1 is unmasked and configured to DM_NMI. MSI is not yet

[Qemu-devel] [PATCH v7 13/18] kvm: Introduce core services for in-kernel irqchip support

2012-01-16 Thread Jan Kiszka
Add the basic infrastructure to active in-kernel irqchip support, inject interrupts into these models, and maintain IRQ routes. Routing is optional and depends on the host arch supporting KVM_CAP_IRQ_ROUTING. When it's not available on x86, we looe the HPET as we can't route GSI0 to IOAPIC pin 2.

[Qemu-devel] [PATCH v7 02/18] kvm: Move kvmclock into hw/kvm folder

2012-01-16 Thread Jan Kiszka
More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target|4 ++-- configure |1 + hw/{kvmclock.c = kvm/clock.c} |4 ++--

[Qemu-devel] [PATCH 02/15] dma-helpers: add dma_buf_read and dma_buf_write

2012-01-16 Thread Paolo Bonzini
These helpers do a full transfer from an in-memory buffer to target memory, with support for scatter/gather lists. It will be used to store the reply of an emulated command into a QEMUSGList provided by the adapter. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- dma-helpers.c | 30

[Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi

2012-01-16 Thread Paolo Bonzini
Here is v2 (three counting the RFC) of the virtio-scsi driver. Unlike previous versions, it includes migration support. The only change in the spec has been s/UNDERRUN/OVERRUN/g. Paolo Bonzini (13): dma-helpers: make QEMUSGList target independent dma-helpers: add dma_buf_read and

[Qemu-devel] [PATCH 08/15] scsi: add SCSIDevice vmstate definitions

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c | 108 +++-- hw/scsi.h | 16 2 files changed, 121 insertions(+), 3 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index ff7e4f4..a1bfbbe 100644 ---

[Qemu-devel] [PATCH 14/15] virtio-scsi: process control queue requests

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-scsi.c | 125 ++--- 1 files changed, 117 insertions(+), 8 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 21264a1..7ad60ec 100644 --- a/hw/virtio-scsi.c +++

[Qemu-devel] [PATCH v7 18/18] kvm: Activate in-kernel irqchip support

2012-01-16 Thread Jan Kiszka
Make the basic in-kernel irqchip support selectable via -machine ...,kernel_irqchip=on. Leave it off by default until it can fully replace user space models. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- qemu-config.c |4 qemu-options.hx |5 - 2 files changed, 8

[Qemu-devel] [PATCH 05/15] scsi: pass residual amount to command_complete

2012-01-16 Thread Paolo Bonzini
With the upcoming sglist support, HBAs will not see any transfer_data call and will not have a way to detect short transfers. So pass the residual amount of data upon command completion. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/esp.c |3 ++- hw/lsi53c895a.c |2 +-

[Qemu-devel] [PATCH 04/15] ahci: use new DMA helpers

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/ide/ahci.c | 82 + 1 files changed, 13 insertions(+), 69 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 0af201d..c6aa058 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c

Re: [Qemu-devel] [PATCH 1/6] qtest: add test framework

2012-01-16 Thread Stefan Hajnoczi
On Fri, Jan 13, 2012 at 6:32 PM, Anthony Liguori aligu...@us.ibm.com wrote: +    if (strcmp(words[0], outb) == 0 || +        strcmp(words[0], outw) == 0 || +        strcmp(words[0], outl) == 0) { +        uint16_t addr; +        uint32_t value; + +        g_assert(words[1] words[2]); +    

[Qemu-devel] [PATCH 06/15] scsi: add scatter/gather functionality

2012-01-16 Thread Paolo Bonzini
Scatter/gather functionality uses the newly added DMA helpers. The device can choose between doing DMA itself, or calling scsi_req_data as usual, which will use the newly added DMA helpers to copy piecewise to/from the destination area(s). Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

Re: [Qemu-devel] [PATCH 1/6] qtest: add test framework

2012-01-16 Thread Avi Kivity
On 01/16/2012 06:59 PM, Stefan Hajnoczi wrote: +} +qtest_send_prefix(chr); +qtest_send(chr, OK 0x%04x\n, value); Endianness is a little weird here. memory.c will byteswap if target and device endianness differ. Imagine the case where we're on an x86 host,

[Qemu-devel] [PATCH v7 09/18] i8259: Factor out base class for KVM reuse

2012-01-16 Thread Jan Kiszka
Analogously to the APIC, we will reuse some parts of the user space i8259 model for KVM. The base class provides a common device state, the vmstate, the property list, a reset core and some shared init bits. This also introduces a common helper to instantiate a single i8259 chip from the

[Qemu-devel] [PATCH 09/15] scsi-generic: add migration support

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-generic.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 0aebcdd..12d7d15 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -59,6

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Luiz Capitulino
On Fri, 13 Jan 2012 14:48:04 -0700 Eric Blake ebl...@redhat.com wrote: + +pid = fork(); +if (!pid) { +char buf[32]; +FILE *sysfile; +const char *arg; +const char *pmutils_bin = pm-is-supported; + +if

Re: [Qemu-devel] [PATCH 1/6] qtest: add test framework

2012-01-16 Thread Anthony Liguori
On 01/16/2012 10:59 AM, Stefan Hajnoczi wrote: On Fri, Jan 13, 2012 at 6:32 PM, Anthony Liguorialigu...@us.ibm.com wrote: +if (strcmp(words[0], outb) == 0 || +strcmp(words[0], outw) == 0 || +strcmp(words[0], outl) == 0) { +uint16_t addr; +uint32_t value; + +

[Qemu-devel] [PATCH 07/15] scsi-disk: enable scatter/gather functionality

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c |1 + hw/scsi-disk.c | 63 --- 2 files changed, 51 insertions(+), 13 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index b774261..ff7e4f4 100644 ---

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 03:08:53PM -0200, Luiz Capitulino wrote: On Fri, 13 Jan 2012 14:48:04 -0700 Eric Blake ebl...@redhat.com wrote: + +pid = fork(); +if (!pid) { +char buf[32]; +FILE *sysfile; +const char *arg; +

[Qemu-devel] [PATCH v7 11/18] ioapic: Factor out base class for KVM reuse

2012-01-16 Thread Jan Kiszka
Split up the IOAPIC analogously to APIC and i8259. KVM will share the IOAPICCommonState, the vmstate, reset logic and certain init parts with the user space model. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target |2 +- hw/ioapic.c | 130

[Qemu-devel] [PATCH 10/15] scsi-disk: add migration support

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 59 --- 1 files changed, 55 insertions(+), 4 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 28b217c..4465d76 100644 --- a/hw/scsi-disk.c +++

Re: [Qemu-devel] [PATCH 4/6] make: add check targets based on gtester

2012-01-16 Thread Paolo Bonzini
On 01/13/2012 07:32 PM, Anthony Liguori wrote: This will run all tests through gtester. The main targets are: $ make check Which will run each unit test and: $ make check-report.html Which will generate a nice HTML report of the test status. Looks like there isn't any documentation about

[Qemu-devel] [PATCH 13/15] virtio-scsi: add basic SCSI bus operation

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-scsi.c | 110 +++-- 1 files changed, 97 insertions(+), 13 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index b34c14f..21264a1 100644 --- a/hw/virtio-scsi.c +++

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Luiz Capitulino
On Mon, 16 Jan 2012 17:13:39 + Daniel P. Berrange berra...@redhat.com wrote: On Mon, Jan 16, 2012 at 03:08:53PM -0200, Luiz Capitulino wrote: On Fri, 13 Jan 2012 14:48:04 -0700 Eric Blake ebl...@redhat.com wrote: + +pid = fork(); +if (!pid) { +

[Qemu-devel] [Bug 824650] Re: Latest GIT assert error in arp_table.c

2012-01-16 Thread alek...@gmail.com
qemu-system-i386 -m 320 -hda mikrotik.img qemu-system-i386: slirp/arp_table.c:75: arp_table_search: Assertion `(ip_addr (__extension__ ({ register unsigned int __v, __x = (~(0xf 28)); if (__builtin_constant_p (__x)) __v = __x) 0xff00) 24) | (((__x) 0x00ff) 8) | (((__x)

[Qemu-devel] [PATCH 11/15] virtio-scsi: Add virtio-scsi stub device

2012-01-16 Thread Paolo Bonzini
From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Add a useless virtio SCSI HBA device: qemu -device virtio-scsi-pci Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile.target |1 +

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Luiz Capitulino
On Mon, 16 Jan 2012 15:18:37 -0200 Luiz Capitulino lcapitul...@redhat.com wrote: On Mon, 16 Jan 2012 17:13:39 + Daniel P. Berrange berra...@redhat.com wrote: On Mon, Jan 16, 2012 at 03:08:53PM -0200, Luiz Capitulino wrote: On Fri, 13 Jan 2012 14:48:04 -0700 Eric Blake

[Qemu-devel] [PATCH 15/15] virtio-scsi: add migration support

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-scsi.c | 50 +- 1 files changed, 49 insertions(+), 1 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 7ad60ec..f5cecfc 100644 --- a/hw/virtio-scsi.c +++

[Qemu-devel] [PATCH v7 12/18] memory: Introduce memory_region_init_reservation

2012-01-16 Thread Jan Kiszka
Introduce a memory region type that can reserve I/O space. Such regions are useful for modeling I/O that is only handled outside of QEMU, i.e. in the context of an accelerator like KVM. Any access to such a region from QEMU is a bug, but could theoretically be triggered by guest code (DMA to

[Qemu-devel] [PATCH 01/15] dma-helpers: make QEMUSGList target independent

2012-01-16 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- dma.h | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dma.h b/dma.h index a13209d..d50019b 100644 --- a/dma.h +++ b/dma.h @@ -17,6 +17,13 @@ typedef struct ScatterGatherEntry ScatterGatherEntry;

[Qemu-devel] [PATCH 12/15] virtio-scsi: Add basic request processing infrastructure

2012-01-16 Thread Paolo Bonzini
From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-scsi.c | 142 +- 1 files changed, 140 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH v7 06/18] apic: Factor out base class for KVM reuse

2012-01-16 Thread Jan Kiszka
The KVM in-kernel APIC model will reuse parts of the user space model while providing the same frontend view to guest and most management interfaces. Factor out an APIC base class to encapsulate those parts that will be shared by user space and KVM model. This class offers callback hooks for

  1   2   >