Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion

2012-01-12 Thread Gerd Hoffmann
On 01/12/12 17:31, Hans de Goede wrote: > This patch adds the posibility to filter out certain devices from redirecion. > To use this pass the filter property to -device usb-redir. The filter > property takes a string consisting of filter rules, the format for a rule is: > Hmm, what is the p

Re: [Qemu-devel] buildbot failure in qemu on default_x86_64_debian_6_0

2012-01-12 Thread Stefan Hajnoczi
On Fri, Jan 13, 2012 at 12:04 AM, wrote: > The Buildbot has detected a new failure on builder default_x86_64_debian_6_0 > while building qemu. > Full details are available at: >  http://buildbot.b1-systems.de/qemu/builders/default_x86_64_debian_6_0/builds/151 This build failure has been fixed b

Re: [Qemu-devel] [PATCH 1/7] hw/arm_mptimer.c: Turn ARM MPcore private timers into qdev devices

2012-01-12 Thread Evgeny Voevodin
On 12/05/2011 08:40 PM, Peter Maydell wrote: -/* Return conversion factor from mpcore timer ticks to qemu timer ticks. */ -static inline uint32_t mpcore_timer_scale(mpcore_timer_state *s) -{ -return (((s->control>> 8)& 0xff) + 1) * 10; -} Dear Peter, could you please explain why such a c

[Qemu-devel] buildbot failure in qemu on ppc-next_x86_64_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder ppc-next_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/ppc-next_x86_64_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuk

[Qemu-devel] buildbot failure in qemu on ppc-next_i386_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder ppc-next_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/ppc-next_i386_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Bu

[Qemu-devel] [PATCH] Endian fix an assertion in usb-msd

2012-01-12 Thread Benjamin Herrenschmidt
I stumbled across that one while debugging some other issue... Signed-off-by: Benjamin Herrenschmidt --- hw/usb-msd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c index e427296..28271fc 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -195

[Qemu-devel] [PATCH] Endian fixes for virtfs

2012-01-12 Thread Benjamin Herrenschmidt
This may not fix all of the endian problems in there but it's enough to make it work with some SLOF version I'm working on. Maybe more when I get the Linux client attached... Signed-off-by: Benjamin Herrenschmidt --- hw/9pfs/virtio-9p.c |8 +--- 1 files changed, 5 insertions(+), 3 delet

[Qemu-devel] Question about tlb_flush

2012-01-12 Thread 陳韋任
Hi all, When I looked at function tlb_flush (exec.c), I found its second parameter "flush_global" is never used. In tlb_flush comment, it says if flush_global is true, also flush global entries (not implemented yet) Does anyone know what the global entries are? Thanks. Regards, chenwj --

Re: [Qemu-devel] icount and tb chaining

2012-01-12 Thread 陳韋任
On Thu, Jan 12, 2012 at 11:00:43AM -0800, James Greensky wrote: > Hello all, I have a question about icount and tb chaining that I hope > somebody can clear up. In cpu-exec.c, when the icount_decr.u16.low > counter expires, it passes back the current tb as the next_tb and add > a jump with the lea

[Qemu-devel] [PATCH v3 4/8] prep: qdev'ify Raven host bridge (SysBus)

2012-01-12 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-

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

2012-01-12 Thread Andreas Färber
Am 13.01.2012 04:09, schrieb Andreas Färber: > Hello, > > Here's an updated initial qdev'ification series for PReP, as prerequisite > for Anthony's second QOM series. Available from http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/prep-queue on top of all patches needed for testing. > A

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

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

[Qemu-devel] [PATCH v3 7/8] prep: Add i82378 PCI-to-ISA bridge emulation

2012-01-12 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. Signed-off-by: Andreas Färber Cc: Markus Armbruster Cc: Alexander Graf Cc: Jan

[Qemu-devel] [PATCH v3 2/8] prep_pci: Simplify I/O endianness

