Re: [Qemu-devel] [PATCH 1/6] PPC: Add IVOR 38-42

2012-01-19 Thread Andreas Färber
Am 20.01.2012 04:17, schrieb Alexander Graf: > Our code only knows IVORs up to 37. Add the new ones defined in ISA 2.06 > from 38 - 42. > > Signed-off-by: Alexander Graf Reviewed-by: Andreas Färber Didn't check against the ISA but the TCG code changes look right. Andreas -- SUSE LINUX Produ

Re: [Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Kyungmin Park
On 1/19/12, Andreas Färber wrote: > Evgeny, > > Am 19.01.2012 09:31, schrieb Evgeny Voevodin: >> Add initial support of NURI and SMDKC210 boards >> >> Signed-off-by: Evgeny Voevodin > > Could you please supply examples of how to use these? Whether for the > Release Notes or as part of the commit

[Qemu-devel] nested page table translation for non-x86 operating system

2012-01-19 Thread Xin Tong
I am wondering the possibilities of using the nested page table mechanism available on the x86 processors to do page translation for non-x86 operating system emulation. So, when nested page is enabled, you can control the gCR3 and hCR3. The gCR3 can be used to point to the page table of the runnin

[Qemu-devel] [PATCH 4/6] PPC: booke206: allow NULL raddr in ppcmas_tlb_check

2012-01-19 Thread Alexander Graf
We might want to call the tlb check function without actually caring about the real address resolution. Check if we really should write the value back. Signed-off-by: Alexander Graf --- target-ppc/helper.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/target-ppc/he

[Qemu-devel] [PATCH 5/6] PPC: booke206: Check for min/max TLB entry size

2012-01-19 Thread Alexander Graf
When setting a TLB entry, we need to check if the TLB we're putting it in actually supports the given size. According to the 2.06 PowerPC ISA, a value that's out of range results in the minimum page size for the TLB to be used. Signed-off-by: Alexander Graf --- target-ppc/op_helper.c | 11

[Qemu-devel] [PATCH 1/6] PPC: Add IVOR 38-42

2012-01-19 Thread Alexander Graf
Our code only knows IVORs up to 37. Add the new ones defined in ISA 2.06 from 38 - 42. Signed-off-by: Alexander Graf --- target-ppc/cpu.h|5 + target-ppc/translate_init.c | 29 +++-- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/ta

[Qemu-devel] [PATCH 0/6] Make -cpu e500mc useful in TCG

2012-01-19 Thread Alexander Graf
Thanks to Scott we now have an e500mc CPU description that works great with KVM, but I have a personal dislike against targets that don't work emulated, since their test coverage will be very low. So this patch set implements TCG emulation for -cpu e500mc. I tested that it works as expected agains

[Qemu-devel] [PATCH 2/6] PPC: e500mc: add missing IVORs to bitmap

2012-01-19 Thread Alexander Graf
E500mc supports IVORs 36-41. Add them to the support mask. Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 83348b5..7d1c6a3 100644 --- a/tar

[Qemu-devel] [PATCH 3/6] PPC: e500: msync is 440 only, e500 has real sync

2012-01-19 Thread Alexander Graf
The e500 CPUs don't use 440's msync which falls on the same opcode IDs, but instead use the real powerpc sync instruction. This is important, since the invalid mask differs between the two. Signed-off-by: Alexander Graf --- target-ppc/translate.c |3 +-- target-ppc/translate_init.c |

[Qemu-devel] [PATCH 6/6] PPC: booke206: Implement tlbilx

2012-01-19 Thread Alexander Graf
The PowerPC 2.06 BookE ISA defines an opcode called "tlbilx" which is used to flush TLB entries. It's the recommended way of flushing in virtualized environments. So far we got away without implementing it, but Linux for e500mc uses this instruction, so we better add it :). Signed-off-by: Alexand

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-19 Thread John Williams
On Fri, Jan 20, 2012 at 9:17 AM, Rob Herring wrote: > On 01/19/2012 03:44 PM, Peter Maydell wrote: > > On 19 January 2012 21:31, Mark Langsdorf > wrote: > >> +highbank_binfo.board_id = 0xEC10100f; /* provided by deviceTree */ > > > > Where does this number come from? It's not in > > http://ww

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Adam Litke
On Thu, Jan 19, 2012 at 01:56:26PM -0200, Luiz Capitulino wrote: > Long ago, commit 625a5be added the guest provided memory statistics to > the query-balloon command. Unfortunately, it also introduced a severe > bug: query-balloon would hang if the guest didn't respond. This, in turn, > would also

Re: [Qemu-devel] [SeaBIOS] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

2012-01-19 Thread Kevin O'Connor
On Thu, Jan 19, 2012 at 06:57:59AM -0600, Dyweni - Qemu-Devel wrote: > Hi, > > I am unable to boot KVM using a usb flash drive. I'm using QEMU-KVM > built > from GIT MASTER as of this morning. > > > Here's my QEMU-KVM startup options: > > qemu-system-x86_64 \ > -curses \ > -m 512 \

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

2012-01-19 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, We downloaded the driver source from the following website. === wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip -Original Message- From: Vad

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

2012-01-19 Thread Charles . Tsai-蔡清海-研究發展部
Alon, Thank you for your information and we will use it if we need to find the bug next time. -Original Message- From: Alon Levy [mailto:al...@redhat.com] Sent: Thursday, January 19, 2012 7:26 PM To: Stefan Hajnoczi Cc: Charles.Tsai-蔡清海-研究發展部; qemu-devel; Michael Roth; Vadim Rozenfeld;

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

2012-01-19 Thread Kevin O'Connor
On Thu, Jan 19, 2012 at 03:02:30PM +0100, Vasilis Liaskovitis wrote: > On Fri, Jan 13, 2012 at 07:27:01PM -0500, Kevin O'Connor wrote: > > > > [...] > > > Method (CPEJ, 2, NotSerialized) { > > > // _EJ0 method - eject callback > > > +Store(ShiftLeft(1, Arg0), PRE)

[Qemu-devel] [PATCH 08/10] prep: Add i82374 DMA emulation

2012-01-19 Thread Andreas Färber
Prepare Intel 82374 emulation for use by Intel 82378 PCI->ISA bridge. Signed-off-by: Hervé Poussineau Confine to CONFIG_I82374. Add VMState. Signed-off-by: Andreas Färber Reviewed-by: Alexander Graf --- Makefile.objs |1 + default-configs/ppc-softmmu.mak |1 + hw/i8

[Qemu-devel] [PATCH 05/10] prep_pci: Update I/O to MemoryRegion ops

2012-01-19 Thread Andreas Färber
Convert to new-style read/write callbacks. Signed-off-by: Andreas Färber Cc: Alexander Graf Cc: Michael S. Tsirkin Cc: Avi Kivity Cc: Benoît Canet --- hw/prep_pci.c | 46 -- 1 files changed, 8 insertions(+), 38 deletions(-) diff --git a/hw/prep_

[Qemu-devel] [PATCH 03/10] prep: qdev'ify Raven host bridge (PCIDevice)

2012-01-19 Thread Andreas Färber
Move initialization of vendor ID, etc. to PCIDeviceInfo. Introduce VMState. Signed-off-by: Andreas Färber Reviewed-by: Alexander Graf Cc: Hervé Poussineau Cc: Michael S. Tsirkin Cc: Anthony Liguori --- hw/prep_pci.c | 55 ++- 1 files chan

Re: [Qemu-devel] [PATCH v4 08/15] qmp: add block_job_cancel command

2012-01-19 Thread Eric Blake
On 01/06/2012 07:01 AM, Stefan Hajnoczi wrote: > Add block_job_cancel, which stops an active block streaming operation. > When the operation has been cancelled the new BLOCK_JOB_CANCELLED event > is emitted. > > Signed-off-by: Stefan Hajnoczi > +++ b/hmp-commands.hx > @@ -98,6 +98,20 @@ Set maxi

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

2012-01-19 Thread Andreas Färber
Am 16.01.2012 17:18, schrieb Andreas Färber: > Andreas Färber (6): > prep_pci: Update I/O to MemoryRegion ops > prep: qdev'ify Raven host bridge (SysBus) > MAINTAINERS: Add PCI host bridge files to PReP machine > prep: Add i82374 DMA emulation > prep: Add i82378 PCI-to-ISA bridge emulatio

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

2012-01-19 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 Remove related dead, alternative code. Wire up PCI host bridge IRQs via GPIO-in I

[Qemu-devel] [PATCH 09/10] prep: Add i82378 PCI-to-ISA bridge emulation

2012-01-19 Thread Andreas Färber
Prepare Intel 82378 emulation for use by PReP platforms. Signed-off-by: Hervé Poussineau 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: Andreas Färber Cc: Ma

[Qemu-devel] [PATCH 07/10] MAINTAINERS: Add PCI host bridge files to PReP machine

2012-01-19 Thread Andreas Färber
Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- 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 M: Andreas Färber S: Odd Fixes

[Qemu-devel] [PATCH 04/10] prep_pci: Simplify I/O endianness

2012-01-19 Thread Andreas Färber
The prep PowerPC CPU is Big Endian. An explicit byte swap therefore effectively becomes Little Endian. Remove explicit byte swaps and mark as Little Endian. Signed-off-by: Andreas Färber Reviewed-by: Alexander Graf Cc: Michael S. Tsirkin --- hw/prep_pci.c |6 +- 1 files changed, 1 ins

[Qemu-devel] [PATCH 06/10] prep: qdev'ify Raven host bridge (SysBus)

2012-01-19 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. Signed-off-

[Qemu-devel] [PULL] PReP patch queue 2012-01-20

2012-01-19 Thread Andreas Färber
Hello, Please pull the PowerPC Reference Platform (PReP) queue into qemu.git master. The following changes since commit 515689235c4c3d9c3f0406ddcdd21ed8da77062b: Merge remote-tracking branch 'spice/spice.v47' into staging (2012-01-19 12:51:02 -0600) are available in the git repository at:

[Qemu-devel] [PATCH 02/10] prep: Use ISA m48t59

2012-01-19 Thread 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). Suggested by Hervé and Jan. Signed-off-by: Andreas Färbe

[Qemu-devel] [PATCH 01/10] prep: Fix offset of BIOS MemoryRegion

2012-01-19 Thread Andreas Färber
From: 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 accessed since the exception vect

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Rob Herring
On 01/19/2012 03:44 PM, Peter Maydell wrote: > On 19 January 2012 21:31, Mark Langsdorf wrote: >> +highbank_binfo.board_id = 0xEC10100f; /* provided by deviceTree */ > > Where does this number come from? It's not in > http://www.arm.linux.org.uk/developer/machines/ > > Is 3027 (==0xbd3) you?

Re: [Qemu-devel] [PATCH] hw/9pfs: Update MAINTAINERS file

2012-01-19 Thread Andreas Färber
Am 19.01.2012 18:27, schrieb Aneesh Kumar K.V: > From: "Aneesh Kumar K.V" > > Signed-off-by: Aneesh Kumar K.V > --- > MAINTAINERS |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index de2a9163..f9f131c 100644 > --- a/MAINTAINERS >

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 21:31, Mark Langsdorf wrote: > +    highbank_binfo.board_id = 0xEC10100f; /* provided by deviceTree */ Where does this number come from? It's not in http://www.arm.linux.org.uk/developer/machines/ Is 3027 (==0xbd3) you? http://www.arm.linux.org.uk/developer/machines/list.php?i

[Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
From: Rob Herring Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- Changes from v11 Provided a meaningful board ID Added comments on the way the device tree memory values interact with qemu command line arguments for memory C

[Qemu-devel] [PATCH v12 1/4] Add xgmac ethernet model

2012-01-19 Thread Mark Langsdorf
From: Rob Herring This adds very basic support for the xgmac ethernet core. Missing things include: - statistics counters - WoL support - rx checksum offload - chained descriptors (only linear descriptor ring) - broadcast and multicast handling Signed-off-by: Rob Herring Signed-off-by: Mark La

[Qemu-devel] [PATCH v12 0/5] arm: add support for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. Makefile.target |2 + hw/arm-misc.h | 17 +++ hw/arm_boot.c | 54 ++-- hw/highbank.c | 327 ++ hw/ide/ahci.c | 44 ++ hw/xgmac.c | 421

[Qemu-devel] [PATCH v12 3/4] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-19 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] [PATCH v12 2/4] ahci: add support for non-PCI based controllers

2012-01-19 Thread Mark Langsdorf
From: Rob Herring Add support for ahci on sysbus. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf Reviewed-by: Andreas Färber --- Changes from v10 None Changes from v9 Changed typedef struct names to CamelCase Changes from v7, v8 None Changes from v5, v6

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:59 PM, Peter Maydell wrote: > On 19 January 2012 19:58, Mark Langsdorf wrote: >> On 01/19/2012 01:44 PM, Peter Maydell wrote: >>> I have a kernel now that seems to boot but then >>> barfs with: >>> Freeing init memory: 124K >>> Kernel panic - not syncing: Attempted to kill init! >

[Qemu-devel] Link failure with libhw64/9pfs/virtio-9p-proxy.o