2012-01-12 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 Cc: Alexander Graf Cc: Michael S. Tsirkin --- hw/prep_pci.c |6 +- 1 files changed, 1 insertions(+

[Qemu-devel] [PATCH v3 6/8] prep: Add i82374 DMA emulation

2012-01-12 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 --- Makefile.objs |1 + default-configs/ppc-softmmu.mak |1 + hw/i82374.c |

[Qemu-devel] [PATCH v3 1/8] prep: qdev'ify Raven host bridge (PCIDevice)

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

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

2012-01-12 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. Access i8259 IRQs via ISA bus to resolve c

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

2012-01-12 Thread Andreas Färber
Hello, Here's an updated initial qdev'ification series for PReP, as prerequisite for Anthony's second QOM series. As stated before, this is NOT a complete conversion of all PReP devices and of all those shared with x86. Please comment on what's there, not on what may be done, too. I'm sitting on

[Qemu-devel] [PATCH v3 5/8] MAINTAINERS: Add PCI host bridge files to PReP machine

2012-01-12 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

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Benoit Hudzia
Hi, Sorry to jump to hijack the thread like that , however i would like to just to inform you that we recently achieve a milestone out of the research project I'm leading. We enhanced KVM in order to deliver post copy live migration using RDMA at kernel level. Few point on the architecture of t

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Isaku Yamahata
One more question. Does your architecture/implementation (in theory) allow KVM memory features like swap, KSM, THP? On Fri, Jan 13, 2012 at 11:03:23AM +0900, Isaku Yamahata wrote: > Very interesting. We can cooperate for better (postcopy) live migration. > The code doesn't seem available yet, I'm

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Andrea Arcangeli
On Thu, Jan 12, 2012 at 03:59:59PM +0200, Avi Kivity wrote: > On 01/04/2012 05:03 AM, Isaku Yamahata wrote: > > Yes, it's quite doable in user space(qemu) with a kernel-enhancement. > > And it would be easy to convert a separated daemon process into a thread > > in qemu. > > > > I think it should b

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Andrea Arcangeli
On Thu, Jan 12, 2012 at 03:57:47PM +0200, Avi Kivity wrote: > On 01/03/2012 04:25 PM, Andrea Arcangeli wrote: > > > > > > So the problem is if we do it in > > > > userland with the current functionality you'll run out of VMAs and > > > > slowdown performance too much. > > > > > > > > But all you

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Isaku Yamahata
Very interesting. We can cooperate for better (postcopy) live migration. The code doesn't seem available yet, I'm eager for it. On Fri, Jan 13, 2012 at 01:09:30AM +, Benoit Hudzia wrote: > Hi, > > Sorry to jump to hijack the thread like that , however i would like > to just to inform you t

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

2012-01-12 Thread David Gibson
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 Gibson wrote: > > > > The pci_host_config

[Qemu-devel] buildbot failure in qemu on block_x86_64_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder block_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_x86_64_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Buil

[Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder block_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_i386_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Re

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Takuya Yoshikawa
(2012/01/13 10:09), Benoit Hudzia wrote: Hi, Sorry to jump to hijack the thread like that , however i would like to just to inform you that we recently achieve a milestone out of the research project I'm leading. We enhanced KVM in order to deliver post copy live migration using RDMA at kernel

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

2012-01-12 Thread Michael S. Tsirkin
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 Gibson wrote: > > > The pci_host_config_{read,write}_common() functions perform PCI config > > > accesses. They ta

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 23:47, Andreas Färber wrote: > PRI* should never include % or width specifier or prefix. > > What we should IMO do is: > > #define PRIdPLX PRId64 > #define PRIxPLX PRIx64 > #define PRIXPLX PRIX64 > /* or TARGET_PRI*PHYS or whatever */ > > This can then be used as "... %02" PRIxP

[Qemu-devel] buildbot failure in qemu on disable_kvm_x86_64_out_of_tree

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_x86_64_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_out_of_tree/builds/339 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Buil

[Qemu-devel] buildbot failure in qemu on disable_kvm_i386_out_of_tree

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_i386_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_i386_out_of_tree/builds/339 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: y

[Qemu-devel] buildbot failure in qemu on disable_kvm_x86_64_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_6_0/builds/152 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build:

[Qemu-devel] buildbot failure in qemu on disable_kvm_i386_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_i386_debian_6_0/builds/152 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuz

Re: [Qemu-devel] [PATCH 00/11] virtio-scsi device model

2012-01-12 Thread Hu Tao
On Thu, Jan 12, 2012 at 10:47:48AM +0100, Paolo Bonzini wrote: > On 01/12/2012 06:17 AM, Hu Tao wrote: > >Hi Paolo, > > > >How to add a virtio-scsi device? What parameters should I specify > >in qemu command line? > > Same as with other SCSI devices: > > -device virtio-scsi-pci > > then for ev

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

2012-01-12 Thread David Gibson
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 Gibson wrote: > > The pci_host_config_{read,write}_common() functions perform PCI config > > accesses. They take a limit parameter which they appear to be supposed > > to bounds ch

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Andreas Färber
Am 12.01.2012 23:56, schrieb Anthony Liguori: > On 01/12/2012 04:46 PM, Peter Maydell wrote: > I think a reasonable thing to do is: > > #define PRIp64 "0x%08" PRIx64 > > s:TARGET_FMT_plx:PRIp64:g Nack, that is unreasonable naming and does not solve the issue pointed out by Peter. PRI* should nev

[Qemu-devel] buildbot failure in qemu on default_i386_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder default_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Buil

[Qemu-devel] buildbot failure in qemu on default_i386_out_of_tree

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder default_i386_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_out_of_tree/builds/337 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Bu

[Qemu-devel] buildbot failure in qemu on default_x86_64_out_of_tree

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_out_of_tree/builds/337 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuk

[Qemu-devel] buildbot failure in qemu on default_x86_64_debian_6_0

2012-01-12 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_debian_6_0/builds/151 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki

Re: [Qemu-devel] [PATCH v2] qemu-ga: add guest-set-support-level command

2012-01-12 Thread Michael Roth
On 01/12/2012 12:57 PM, Luiz Capitulino wrote: On Wed, 11 Jan 2012 17:56:05 -0600 Michael Roth wrote: Recently commands where introduced on the mailing that involved adding commands to the guest agent that could potentially break older versions of QEMU. While it's okay to expect that qemu-ga c

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 22:56, Anthony Liguori wrote: > This code is broken in its current form.  target_phys_addr_t has an > unspecified width which is why we provide a FMT for it. I don't think it's been clear that target_phys_addr_t has a width which might not be the width of the target's physical

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
On 01/12/2012 04:46 PM, Peter Maydell wrote: On 12 January 2012 22:42, Peter Maydell wrote: You're the one changing what was previously a known-to-be-32-bit type to one that's much bigger, you get to fix the printing issues. This code is broken in its current form. target_phys_addr_t has an

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 22:42, Peter Maydell wrote: > You're the one changing what was previously a known-to-be-32-bit > type to one that's much bigger, you get to fix the printing > issues. ...which isn't to say that I don't think this is a good plan (indeed I suspect I'm going to need wider physaddr

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 20:32, Anthony Liguori wrote: > On 01/12/2012 02:06 PM, Peter Maydell wrote: >> >> On 12 January 2012 17:54, Anthony Liguori  wrote: >>> >>> This simplifies the build quite a bit and improves the builds performance >>> by >>> not rebuilding many objects twice. >>> >>> There were

Re: [Qemu-devel] [PATCH 0/5] VFIO core framework

2012-01-12 Thread Konrad Rzeszutek Wilk
On Tue, Jan 10, 2012 at 11:35:54AM -0700, Alex Williamson wrote: > On Tue, 2012-01-10 at 11:26 -0500, Konrad Rzeszutek Wilk wrote: > > On Wed, Dec 21, 2011 at 02:42:02PM -0700, Alex Williamson wrote: > > > This series includes the core framework for the VFIO driver. > > > VFIO is a userspace driver

Re: [Qemu-devel] [Bug] System emulation with flash broken?

2012-01-12 Thread Gerhard Wiesinger
On Sun, 8 Jan 2012, Avi Kivity wrote: On 01/08/2012 02:23 PM, Gerhard Wiesinger wrote: On Sun, 8 Jan 2012, Avi Kivity wrote: On 01/07/2012 08:03 PM, Gerhard Wiesinger wrote: On Fri, 6 Jan 2012, Stefan Weil wrote: Hello Avi, latest QEMU seems to be broken when a system emulation with flash

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
On 01/12/2012 02:06 PM, Peter Maydell wrote: On 12 January 2012 17:54, Anthony Liguori wrote: This simplifies the build quite a bit and improves the builds performance by not rebuilding many objects twice. There were a surprising number of places that had assumed wrong things about the size of

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 17:54, Anthony Liguori wrote: > This simplifies the build quite a bit and improves the builds performance by > not rebuilding many objects twice. > > There were a surprising number of places that had assumed wrong things about > the > size of target_phys_addr_t including that i

[Qemu-devel] [PATCH 1/2] pxa2xx_keypad: make single automatic scans work

2012-01-12 Thread Vasily Khoruzhick
u-boot uses single automatic scans and polling in pxa2xx_keypad driver, so clear KPC_AS bit immediately and update keys state even if KPC_AS and KPC_ASACT are cleared. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 72 ++-- 1 files cha

[Qemu-devel] [PATCH 2/2] pxa2xx_lcd: fix palette parser

2012-01-12 Thread Vasily Khoruzhick
Pallete entry size for 16bpp format is 2 bytes, not 4 Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_lcd.c | 51 --- 1 files changed, 28 insertions(+), 23 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 5dd4ef0..02e237e 100644

[Qemu-devel] icount and tb chaining

2012-01-12 Thread James Greensky
Hello all, I have a question about icount and tb chaining that I hope somebody can clear up.  In cpu-exec.c, when the icount_decr.u16.low counter expires, it passes back the current tb as the next_tb and add a jump with the least significant bits = 2. This falls through to tb add jump, which then u

[Qemu-devel] icount and tb chaining

2012-01-12 Thread James Greensky
Hello all, I have a question about icount and tb chaining that I hope somebody can clear up. In cpu-exec.c, when the icount_decr.u16.low counter expires, it passes back the current tb as the next_tb and add a jump with the least significant bits = 2. This falls through to tb add jump, which then u

Re: [Qemu-devel] [PATCH v2] qemu-ga: add guest-set-support-level command

2012-01-12 Thread Luiz Capitulino
On Wed, 11 Jan 2012 17:56:05 -0600 Michael Roth wrote: > Recently commands where introduced on the mailing that involved adding > commands to the guest agent that could potentially break older versions > of QEMU. While it's okay to expect that qemu-ga can be updated to support > newer host featur

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Andreas Färber
Am 12.01.2012 18:54, schrieb Anthony Liguori: > This simplifies the build quite a bit and improves the builds performance by > not rebuilding many objects twice. > > There were a surprising number of places that had assumed wrong things about > the > size of target_phys_addr_t including that it w

[Qemu-devel] Serious regression of 9p read performance, huge amount of openat syscalls on plain file descriptors

2012-01-12 Thread Lutz Vieweg
Hi all, I have been using 9p mounts on guests for quite some time, and enjoyed their nice performance. But not anymore: I noticed that just "dd"-ing large plain files to /dev/zero on the guest system became very slow, even if the data is completely in the cache of the host. The rate maxes at ~ 3

Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Fix to disable vmmouse after reboot

2012-01-12 Thread Andreas Färber
Am 08.01.2012 17:31, schrieb Andreas Färber: > Am 08.01.2012 13:01, schrieb Gerhard Wiesinger: >> On Wed, 4 Jan 2012, Gerhard Wiesinger wrote: >> >>> Testscenario: >>> 1.) Boot e.g. OS with VMMouse support (e.g. Windows) >>> 2.) reboot >>> 3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2

[Qemu-devel] [PATCH 3/7] kvm-ppc: halt secondary cpus when guest reset

2012-01-12 Thread Alexander Graf
From: Liu Yu-B13201 When guest reset, we need to halt secondary cpus until guest kick them. This already works for tcg. The patch add the support for kvm. Signed-off-by: Liu Yu Signed-off-by: Alexander Graf [agraf: remove in-kernel irqchip code] (cherry picked from commit 157feeadbaec09fe4dca5

[Qemu-devel] [PATCH 5/7] pseries: Add a routine to find a stable "default" vty and use it

2012-01-12 Thread Alexander Graf
From: David Gibson In vty_lookup() we have a special case for supporting early debug in the kernel. This accepts reg == 0 as a special case to mean "any vty". We implement this by searching the vtys on the bus and returning the first we find. This means that the vty we chose depends on the order

[Qemu-devel] [PATCH 1/7] console: Fix segfault on screendump without VGA adapter

2012-01-12 Thread Alexander Graf
When trying to create a screen dump without having any VGA adapter inside the guest, QEMU segfaults. This is because it's trying to switch back to the "previous" screen it was on before dumping the VGA screen. Unfortunately, in my case there simply is no previous screen so it accesses a NULL point

[Qemu-devel] [PATCH 4/7] pseries: Emit device tree nodes in reg order

2012-01-12 Thread Alexander Graf
From: David Gibson Although in theory the device tree has no inherent ordering, in practice the order of nodes in the device tree does effect the order that devices are detected by software. Currently the ordering is determined by the order the devices appear on the QEMU command line. Although t

[Qemu-devel] [PATCH 7/7] pseries: Don't try to munmap() a malloc()ed TCE table

2012-01-12 Thread Alexander Graf
From: David Gibson For the pseries machine, TCE (IOMMU) tables can either be directly malloc()ed in qemu or, when running on a KVM which supports it, mmap()ed from a KVM ioctl. The latter option is used when available, because it allows the (frequent bottlenext) H_PUT_TCE hypercall to be KVM acc

[Qemu-devel] [PATCH -V2] hw/9pfs: Add new security model mapped-file.

2012-01-12 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This enable us to do passthrough equivalent security model on NFS directory. NFS server mostly do root squashing and don't support xattr. Hence we cannot use 'passthrough' or 'mapped' security model Also added "mapped-xattr" security to indicate earlier "mapped" security

Re: [Qemu-devel] [PATCH V14 0/7] Qemu Trusted Platform Module (TPM) integration

2012-01-12 Thread Paul Moore
On Wednesday, December 14, 2011 08:43:15 AM Stefan Berger wrote: > The following series of patches adds TPM (Trusted Platform Module) support > to Qemu. An emulator for the TIS (TPM Interface Spec) interface is > added that provides the basis for accessing a 'backend' implementing the > actual TPM

[Qemu-devel] [PATCH 2/7] pseries: Fix array overrun bug in PCI code

2012-01-12 Thread Alexander Graf
From: David Gibson spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7) iterations. However this overruns the 'bars' global array, which only has 6 elements. In fact we only want to run this loop for things listed in the bars array, so this patch corrects the loop bounds to refl

[Qemu-devel] [PATCH 6/7] pseries: Populate "/chosen/linux, stdout-path" in the FDT

2012-01-12 Thread Alexander Graf
From: David Gibson There is a device tree property "/chosen/linux,stdout-path" which indicates which device should be used as stdout - ie. "the console". Currently we don't specify anything, which means both firmware and Linux choose something arbitrarily. Use the routine we added in the last pa

[Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
This simplifies the build quite a bit and improves the builds performance by not rebuilding many objects twice. There were a surprising number of places that had assumed wrong things about the size of target_phys_addr_t including that it was fixed at 32-bit and that it was identical to target_ulon

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

2012-01-12 Thread Peter Maydell
On 11 January 2012 16:31, Mark Langsdorf wrote: > +    highbank_binfo.ram_size = ram_size; > +    highbank_binfo.kernel_filename = kernel_filename; > +    highbank_binfo.kernel_cmdline = kernel_cmdline; > +    highbank_binfo.initrd_filename = initrd_filename; > +    highbank_binfo.board_id = -1; /

Re: [Qemu-devel] [PATCH] bt-host: add missing break statement

2012-01-12 Thread Stefan Weil
Am 12.01.2012 15:17, schrieb Stefan Hajnoczi: The switch statement in bt_host_read() is missing a break in one case. Andrzej Zaborowski confirmed that this is not an intentional fall-through. Signed-off-by: Stefan Hajnoczi --- bt-host.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) d

[Qemu-devel] [PATCH 2/2] s390: fix cpu hotplug / cpu activity on interrupts

2012-01-12 Thread Alexander Graf
From: Christian Borntraeger The add_del/running_cpu code and env->halted are tracking stopped cpus. Sleeping cpus (idle and enabled for interrupts) are waiting inside the kernel. No interrupt besides the restart can move a cpu from stopped to operational. This is already handled over there. So le

[Qemu-devel] [PULL 1.0 0/2] s390 stable-1.0 patch queue 2012-01-12

2012-01-12 Thread Alexander Graf
Hi Justin, This is my current patch queue for s390 for stable-1.0. Please pull. Alex The following changes since commit 85a4ca797dbe25f27df0a66aa4df1cab63245cd3: Justin M. Forbes (1): Merge branch 'master' of ssh://git.qemu.org/pub/git/qemu-stable-1.0 are available in the git reposit

[Qemu-devel] [PATCH 1/2] s390x: add TR function for EXECUTE

2012-01-12 Thread Alexander Graf
Newer gcc versions (or glibc?) also generate code that tries to EXECUTE the TR opcode. Implement it so that we don't break valid guests. Reported-by: Andreas Faerber Signed-off-by: Alexander Graf --- target-s390x/op_helper.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --g

[Qemu-devel] [PATCH] check-qstring: remove check.h include

2012-01-12 Thread Anthony Liguori
Reported-by: Peter Maydell Signed-off-by: Anthony Liguori --- check-qstring.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/check-qstring.c b/check-qstring.c index 681bb68..addad6c 100644 --- a/check-qstring.c +++ b/check-qstring.c @@ -9,7 +9,7 @@ * This work is lic

[Qemu-devel] [PULL 1.0 0/7] ppc-stable-1.0 patch queue 2012-01-12

2012-01-12 Thread Alexander Graf
Hi Justin, This is my current patch queue for ppc in stable-1.0. Please pull. Alex The following changes since commit 85a4ca797dbe25f27df0a66aa4df1cab63245cd3: Justin M. Forbes (1): Merge branch 'master' of ssh://git.qemu.org/pub/git/qemu-stable-1.0 are available in the git repositor

Re: [Qemu-devel] [PATCH] Add tab-completion for device_add.

2012-01-12 Thread Anthony Liguori
On 01/08/2012 09:28 AM, Andrzej Zaborowski wrote: Signed-off-by: Andrzej Zaborowski --- There are other ways to do this, but adding an API for querying available qdev drivers was the one that made most sense to me. --- hw/qdev.c | 38 ++ hw/qdev.h |7 +

Re: [Qemu-devel] [PATCH 1/2] cleanup, Remove duplicated code

2012-01-12 Thread Anthony Liguori
On 01/12/2012 03:05 AM, Lai Jiangshan wrote: These two blocks of code are exactly the same, remove one. Signed-off-by: Lai Jiangshan Applied all. Thanks. Regards, Anthony Liguori --- cpus.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/cpus.c b/cpus.c

Re: [Qemu-devel] [PATCH] vga: optimize ppm_save() divisions

2012-01-12 Thread Anthony Liguori
On 01/03/2012 07:32 AM, Avi Kivity wrote: ppm_save() spends upwards of 50% of its time doing divisions. Replace them with shifts. Signed-off-by: Avi Kivity Applied. Thanks. Regards, Anthony Liguori --- hw/vga.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff -

Re: [Qemu-devel] [PATCH] Fix qapi code generation fix

2012-01-12 Thread Anthony Liguori
On 12/28/2011 04:26 AM, Avi Kivity wrote: The fixes to qapi code generation had multiple bugs: - the Null class used to drop output was missing some methods - in some scripts it was never instantiated, leading to a None return, which is missing even more methods - the --source and --header opt

Re: [Qemu-devel] [PATCH v4] Support for UDP unicast network backend

2012-01-12 Thread Anthony Liguori
On 01/10/2012 06:20 PM, Benjamin wrote: Signed-off-by: Benjamin MARSILI Applied. Thanks. Regards, Anthony Liguori --- Added my last name. Check that localaddr= is supplied with udp=, it crashed when misused... net.c |6 +++- net/socket.c| 77

Re: [Qemu-devel] [PATCH] MAINTAINERS: update tracing repo git URL

2012-01-12 Thread Anthony Liguori
On 01/11/2012 04:02 AM, Stefan Hajnoczi wrote: I have moved git hosting services. Signed-off-by: Stefan Hajnoczi --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Applied. Thanks. Regards, Anthony Liguori diff --git a/MAINTAINERS b/MAINTAINERS index 764c92d..

Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion

2012-01-12 Thread Jan Kiszka
On 2012-01-12 17:31, Hans de Goede wrote: > This patch adds the posibility to filter out certain devices from redirecion. > To use this pass the filter property to -device usb-redir. The filter > property takes a string consisting of filter rules, the format for a rule is: > > > -1 can be us

[Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion

2012-01-12 Thread Hans de Goede
This patch adds the posibility to filter out certain devices from redirecion. To use this pass the filter property to -device usb-redir. The filter property takes a string consisting of filter rules, the format for a rule is: -1 can be used to allow any value for a field. Muliple rules can

Re: [Qemu-devel] [PATCH v4 13/15] block stream: add support for partial streaming

2012-01-12 Thread Stefan Hajnoczi
On Thu, Jan 12, 2012 at 12:42 PM, Kevin Wolf wrote: > Am 06.01.2012 15:01, schrieb Stefan Hajnoczi: >> From: Marcelo Tosatti >> >> Add support for streaming data from an intermediate section of the >> image chain (see patch and documentation for details). >> >> Signed-off-by: Marcelo Tosatti >>

Re: [Qemu-devel] State of KVM bits in linux-headers

2012-01-12 Thread Avi Kivity
On 01/11/2012 11:48 PM, Alexander Graf wrote: > > > > Strictly from a QEMU perspective, we can't depend on APIs that aren't > > committed upstream yet. We can't release any qemu that depends on something not upstream. > The question again is: When do we consider something upstream? This far fr

Re: [Qemu-devel] [PATCH] vga: optimize ppm_save() divisions

2012-01-12 Thread Alon Levy
On Thu, Jan 12, 2012 at 05:16:03PM +0200, Alon Levy wrote: > On Tue, Jan 03, 2012 at 03:32:57PM +0200, Avi Kivity wrote: > > ppm_save() spends upwards of 50% of its time doing divisions. Replace them > > with shifts. > > > > Reviewed-by: Alon Levy > > rmax/bmax/gmax are all uint8_t atm, could a

[Qemu-devel] [PATCH 1/2] cleanup, Remove duplicated code

2012-01-12 Thread Lai Jiangshan
These two blocks of code are exactly the same, remove one. Signed-off-by: Lai Jiangshan --- cpus.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/cpus.c b/cpus.c index 857f96f..f45a438 100644 --- a/cpus.c +++ b/cpus.c @@ -565,14 +565,6 @@ static void qemu_kvm_ini

Re: [Qemu-devel] [PATCH] vga: optimize ppm_save() divisions

2012-01-12 Thread Alon Levy
On Tue, Jan 03, 2012 at 03:32:57PM +0200, Avi Kivity wrote: > ppm_save() spends upwards of 50% of its time doing divisions. Replace them > with shifts. > Reviewed-by: Alon Levy rmax/bmax/gmax are all uint8_t atm, could add a compilation error if sizeof(bmax)!=1 ever. > Signed-off-by: Avi Kivit

Re: [Qemu-devel] [PATCH 00/11] virtio-scsi device model

2012-01-12 Thread Hu Tao
Hi Paolo, How to add a virtio-scsi device? What parameters should I specify in qemu command line? -- Thanks, Hu Tao

Re: [Qemu-devel] [PATCH] network: Added option to disable NIC option roms

2012-01-12 Thread Gerhard Wiesinger
On Mon, 9 Jan 2012, Gerd Hoffmann wrote: Hi, if (!pci_dev->qdev.hotplugged) { static int loaded = 0; -if (!loaded) { +if (!loaded && pci_has_not_explicitly_disabled_option_romfile(pci_dev)) { rom_add_option("pxe-ne2k_pci.rom", -1); loade

[Qemu-devel] The reversion of hot adding a storage disk to Linux guest.

2012-01-12 Thread Shu Ming
Hi, I am testing the hot plug of scsi disk to the KVM Linux guest with the following command. [root@kvm-rhel-01 bin]# ./virsh qemu-monitor-command RHEL6.1-C "pci_add auto storage file=/nfs/images/storage1-qcow2.img,if=scsi" OK domian 0, bus 0, slot 7, function 0 [root@kvm-rhel-01 bin]#

Re: [Qemu-devel] [PATCH 21/21] postcopy: implement postcopy livemigration

2012-01-12 Thread Avi Kivity
On 01/04/2012 05:29 AM, Isaku Yamahata wrote: > On Thu, Dec 29, 2011 at 06:06:10PM +0200, Avi Kivity wrote: > > On 12/29/2011 03:26 AM, Isaku Yamahata wrote: > > > This patch implements postcopy livemigration. > > > > > > > > > +/* RAM is allocated via umem for postcopy incoming mode */ > > > +#d

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

2012-01-12 Thread Paolo Bonzini
On 01/12/2012 11:43 AM, Hannes Reinecke wrote: +# hw/megasas.c +disable megasas_init_firmware(int xfer_len, uint64_t pa) "xfer len %d pa %" PRIx64 " " +disable megasas_init_queue(uint64_t queue_pa, int queue_len, uint64_t head, uint64_t tail, uint32_t flags) "queue at %" PRIx64 " len %d head %"

Re: [Qemu-devel] [PATCH] vga: optimize ppm_save() divisions

2012-01-12 Thread Avi Kivity
On 01/03/2012 03:32 PM, Avi Kivity wrote: > ppm_save() spends upwards of 50% of its time doing divisions. Replace them > with shifts. > > Pings. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] throwing away translated code on CPU reset

2012-01-12 Thread Andreas Färber
Am 12.01.2012 15:00, schrieb Peter Maydell: > When doing TCG code translation, the target-foo translate.c > code is allowed to bake assumptions into the generated code from > the current values of various fields in the CPUState. This then > imposes the requirement that if the field is changed then

Re: [Qemu-devel] [PATCH] Fix qapi code generation fix

2012-01-12 Thread Avi Kivity
On 12/28/2011 12:26 PM, Avi Kivity wrote: > The fixes to qapi code generation had multiple bugs: > - the Null class used to drop output was missing some methods > - in some scripts it was never instantiated, leading to a None return, > which is missing even more methods > - the --source and --hea

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Avi Kivity
On 01/04/2012 05:03 AM, Isaku Yamahata wrote: > Yes, it's quite doable in user space(qemu) with a kernel-enhancement. > And it would be easy to convert a separated daemon process into a thread > in qemu. > > I think it should be done out side of qemu process for some reasons. > (I just repeat same

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2012-01-12 Thread Avi Kivity
On 01/03/2012 04:25 PM, Andrea Arcangeli wrote: > > > > So the problem is if we do it in > > > userland with the current functionality you'll run out of VMAs and > > > slowdown performance too much. > > > > > > But all you need is the ability to map single pages in the address > > > space. > > >

[Qemu-devel] [PATCH] bt-host: add missing break statement

2012-01-12 Thread Stefan Hajnoczi
The switch statement in bt_host_read() is missing a break in one case. Andrzej Zaborowski confirmed that this is not an intentional fall-through. Signed-off-by: Stefan Hajnoczi --- bt-host.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/bt-host.c b/bt-host.c index df5

Re: [Qemu-devel] [PATCH 10/15] test: eliminate libcheck tests and have make check use gtester

2012-01-12 Thread Eduardo Habkost
On Tue, Jan 10, 2012 at 01:10:51PM -0600, Anthony Liguori wrote: [...] > @@ -733,10 +732,6 @@ for opt do >;; >--enable-fdt) fdt="yes" >;; > - --disable-check-utests) check_utests="no" > - ;; > - --enable-check-utests) check_utests="yes" > - ;; >--disable-nptl) nptl="no" >;;

  1   2   >