2012-01-19 Thread Erik Rull
Hi all, when buildung target x86_64-softmmu the final link fails: LINK x86_64-softmmu/qemu-system-x86_64 ../libhw64/9pfs/virtio-9p-proxy.o: In function `proxy_opendir': /home/erik/qemu-test/qemu/hw/9pfs/virtio-9p-proxy.c:659: undefined reference to `fdopendir' collect2: ld returned 1 exit s

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 15:43, Mark Langsdorf wrote: > +    highbank_binfo.board_id = -1; /* provided by deviceTree */ I'm still not sure about this. The linux Documentation/devicetree/booting-without-of.txt says there are two calling conventions for booting here, ATAGS and with-device-tree-blob, and

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 19:58, Mark Langsdorf wrote: > On 01/19/2012 01:44 PM, Peter Maydell wrote: >> I have a kernel now that seems to boot but then >> barfs with: >> Freeing init memory: 124K >> Kernel panic - not syncing: Attempted to kill init! >> >> but that's probably a misconfiguration in my ke

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:44 PM, Peter Maydell wrote: > On 19 January 2012 19:35, Mark Langsdorf wrote: >> On 01/19/2012 01:32 PM, Peter Maydell wrote: >>> On 19 January 2012 19:25, Mark Langsdorf wrote: On 01/19/2012 01:15 PM, Peter Maydell wrote: > On 19 January 2012 15:43, Mark Langsdorf >>>

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 19:35, Mark Langsdorf wrote: > On 01/19/2012 01:32 PM, Peter Maydell wrote: >> On 19 January 2012 19:25, Mark Langsdorf wrote: >>> On 01/19/2012 01:15 PM, Peter Maydell wrote: On 19 January 2012 15:43, Mark Langsdorf wrote: > +    highbank_binfo.board_id = -1; /

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:32 PM, Peter Maydell wrote: > On 19 January 2012 19:25, Mark Langsdorf wrote: >> On 01/19/2012 01:15 PM, Peter Maydell wrote: >>> On 19 January 2012 15:43, Mark Langsdorf wrote: +highbank_binfo.board_id = -1; /* provided by deviceTree */ >> >> Works for me, but it requir

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 19:25, Mark Langsdorf wrote: > On 01/19/2012 01:15 PM, Peter Maydell wrote: >> On 19 January 2012 15:43, Mark Langsdorf wrote: >>> +    highbank_binfo.board_id = -1; /* provided by deviceTree */ > > Works for me, but it requires a kernel build with the device tree > dtb appende

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:15 PM, Peter Maydell wrote: > On 19 January 2012 15:43, Mark Langsdorf wrote: >> +highbank_binfo.board_id = -1; /* provided by deviceTree */ > > This doesn't work, because arm_boot.c does: > bootloader[1] |= info->board_id & 0xff; > bootloader[2] |= (info->boa

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Peter Maydell
On 19 January 2012 15:43, Mark Langsdorf wrote: > +    highbank_binfo.board_id = -1; /* provided by deviceTree */ This doesn't work, because arm_boot.c does: bootloader[1] |= info->board_id & 0xff; bootloader[2] |= (info->board_id >> 8) & 0xff; and so when you try to boot the ker

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-19 Thread Erik Rull
Andreas Färber wrote: Am 19.01.2012 17:40, schrieb Erik Rull: Erik Rull wrote: Erik Rull wrote: Erik Rull wrote: Anthony Liguori wrote: On 12/19/2011 03:33 PM, Erik Rull wrote: Hi all, coming from qemu 0.14 the usbdevice tablet update rate gets really bad in qemu-1.0 with the same guest.

[Qemu-devel] Build failure in test-coroutine.c

2012-01-19 Thread Erik Rull
Hi all, I just got a copy of the current qemu-kvm but there is a build failure in test-coroutine.c: erik@debian:~/qemu-test/qemu-kvm$ make [...] CCtest-coroutine.o test-coroutine.c: In function 'test_nesting': test-coroutine.c:92: warning: implicit declaration of function 'g_assert_cmpi

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

2012-01-19 Thread Jan Kiszka
On 2012-01-19 19:08, Marcelo Tosatti wrote: > On Thu, Jan 19, 2012 at 12:25:10PM +0100, Jan Kiszka wrote: >> 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 K

Re: [Qemu-devel] [PULL] tiny spice patch queue

2012-01-19 Thread Anthony Liguori
On 01/17/2012 09:51 AM, Gerd Hoffmann wrote: Hi, please pull a qxl bugfix. Pulled. Thanks. Regards, Anthony Liguori thanks, Gerd The following changes since commit 515aa3c57986b3e26558d72ecaeb7545ecd30510: check-qstring: remove check.h include (2012-01-12 11:33:22 -0600) are

Re: [Qemu-devel] [PULL 00/14]: QMP queue

2012-01-19 Thread Anthony Liguori
On 01/18/2012 11:41 AM, Luiz Capitulino wrote: This pull request contains my QAPI conversions round 4, improvements to error reporting and a small fix. The changes (since 8c4ec5c0269bda18bb777a64b2008088d1c632dc) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable

Re: [Qemu-devel] [PULL] (not only) isapc related updates

2012-01-19 Thread Anthony Liguori
On 01/15/2012 11:02 AM, Jan Kiszka wrote: The following changes since commit 3fbffb628c001bd540dc9c1805bdf7aa8591da4d: kvm: flush the dirty log when unregistering a slot (2012-01-15 16:13:59 +0200) are available in the git repository at: git://git.kiszka.org/qemu.git queues/isapc Pulle

Re: [Qemu-devel] [PULL 0/4] arm-devs queue

2012-01-19 Thread Anthony Liguori
On 01/18/2012 06:13 AM, Peter Maydell wrote: This is a smallish pullreq for a few arm-devs patches which have been on the list for a while. The two patches from Mark were in the highbank patchset, but I'd like to get them committed now because they're needed for other patchsets (vexpress-a15, exy

Re: [Qemu-devel] [PULL 0/5] Trivial patches for 14 to 19 January 2012

2012-01-19 Thread Anthony Liguori
On 01/19/2012 04:32 AM, Stefan Hajnoczi wrote: The following changes since commit 8c4ec5c0269bda18bb777a64b2008088d1c632dc: pxa2xx_keypad: fix unbalanced parenthesis. (2012-01-17 02:14:42 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches P

Re: [Qemu-devel] [PULL 00/17] usb patch queue: audio, xhci, usbredir

2012-01-19 Thread Anthony Liguori
On 01/17/2012 03:06 AM, Gerd Hoffmann wrote: On 01/13/12 16:19, Anthony Liguori wrote: On 01/13/2012 04:18 AM, Gerd Hoffmann wrote: Hi, Here comes the usb patch queue. It features the patches posted a week ago for review with some minor tweaks according to the review comments: The comment

Re: [Qemu-devel] Question about do_interrupt (target-i386/op_helper.c)

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:24, 陳韋任 wrote: > My questions are: 1) It seems to me the parameter of do_interrupt (envl) > should > be the same as env inside do_interrupt (which comes from dyngen-exec.h's > #define). In cpu_exec() env is a local variable. In do_interrupt() it is the global variable (hel

Re: [Qemu-devel] [Xen-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore

2012-01-19 Thread Stefano Stabellini
On Thu, 19 Jan 2012, Ian Campbell wrote: > On Thu, 2012-01-19 at 13:08 +, Stefano Stabellini wrote: > > On Thu, 19 Jan 2012, Ian Campbell wrote: > > > On Thu, 2012-01-19 at 11:56 +, Stefano Stabellini wrote: > > > > Write to xenstore any physmap changes so that the hypervisor can be > > > >

Re: [Qemu-devel] [Xen-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore

2012-01-19 Thread Stefano Stabellini
On Thu, 19 Jan 2012, Ian Campbell wrote: > On Thu, 2012-01-19 at 11:56 +, Stefano Stabellini wrote: > > Write to xenstore any physmap changes so that the hypervisor can be > > aware of them. > > What is the structure of the xenstore values? Looks like > /physmap//start_addr > ? Yep, t

[Qemu-devel] [PATCH v3 1/6] vl.c: do not save the RAM state when Xen is enabled

2012-01-19 Thread Stefano Stabellini
From: Anthony PERARD In the Xen case, the guest RAM is not handle by QEMU, and it is saved by Xen tools. So, we just avoid to register the RAM save state handler. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- vl.c |6 -- 1 files changed, 4 insertions(+), 2 deleti

Re: [Qemu-devel] [RFC][PATCH 00/15 v5] introducing a new, dedicated memory dump mechanism

2012-01-19 Thread Jun Koi
On Thu, Jan 19, 2012 at 10:50 AM, Wen Congyang wrote: > Hi, all > > 'virsh dump' can not work when host pci device is used by guest. We have > discussed this issue here: > http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html > > We have determined to introduce a new command dump t

[Qemu-devel] The comment of cpu-exec.c might be wrong?

2012-01-19 Thread 陳韋任
Hi all, The comment of cpu-exec.c says it's "i386 emulator main execution loop". IIUC, each target use #define marco to rename cpu_exec to cpu_xxx_exec in target-xxx/cpu.h, then defines its own cpu_loop which calls cpu_xxx_exec (which basically is cpu_exec in cpu-exec.c). If it's O.K., I'll s

[Qemu-devel] [PATCH v3 2/6] xen mapcache: check if memory region has moved.

2012-01-19 Thread Stefano Stabellini
From: Anthony PERARD This patch changes the xen_map_cache behavior. Before trying to map a guest addr, mapcache will look into the list of range of address that have been moved (physmap/set_memory). There is currently one memory space like this, the vram, "moved" from were it's allocated to were

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

2012-01-19 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 12:25:10PM +0100, Jan Kiszka wrote: > 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 > --- > qemu-config.c |4 > qem

[Qemu-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore

2012-01-19 Thread Stefano Stabellini
Write to xenstore any physmap changes so that the hypervisor can be aware of them. Read physmap changes from xenstore on boot. Signed-off-by: Stefano Stabellini --- xen-all.c | 62 + 1 files changed, 62 insertions(+), 0 deletions(-)

Re: [Qemu-devel] USB Booting

2012-01-19 Thread Dyweni - Qemu-Devel
Hi All, Here is the log when booting SeaBIOS with debuging enabled: + qemu-system-x86_64 -m 512 -snapshot -device piix3-usb-uhci -drive id=usbflash,file=flash.img,if=none,boot=on,cache=writeback -device usb-storage,drive=usbflash -net nic,macaddr=00:AA:00:AA:62:AA,vlan=0 -net tap,vlan=0,ifna

[Qemu-devel] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

2012-01-19 Thread Dyweni - Qemu-Devel
Hi, I am unable to boot KVM using a usb flash drive. I'm using QEMU-KVM built from GIT MASTER as of this morning. Here's my QEMU-KVM startup options: qemu-system-x86_64 \ -curses \ -m 512 \ -snapshot \ -device piix3-usb-uhci \ -drive id=usbflash,file=

[Qemu-devel] [PATCH v3 6/6] xen: change memory access behavior during migration.

2012-01-19 Thread Stefano Stabellini
From: Anthony PERARD Do not allocate RAM during INMIGRATE runstate. Do not actually "do" set_memory during migration. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- xen-all.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-19 Thread Jan Kiszka
On 2012-01-19 18:53, Marcelo Tosatti wrote: >> What problems does it cause, and in which scenarios? Can't they be >> fixed? > > If the guest compensates for lost ticks, and KVM reinjects them, guest > time advances faster then it should, to the extent where NTP fails to > correct it. This is the c

[Qemu-devel] USB Booting

2012-01-19 Thread Dyweni - Qemu-Devel
Hi All, In QEMU-KVM 0.14, I was able to simulate booting from a USB Flash drive with these options: qemu-system-x86_64 \ -curses \ -m 512 \ -snapshot \ -device piix3-usb-uhci \ -drive id=usbflash,file=flash.img,if=none,boot=on,cache=writeback \

[Qemu-devel] [PATCH v3 3/6] Set runstate to INMIGRATE earlier

2012-01-19 Thread Stefano Stabellini
Set runstate to RUN_STATE_INMIGRATE as soon as we can on resume. Signed-off-by: Stefano Stabellini --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 6f0435b..bb0139f 100644 --- a/vl.c +++ b/vl.c @@ -2972,6 +2972,7 @@ int main(int argc, char **ar

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-19 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 06:38:01PM +0100, Jan Kiszka wrote: > On 2012-01-19 18:25, Marcelo Tosatti wrote: > > On Thu, Jan 19, 2012 at 09:33:51AM +0100, Jan Kiszka wrote: > >> Hi all, > >> > >> I've finished a first version of cleaned-up in-kernel KVM PIT support. > >> That will be rolled out once t

Re: [Qemu-devel] icount and tb chaining

2012-01-19 Thread 陳韋任
On Wed, Jan 18, 2012 at 07:50:19PM +, Peter Maydell wrote: > On 18 January 2012 19:43, James Greensky wrote: > > On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote: > >> I think those numbers (0, 1, and 2) means tb_add_jump 2nd parameter here, > >> so > >> it's intentionally to check jmp_first when

[Qemu-devel] [PATCH v2 0/3] UniNorth PCI cleanups

2012-01-19 Thread Andreas Färber
Hello Alex, Here's an 80-char fixed version of the qdev renaming for Anthony plus two more cleanups. More to follow. Regards, Andreas Changes since v1: * Respect 80-char limit. * Add busdev and reset patches. Andreas Färber (3): unin_pci: Clean up qdev names unin_pci: Drop duplicate busdev

[Qemu-devel] [PATCH v2 2/3] unin_pci: Drop duplicate busdev

2012-01-19 Thread Andreas Färber
PCIHostState already has a busdev. Signed-off-by: Andreas Färber Cc: Alexander Graf --- hw/unin_pci.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/hw/unin_pci.c b/hw/unin_pci.c index be0e98c..8c03cb0 100644 --- a/hw/unin_pci.c +++ b/hw/un

[Qemu-devel] [PATCH v2 3/3] unin_pci: Drop unused reset handler

2012-01-19 Thread Andreas Färber
Signed-off-by: Andreas Färber Cc: Alexander Graf --- hw/unin_pci.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/hw/unin_pci.c b/hw/unin_pci.c index 8c03cb0..6a10013 100644 --- a/hw/unin_pci.c +++ b/hw/unin_pci.c @@ -63,10 +63,6 @@ static void pci_unin_set_irq(vo

[Qemu-devel] [PATCH v3 0/6] save/restore on Xen

2012-01-19 Thread Stefano Stabellini
Hi all, this is the third version of the Xen save/restore patch series. We have been discussing this issue for quite a while on #qemu and qemu-devel: http://marc.info/?l=qemu-devel&m=132346828427314&w=2 http://marc.info/?l=qemu-devel&m=132377734605464&w=2 A few different approaches were propose

[Qemu-devel] [PATCH v2 1/3] unin_pci: Clean up qdev names

2012-01-19 Thread Andreas Färber
Add -pcihost to SysBus devices to resolve name conflicts, and clarify PCI vs. Internal PCI. Signed-off-by: Andreas Färber Cc: Alexander Graf Cc: Anthony Liguori --- hw/unin_pci.c | 54 +++--- 1 files changed, 39 insertions(+), 15 deletions(-)

Re: [Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Jan Kiszka
On 2012-01-19 18:28, Marcelo Tosatti wrote: > On Thu, Jan 19, 2012 at 01:46:39PM +0100, Jan Kiszka wrote: >> Hi again, >> >> do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in >> upstream? >> >> If yes: The underlying IOCTL is x86-only. Are other archs interested in >> this lon

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-19 Thread Jan Kiszka
On 2012-01-19 18:25, Marcelo Tosatti wrote: > On Thu, Jan 19, 2012 at 09:33:51AM +0100, Jan Kiszka wrote: >> Hi all, >> >> I've finished a first version of cleaned-up in-kernel KVM PIT support. >> That will be rolled out once the base support for irqchip has been merged. >> >> I'm now wondering if

[Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume

2012-01-19 Thread Stefano Stabellini
From: Anthony PERARD When resuming we shouldn't set the videoram to 0xff considering that we are about to read it from the savefile. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/cirrus_vga.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --g

Re: [Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 01:46:39PM +0100, Jan Kiszka wrote: > Hi again, > > do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in > upstream? > > If yes: The underlying IOCTL is x86-only. Are other archs interested in > this long-term as well, ie. should the control become arch-

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-19 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 09:33:51AM +0100, Jan Kiszka wrote: > Hi all, > > I've finished a first version of cleaned-up in-kernel KVM PIT support. > That will be rolled out once the base support for irqchip has been merged. > > I'm now wondering if and how to model two control knobs we have in qemu

[Qemu-devel] [PATCH] hw/9pfs: Update MAINTAINERS file

2012-01-19 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V --- MAINTAINERS |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index de2a9163..f9f131c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -399,9 +399,11 @@ S: Supported F: hw/virtio*

[Qemu-devel] [PATCH] fsdev: parameter parsing for proxy helper

2012-01-19 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index baafee2..5aafc38 100644 --- a/fsdev/virtfs-proxy-helper.c +++ b/

Re: [Qemu-devel] [PATCH v11 4/6] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-19 Thread Peter Maydell
On 19 January 2012 15:43, Mark Langsdorf wrote: > Re: [PATCH v11 4/6] arm: add secondary cpu book callbacks to arm_boot.c Subject should say 'boot', not 'book'... > Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), > to allow platforms more control of how secondary CPU

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Eric Blake
On 01/19/2012 08:56 AM, Luiz Capitulino wrote: > Long ago, commit 625a5be added the guest provided memory statistics to > the query-balloon command. Unfortunately, it also introduced a severe > bug: query-balloon would hang if the guest didn't respond. This, in turn, > would also cause a hang in li

[Qemu-devel] Question about do_interrupt (target-i386/op_helper.c)

2012-01-19 Thread 陳韋任
Hi all, I am looking at do_interrupt (target-i386/op_helper.c) and find something strange. Code sinpt below, void do_interrupt(CPUState *env1) { CPUState *saved_env; saved_env = env; env = env1; ... } In i386-linux-user, cpu_exec (cpu-exec.c) calls do_interrupt like this,

Re: [Qemu-devel] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

2012-01-19 Thread Dyweni - Qemu-Devel
Hi All, After booting KVM using the flash image as both a regular disk and a usb storage device.. /dev/sda is detected from ata1.00 and /dev/sdb is detected from usb-storage-1-1:1.0. Both /dev/sdX devices are the same disk / partition layout. --- Thanks, Dyweni On Thu, 19 Jan 2012 06

Re: [Qemu-devel] icount and tb chaining

2012-01-19 Thread 陳韋任
> What i mean here is that in gen-icount.h, the icount_decr.u32 field is > exhausted and jumps out to the cpu-exec loop. This is where you would > fall into tb_add_jump with the second argument being 2, and only if > icount_extra was greater than zero. This is what I meant, and > previously you sho

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-19 Thread Andreas Färber
Am 19.01.2012 17:40, schrieb Erik Rull: > Erik Rull wrote: >> Erik Rull wrote: >>> Erik Rull wrote: Anthony Liguori wrote: > On 12/19/2011 03:33 PM, Erik Rull wrote: >> Hi all, >> >> coming from qemu 0.14 the usbdevice tablet update rate gets really >> bad in >> qemu-1.

[Qemu-devel] [PATCH 4/5] balloon: Rename QEMUBalloonStatus to QEMUBalloonInfo

2012-01-19 Thread Luiz Capitulino
Next commit will introduce the QEMUBalloonStats type, which can cause confusion with QEMUBalloonStatus. Also, QEMUBalloonInfo matches better with the BalloonInfo type, where the current balloon information is returned. Signed-off-by: Luiz Capitulino --- balloon.c | 18 +--

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Luiz Capitulino
On Thu, 19 Jan 2012 10:43:35 -0600 Michael Roth wrote: > On 01/19/2012 09:56 AM, Luiz Capitulino wrote: > > Long ago, commit 625a5be added the guest provided memory statistics to > > the query-balloon command. Unfortunately, it also introduced a severe > > bug: query-balloon would hang if the gue

[Qemu-devel] [PATCH 3/5] balloon: Drop old stats interface

2012-01-19 Thread Luiz Capitulino
It has never been used and next patches will introduce a new, usable interface. Note that dropping this won't break compatibility because all fields are optional. Signed-off-by: Luiz Capitulino --- hmp.c| 25 + qapi-schema.json | 21 +

[Qemu-devel] [PATCH v11 4/6] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-19 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

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

2012-01-19 Thread Paolo Bonzini
On 01/18/2012 08:39 AM, Hu Tao wrote: Hi Paolo, I found a problem that a virtio-scsi disk gets offline during mkfs. The scsi disk is of 100G or bigger, and the corresponding image is a freshly created qcow2 image. If the disk is small enough, or not freshly created, the problem doesn't appear.

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-19 Thread warum
sorry forgot the requested cmdline of kvm: kvm -mem-path /VM/tmp -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name winxp -uuid 1c4f4992-9212-4b4c-a14d-25f2f3f28ed2 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/winxp.monitor

Re: [Qemu-devel] [PATCH] unin_pci: Clean up qdev names

2012-01-19 Thread Alexander Graf
On 19.01.2012, at 14:24, Andreas Färber wrote: > Add -pcihost to SysBus devices to resolve name conflicts, > and clarify PCI vs. Internal PCI. > > Signed-off-by: Andreas Färber > Cc: Alexander Graf > Cc: Anthony Liguori > --- > hw/unin_pci.c | 53 ++--

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Michael Roth
On 01/19/2012 09:56 AM, Luiz Capitulino wrote: Long ago, commit 625a5be added the guest provided memory statistics to the query-balloon command. Unfortunately, it also introduced a severe bug: query-balloon would hang if the guest didn't respond. This, in turn, would also cause a hang in libvirt.

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-19 Thread warum
sorry, if it was not as clear as it should be... the assignment you describe is done until old_allocs is NULL (well the asm-test checks against zero, I've not looked at the macrodef of QLIST_FOREACH), but in this special case old_allocs points to address "foobar" *and* old_allocs->next_in_flight.l

  1   2   >