Re: [Qemu-devel] [PATCH v6 4/4] Add support for net bridge

2011-12-19 Thread Corey Bryant
On 12/19/2011 02:36 PM, Anthony Liguori wrote: On 12/19/2011 07:11 AM, Corey Bryant wrote: The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This model is

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-19 Thread David Woodhouse
On Tue, 2011-12-20 at 09:31 +1100, David Gibson wrote: > When we're running paravirtualized under pHyp, it's impossible to > merge multiple PEs into one domain per se. We could fake it rather > nastily by replicating all map/unmaps across mutiple PEs. When > running bare metal, we could do so a b

Re: [Qemu-devel] [PATCH v6 4/4] Add support for net bridge

2011-12-19 Thread Anthony Liguori
On 12/19/2011 04:55 PM, Corey Bryant wrote: diff --git a/net.c b/net.c index f7bebf8..9296224 100644 --- a/net.c +++ b/net.c @@ -952,6 +952,14 @@ static const struct { .type = QEMU_OPT_STRING, .help = "script to shut down the interface", }, { + .name = "br", + .type = QEMU_OPT_STRING, + .help

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-19 Thread Jan Kiszka
[ Please strip your replies a bit. I always worry to miss a comment when scrolling down dozens of pages. ] On 2011-12-19 23:14, Anthony Liguori wrote: >> + >> +struct APICBackend { >> +const char *name; >> +void (*init)(APICState *s); >> +void (*set_base)(APICState *s, uint64_t val); >

Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore

2011-12-19 Thread Jan Kiszka
On 2011-12-19 23:21, Anthony Liguori wrote: > On 12/15/2011 06:33 AM, Jan Kiszka wrote: >> 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. Specif

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Jan Kiszka
On 2011-12-19 23:24, Anthony Liguori wrote: > On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: >> >> Anthony, >> >> Can you please review& ACK? >> >> You could even apply directly but well do a kvm-autotest run through >> uq/master. Still, your review is needed. > > Overall, it looks good except fo

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-19 Thread David Gibson
On Mon, Dec 19, 2011 at 10:56:40PM +, David Woodhouse wrote: > On Tue, 2011-12-20 at 09:31 +1100, David Gibson wrote: > > When we're running paravirtualized under pHyp, it's impossible to > > merge multiple PEs into one domain per se. We could fake it rather > > nastily by replicating all map/

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-19 Thread Anthony Liguori
On 12/19/2011 05:32 PM, Jan Kiszka wrote: struct APICCommonInfo { DeviceInfo qdev; void (*init)(APICState *s); void (*set_base)(APICState *s, uint64_t val); void (*set_tpr)(APICState *s, uint8_t val); void (*external_nmi)(APICState *s); }; Take a look at SCSIDevice for a

Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore

2011-12-19 Thread Anthony Liguori
On 12/19/2011 05:45 PM, Jan Kiszka wrote: On 2011-12-19 23:21, Anthony Liguori wrote: On 12/15/2011 06:33 AM, Jan Kiszka wrote: 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

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-19 Thread Jan Kiszka
On 2011-12-20 01:28, Anthony Liguori wrote: > On 12/19/2011 05:32 PM, Jan Kiszka wrote: >>> struct APICCommonInfo { >>> DeviceInfo qdev; >>> void (*init)(APICState *s); >>> void (*set_base)(APICState *s, uint64_t val); >>> void (*set_tpr)(APICState *s, uint8_t val); >>> voi

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Anthony Liguori
On 12/19/2011 05:49 PM, Jan Kiszka wrote: On 2011-12-19 23:24, Anthony Liguori wrote: On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: Anthony, Can you please review& ACK? You could even apply directly but well do a kvm-autotest run through uq/master. Still, your review is needed. Overall,

Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore

2011-12-19 Thread Jan Kiszka
On 2011-12-20 01:31, Anthony Liguori wrote: > On 12/19/2011 05:45 PM, Jan Kiszka wrote: >> On 2011-12-19 23:21, Anthony Liguori wrote: >>> On 12/15/2011 06:33 AM, Jan Kiszka wrote: To enable migration between accelerated and non-accelerated APIC models, we will need to handle the tim

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Jan Kiszka
On 2011-12-20 01:32, Anthony Liguori wrote: > On 12/19/2011 05:49 PM, Jan Kiszka wrote: >> On 2011-12-19 23:24, Anthony Liguori wrote: >>> On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: Anthony, Can you please review& ACK? You could even apply directly but well do a

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-19 Thread Anthony Liguori
On 12/19/2011 06:32 PM, Jan Kiszka wrote: On 2011-12-20 01:28, Anthony Liguori wrote: On 12/19/2011 05:32 PM, Jan Kiszka wrote: struct APICCommonInfo { DeviceInfo qdev; void (*init)(APICState *s); void (*set_base)(APICState *s, uint64_t val); void (*set_tpr)(APICState *s

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Anthony Liguori
On 12/19/2011 06:37 PM, Jan Kiszka wrote: On 2011-12-20 01:32, Anthony Liguori wrote: On 12/19/2011 05:49 PM, Jan Kiszka wrote: On 2011-12-19 23:24, Anthony Liguori wrote: On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: Anthony, Can you please review&ACK? You could even apply directly b

Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore

2011-12-19 Thread Anthony Liguori
On 12/19/2011 06:34 PM, Jan Kiszka wrote: On 2011-12-20 01:31, Anthony Liguori wrote: On 12/19/2011 05:45 PM, Jan Kiszka wrote: On 2011-12-19 23:21, Anthony Liguori wrote: On 12/15/2011 06:33 AM, Jan Kiszka wrote: To enable migration between accelerated and non-accelerated APIC models, we wil

[Qemu-devel] [Bug 894037] Re: With VNC, "-usbdevice tablet" no longer makes mouse pointers line up

2011-12-19 Thread Timothy Miller
>From VNC, you access the monitor via Ctrl-Alt-2 and Ctrl-Alt-1. It works the same. "info mice" gives me: * Mouse #1: QEMU USB Tablet (absolute) Mouse #0: QEMU PS/2 Mouse As for Windows and VESA, I'm not sure what it's doing, but I can select all sorts of resolutions, like 1440x900. The defau

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Anthony Liguori
On 12/19/2011 06:37 PM, Jan Kiszka wrote: On 2011-12-20 01:32, Anthony Liguori wrote: On 12/19/2011 05:49 PM, Jan Kiszka wrote: On 2011-12-19 23:24, Anthony Liguori wrote: On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: Anthony, Can you please review&ACK? You could even apply directly b

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Jan Kiszka
On 2011-12-20 02:08, Anthony Liguori wrote: > On 12/19/2011 06:37 PM, Jan Kiszka wrote: >> On 2011-12-20 01:32, Anthony Liguori wrote: >>> On 12/19/2011 05:49 PM, Jan Kiszka wrote: On 2011-12-19 23:24, Anthony Liguori wrote: > On 12/19/2011 03:17 PM, Marcelo Tosatti wrote: >> >> An

Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore

2011-12-19 Thread Jan Kiszka
On 2011-12-20 01:53, Anthony Liguori wrote: > On 12/19/2011 06:34 PM, Jan Kiszka wrote: >> On 2011-12-20 01:31, Anthony Liguori wrote: >>> On 12/19/2011 05:45 PM, Jan Kiszka wrote: On 2011-12-19 23:21, Anthony Liguori wrote: > On 12/15/2011 06:33 AM, Jan Kiszka wrote: >> To enable migr

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Jan Kiszka
On 2011-12-20 02:19, Jan Kiszka wrote: > On 2011-12-20 02:08, Anthony Liguori wrote: >> On 12/19/2011 06:37 PM, Jan Kiszka wrote: >>> On 2011-12-20 01:32, Anthony Liguori wrote: On 12/19/2011 05:49 PM, Jan Kiszka wrote: > On 2011-12-19 23:24, Anthony Liguori wrote: >> On 12/19/2011 03:

[Qemu-devel] buildbot failure in qemu on default_x86_64_fedora16

2011-12-19 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_fedora16 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_fedora16/builds/121 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_fedor

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Anthony Liguori
On 12/19/2011 07:19 PM, Jan Kiszka wrote: On 2011-12-20 02:08, Anthony Liguori wrote: There's lot of inconsistency in qdev already today so adding a little more isn't the end of the world. We're going to need to eventually have this debate soon so it's up to you whether you want to just get thi

Re: [Qemu-devel] [PATCH v5 00/16] uq/master: Introduce basic irqchip support

2011-12-19 Thread Anthony Liguori
On 12/19/2011 08:46 PM, Anthony Liguori wrote: On 12/19/2011 07:19 PM, Jan Kiszka wrote: On 2011-12-20 02:08, Anthony Liguori wrote: Here's how we solve this problem: 1) In the short term, advertise both devices as having the same VMstate name. Since we don't register until the device is insta

Re: [Qemu-devel] insmod virtio-blk is broken in qemu 1.0

2011-12-19 Thread Kevin O'Connor
On Mon, Dec 19, 2011 at 12:02:59PM -0600, Anthony Liguori wrote: > We really need to update SeaBIOS whenever there is a bug that we > know requires an update. Things breakdown because of one or more of > the following reasons: > > 1) User submits a patch to seabios@, Kevin applies it. But that >

Re: [Qemu-devel] [RFC 00/10]: QMP/HMP: Introduce tray handling commands

2011-12-19 Thread Osier Yang
On 2011年06月04日 03:03, Luiz Capitulino wrote: In a recent discussion on the mailing list regarding the introduction of the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events[1], it was mentioned that we need to fix the eject command and maybe introduce new commands first. Here's a my proposal. This ser

[Qemu-devel] [RFC] Migration convergence - a suggestion

2011-12-19 Thread Ronen Hod
Well the issue is not new, anyhow, following a conversation with Orit ... Since we want the migration to finish, I believe that the "migration speed" parameter alone cannot do the job. I suggest using two distinct parameters: 1. Migration speed - will be used to limit the network resources util

[Qemu-devel] OEM Windows in Qemu

2011-12-19 Thread inbox
I've been trying for several days now to get my OEM copy of Windows XP to pre-activate properly in Qemu-kvm.  I saw the instructions for patching the seabios here:http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg03080.htmlThat seems to have worked as expected.  When I boot, it shows the newl

Re: [Qemu-devel] [PATCH v2] linux-user: Fix 32-on-64 mmap for x86_64

2011-12-19 Thread 陳韋任
> This patch is actually wrong and we should rather make proper -R values the > default instead of relying on MAP_32BIT. I don't understand what "make proper -R values" means. Where/how we can apply "-R"? Regards, chenwj

Re: [Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-19 Thread Stefan Weil
Am 19.12.2011 03:12, schrieb TeLeMan: On Sat, Dec 17, 2011 at 07:12, Stefan Weil wrote: Am 16.12.2011 04:24, schrieb TeLeMan: On Sun, Dec 4, 2011 at 05:32, Stefan Weil wrote: Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005), QEMU applications on W32 don't use the default SDL

Re: [Qemu-devel] [PATCH] virtio-serial: Allow one MSI-X vector per virtqueue

2011-12-19 Thread Zang Hongyong
于 2011/12/19,星期一 15:26, Amit Shah 写道: On (Mon) 19 Dec 2011 [14:09:43], Zang Hongyong wrote: 于 2011/12/16,星期五 17:39, Amit Shah 写道: On (Fri) 16 Dec 2011 [09:14:26], zanghongy...@huawei.com wrote: From: Hongyong Zang In pci_enable_msix(), the guest's virtio-serial driver tries to set msi-x with

Re: [Qemu-devel] USB continuous reset / unplug cleanup not done properly

2011-12-19 Thread Gerd Hoffmann
Hi, > 1) Devices get resetted again and again on the host side and do not work > properly on the guest side - they work fine on the host side outside qemu. I see those too. Not clear what is going on here. usbfs requests seem to get stuck now and then for not-yet known reasons. Sometimes the

Re: [Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-19 Thread TeLeMan
On Mon, Dec 19, 2011 at 16:15, Stefan Weil wrote: > Am 19.12.2011 03:12, schrieb TeLeMan: > >> On Sat, Dec 17, 2011 at 07:12, Stefan Weil wrote: >>> >>> Am 16.12.2011 04:24, schrieb TeLeMan: >>> On Sun, Dec 4, 2011 at 05:32, Stefan Weil wrote: > > > Since commit 1d14ffa97eacd3cb

Re: [Qemu-devel] Problem editing wiki page in wiki.qemu.org

2011-12-19 Thread Stefan Hajnoczi
On Sun, Dec 18, 2011 at 11:45 AM, Michael Tokarev wrote: > On 18.12.2011 15:20, Stefan Weil wrote: > [] >> It looks like the autoblock was created yesterday and >> terminates automaticallytoday (see >> http://wiki.qemu.org/index.php?title=Special:BlockList&action=search&ip=%23132). >> >> That won'

[Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-19 Thread Michael Niehren
Hi Stefan, here is the output of gdb: tux64@/usr/src/redhat/RPMS/x86_64# gdb -p 16606 GNU gdb (GDB) 7.3 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it

Re: [Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-19 Thread Andreas Färber
Am 19.12.2011 09:15, schrieb Stefan Weil: > If that is impossible, maybe pairs of executables (a windows gui > and a console version for each system emulation) would also be > a reasonable choice. This only needs an additional objcopy (which > makes a copy and changes the subsystem) to get qemu-sys

[Qemu-devel] [Bug 906221] [NEW] USBDEVFS_CLEAR_HALT stall with USB-CDROM qemu-1.0

2011-12-19 Thread Erik Rull
Public bug reported: When connecting a USB DVD/CDROM drive to the linux host, it works fine and I can mount the inserted DVD properly and work with it. After unmounting the DVD and routing the USB drive to the linux guest (same kernel version), both host and guest become unresponsive and on the

Re: [Qemu-devel] insmod virtio-blk is broken in qemu 1.0

2011-12-19 Thread Daniel P. Berrange
On Sat, Dec 17, 2011 at 11:49:56AM -0500, Kevin O'Connor wrote: > On Sat, Dec 17, 2011 at 10:24:07AM -0600, Anthony Liguori wrote: > > On 12/17/2011 09:25 AM, Richard W.M. Jones wrote: > > >On Sat, Dec 17, 2011 at 09:22:45AM -0600, Anthony Liguori wrote: > > >>I've even further narrowed it down to

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-19 Thread Stefan Hajnoczi
On Mon, Dec 19, 2011 at 10:02 AM, Michael Niehren <902...@bugs.launchpad.net> wrote: > 0x7fd75a287f28 in bdrv_rw_co () > (gdb) quit > A debugging session is active. Please run the 'thread apply all bt' gdb command to produce backtraces for all threads. Your system does not have symbols instal

Re: [Qemu-devel] [PATCH] slirp: Fix typo in net_slirp_hostfwd_remove

2011-12-19 Thread Stefan Hajnoczi
On Sat, Dec 17, 2011 at 04:23:59AM -0500, Geoffrey Thomas wrote: > Report an error when err is nonzero, not when it is zero. > > Signed-off-by: Geoffrey Thomas > --- > net/slirp.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks, applied to the trivial patches tree: http://r

[Qemu-devel] [PULL 00/17] Trivial patches for 7 to 19 December 2011

2011-12-19 Thread Stefan Hajnoczi
The following changes since commit 5ab97b7f81dee03a3f1d03a4d09a27f0eeff: phys_page_find_alloc: Use correct initial region_offset. (2011-12-15 10:22:40 -0600) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches Geoffrey Thomas (1): sli

[Qemu-devel] [PATCH 02/17] Makefile.target: Remove unnecessary dependency rules

2011-12-19 Thread Stefan Hajnoczi
From: Peter Maydell Remove some dependency rules which aren't necessary (the automatically generated .d files cover all these). These were leftovers from dyngen days, when the object files also had a dependency on some generated files. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PATCH 03/17] stellaris: Calculate system clock period on reset

2011-12-19 Thread Stefan Hajnoczi
From: Peter Maydell Calculate the system clock period on reset; otherwise it remains set to the default value of zero and attempting to use it provokes a hang. This is one of the issues noted in LP:696094. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- hw/stellaris.c |1 +

[Qemu-devel] [PATCH 06/17] Also create piix3 property when Xen is enabled

2011-12-19 Thread Stefan Hajnoczi
From: Julian Pidancet This recently added line in hw/pc_piix.c is causing a SEGV on a Xen setup because the piix3 property is never created: qdev_property_add_child(qdev_resolve_path("/i440fx/piix3", NULL), "rtc", (DeviceState *)rtc_state, NULL); Signed-off-by: Julia

[Qemu-devel] [PATCH 05/17] slirp: Fix typo in net_slirp_hostfwd_remove

2011-12-19 Thread Stefan Hajnoczi
From: Geoffrey Thomas Report an error when err is nonzero, not when it is zero. Signed-off-by: Geoffrey Thomas Signed-off-by: Stefan Hajnoczi --- net/slirp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/slirp.c b/net/slirp.c index 6646ecb..18e07ba 100644 --- a

[Qemu-devel] [PATCH 08/17] configure: Fix compiler warnings in config.log (old-style function definition)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: function declaration isn’t a prototype In function ‘foo’: warning: old-style function definition The function name was changed, too, to avoid an additional warning. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |4 ++-- 1 files changed

[Qemu-devel] [PATCH 14/17] configure: Fix compiler warning in config.log (undefined NULL)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil Avoid the warning when probing for xfs. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e3713af..e9725d4 100755 --- a/configure +++ b/configure @@ -16

[Qemu-devel] [PATCH 16/17] configure: Fix compiler warnings in config.log (statement without effect)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/configure b/configure index bd6f10f..36ee849 100755 --- a/configure +++ b/configure @@ -2074,7 +2074,7 @@ cat > $TMPC < #inc

[Qemu-devel] [PATCH 15/17] configure: Fix compiler warning in config.log (value was never used)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e9725d4..bd6f10f 100755 --- a/configure +++ b/configure @@ -2269,8 +2269,7 @@ cat > $TMPC << EOF i

[Qemu-devel] [PATCH 17/17] configure: Improve Xen autodetection for hosts without Xen

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil With this patch, it only takes one test (instead of four) to detect that there is no Xen support at all. For most build hosts, this will reduce the time configure needs. It will also reduce noisy output in config.log. Build hosts with Xen now need up to five (instead of up to

[Qemu-devel] [PATCH 13/17] configure: Fix compiler warnings in config.log (uninitialized variable)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: ‘fd’ is used uninitialized in this function warning: ‘id’ is used uninitialized in this function Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure

[Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-19 Thread Michael Niehren
Ok, sorry, here the output: Thread 1 (Thread 0x7f57507c2740 (LWP 27263)): #0 0x7f57507da952 in qemu_aio_wait () #1 0x7f57507dcf2d in bdrv_rw_co () #2 0x7f57507dd2c2 in bdrv_pread () #3 0x7f57507ed03a in qcow2_open () #4 0x7f57507dc281 in bdrv_open_common () #5 0x7f575

[Qemu-devel] [PATCH 07/17] configure: Fix compiler warnings in config.log (always return a value from main)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil Fix several "warning: control reaches end of non-void function". Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6fd580e..03b8f35 100755 --- a/c

[Qemu-devel] [PATCH 11/17] configure: Fix compiler warning in config.log (unused variable)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: unused variable ‘iov’ Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 4e596e6..f2c2a27 100755 --- a/configure +++ b/configure @@ -2060,7 +20

[Qemu-devel] [PATCH 01/17] ide: drop argument to dma_buf_commit

2011-12-19 Thread Stefan Hajnoczi
From: Paolo Bonzini The argument is unused and even wrong when the function is called by ide_handle_rw_error. Drop it. Signed-off-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- hw/ide/core.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ide/core.c b/h

[Qemu-devel] [PATCH 10/17] configure: Fix compiler warnings in config.log (null arguments)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: null argument where non-null required (argument 1) warning: null argument where non-null required (argument 3) Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/conf

[Qemu-devel] [PATCH v4 00/11] ARM: Samsung Exynos4210-based boards support.

2011-12-19 Thread Evgeny Voevodin
This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage of "-smp 2" option is reuired for now. Changelog: v3->v4 - Split Exynos SOC and boards. - Temporary removed SD and CMU support to post later. - Lan9118 remarks took i

[Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support.

2011-12-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |3 +- hw/exynos4210.c | 179 - hw/exynos4210.h | 46 hw/exynos4210_combiner.c | 384 ++ hw/exynos4210_gic.c | 509

[Qemu-devel] [PATCH v2] KVM: Use -cpu host as default on x86

2011-12-19 Thread Alexander Graf
When running QEMU without -cpu parameter, the user usually wants a sane default. So far, we're using the qemu64/qemu32 CPU type, which basically means "the maximum TCG can emulate". That's a really good default when using TCG, but when running with KVM we much rather want a default saying "the max

[Qemu-devel] [PATCH 12/17] configure: Fix compiler warning in config.log (macro redefined)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: "_GNU_SOURCE" redefined The macro is already defined on the command line. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure b/configure index f2c2a27..eeec8fa 1

[Qemu-devel] [PATCH v4 03/11] hw/sysbus.h: Increase maximum number of device IRQs.

2011-12-19 Thread Evgeny Voevodin
Samsung exynos4210 Interrupt Combiner needs 512 IRQ sources. Signed-off-by: Evgeny Voevodin --- hw/sysbus.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/sysbus.h b/hw/sysbus.h index 9bac582..4ef0c3c 100644 --- a/hw/sysbus.h +++ b/hw/sysbus.h @@ -8,7 +8,7 @@ #de

[Qemu-devel] [PATCH v4 06/11] hw/arm_boot.c: Extend secondary CPU bootloader.

2011-12-19 Thread Evgeny Voevodin
Secondary CPU bootloader enables interrupt and issues wfi until start address is written to system controller. The position where to find this start address is hardcoded to 0x1030. This commit extends bootloader for secondary CPU to allow a target board to cpecify a position where to find start

[Qemu-devel] [PATCH 09/17] configure: Fix compiler warning in config.log (integer from pointer)

2011-12-19 Thread Stefan Hajnoczi
From: Stefan Weil warning: return makes integer from pointer without a cast v2: Removed type cast. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 93c6cbe..773df6

[Qemu-devel] [PATCH v4 07/11] ARM: exynos4210: MCT support.

2011-12-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 19 + hw/exynos4210_mct.c | 1491 +++ 3 files changed, 1511 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_mct.c diff --git a/Makefile.targe

[Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() if KVM_RUN fails

2011-12-19 Thread Stefan Hajnoczi
From: Michael Ellerman It's a little unfriendly to call abort() without printing any sort of error message. So turn the DPRINTK() into an fprintf(stderr, ...). Signed-off-by: Michael Ellerman Signed-off-by: Stefan Hajnoczi --- kvm-all.c |3 ++- 1 files changed, 2 insertions(+), 1 deletion

[Qemu-devel] [PATCH v4 02/11] ARM: exynos4210: UART support

2011-12-19 Thread Evgeny Voevodin
From: Maksim Kozlov Add basic support of exynos4210 UART Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 24 ++ hw/exynos4210.h |9 + hw/exynos4210_uart.c | 669 ++ 4 files changed, 703 insert

[Qemu-devel] [PATCH v4 05/11] ARM: exynos4210: PWM support.

2011-12-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 12 ++ hw/exynos4210_pwm.c | 415 +++ 3 files changed, 428 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_pwm.c diff --git a/Makefile.targe

[Qemu-devel] [PATCH v4 01/11] ARM: Samsung exynos4210-based boards emulation

2011-12-19 Thread Evgeny Voevodin
From: Maksim Kozlov Add initial code for support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.c | 103 +++ hw/exynos4210.h | 63 hw/exynos4_boards.c | 133

[Qemu-devel] [PATCH v4 09/11] hw/lan9118: Add basic 16-bit mode support.

2011-12-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- hw/lan9118.c | 115 +++--- 1 files changed, 110 insertions(+), 5 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 7e64c5d..21b7b23 100644 --- a/hw/lan9118.c +++ b/hw/lan9118.c @@ -212,6 +212,17 @@

[Qemu-devel] [PATCH v4 08/11] hw/exynos4210.c: Boot secondary CPU.

2011-12-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 14 ++ hw/exynos4210.h |7 ++- hw/exynos4_boards.c |9 + 3 files changed, 29 insertions(+), 1 deletions(-) diff --git a/hw/exynos4210.c b/hw/exynos4210.c index f958980..badeacf 100644 --- a/hw/exynos4

[Qemu-devel] [PATCH v4 10/11] hw/exynos4210.c: Add LAN support for SMDKC210.

2011-12-19 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin --- hw/exynos4_boards.c | 27 ++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/hw/exynos4_boards.c b/hw/exynos4_boards.c index 5410a6f..a005e0a 1

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

2011-12-19 Thread Alexander Graf
On 21.11.2011, at 10:12, Christian Borntraeger wrote: > 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

Re: [Qemu-devel] [PATCH v2] linux-user: Fix 32-on-64 mmap for x86_64

2011-12-19 Thread Alexander Graf
On 25.11.2011, at 14:06, Peter Maydell wrote: > On 24 November 2011 23:43, Alexander Graf wrote: >> --- >> >> v1 -> v2: >> >> - make prettier by just wrapping mmap in linux-user/mmap.c > > Hmm. I prefer the non-wrapped version :-) > In particular, qemu_mmap() implies that (like other qemu_fo

[Qemu-devel] [PATCH v6 0/4] -net bridge: rootless bridge support for qemu

2011-12-19 Thread Corey Bryant
With qemu it is possible to run a guest from an unprivileged user but if we wanted to communicate with the outside world we had to switch to root. We address this problem by introducing a new network backend and a new network option for -net tap. This is less flexible when compared to existing -n

[Qemu-devel] [PATCH v6 2/4] Add access control support to qemu bridge helper

2011-12-19 Thread Corey Bryant
We go to great lengths to restrict ourselves to just cap_net_admin as an OS enforced security mechanism. However, we further restrict what we allow users to do to simply adding a tap device to a bridge interface by virtue of the fact that this is the only functionality we expose. This is not good

[Qemu-devel] [PATCH v6 3/4] Add cap reduction support to enable use as SUID

2011-12-19 Thread Corey Bryant
The ideal way to use qemu-bridge-helper is to give it an fscap of using: setcap cap_net_admin=ep qemu-bridge-helper Unfortunately, most distros still do not have a mechanism to package files with fscaps applied. This means they'll have to SUID the qemu-bridge-helper binary. To improve security

[Qemu-devel] [PATCH v6 1/4] Add basic version of bridge helper

2011-12-19 Thread Corey Bryant
This patch adds a helper that can be used to create a tap device attached to a bridge device. Since this helper is minimal in what it does, it can be given CAP_NET_ADMIN which allows qemu to avoid running as root while still satisfying the majority of what users tend to want to do with tap devices

[Qemu-devel] [PATCH v6 4/4] Add support for net bridge

2011-12-19 Thread Corey Bryant
The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This model is great for portability and flexibility but it's incredibly difficult to eliminate the need to ru

Re: [Qemu-devel] [PATCH] kvm-ppc: halt secondary cpus when guest reset

2011-12-19 Thread Alexander Graf
On 29.11.2011, at 07:41, Liu Yu wrote: > 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. > > For kvm, if use in-kernel mpic, it should not be halted. > In this case, we pause the sencondaries instead. > This

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-19 Thread Stefan Hajnoczi
On Mon, Dec 19, 2011 at 10:52:24AM -, Michael Niehren wrote: > Ok, sorry, here the output: > > Thread 1 (Thread 0x7f57507c2740 (LWP 27263)): > #0 0x7f57507da952 in qemu_aio_wait () > #1 0x7f57507dcf2d in bdrv_rw_co () > #2 0x7f57507dd2c2 in bdrv_pread () > #3 0x7f57507ed03a

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

2011-12-19 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 1/3] QEMU kvm: Syncing linux headers to 3.2.0-rc1

2011-12-19 Thread Alexander Graf
On 04.12.2011, at 19:25, Raghavendra K T wrote: > Update the kvm kernel headers to the 3.2.0-rc1 post using > scripts/update-linux-headers.sh script. > > Signed-off-by: Raghavendra K T > --- > diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-powerpc/kvm.h > index fb3fddc..08fe69

Re: [Qemu-devel] [PATCH 2/3] QEMU kvm: Syncing linux headers to support KICK_VCPU capability

2011-12-19 Thread Alexander Graf
On 04.12.2011, at 19:26, Raghavendra K T wrote: > Update the kernel header that adds a hypercall to support pv-ticketlocks. > > Signed-off-by: Raghavendra K T > --- > diff --git a/linux-headers/asm-x86/kvm_para.h > b/linux-headers/asm-x86/kvm_para.h You're patching the synced kernel headers?

Re: [Qemu-devel] [PATCH 3/3] QEMU kvm/i386 : Adding KICK_VCPU capability support in i386 target.

2011-12-19 Thread Alexander Graf
On 04.12.2011, at 19:26, Raghavendra K T wrote: > Extend the KVM Hypervisor to enable KICK_VCPU feature that allows > a vcpu to kick the halted vcpu to continue with execution in PV ticket > spinlock. > > Signed-off-by: Srivatsa Vaddagiri > Signed-off-by: Raghavendra K T > --- > diff --git a/t

Re: [Qemu-devel] [PATCH 3/3] QEMU kvm/i386 : Adding KICK_VCPU capability support in i386 target.

2011-12-19 Thread Avi Kivity
On 12/19/2011 03:54 PM, Alexander Graf wrote: > On 04.12.2011, at 19:26, Raghavendra K T wrote: > > > Extend the KVM Hypervisor to enable KICK_VCPU feature that allows > > a vcpu to kick the halted vcpu to continue with execution in PV ticket > > spinlock. > > > > Signed-off-by: Srivatsa Vaddagiri

Re: [Qemu-devel] [PATCH] pseries: Fix array overrun bug in PCI code

2011-12-19 Thread Alexander Graf
On 29.11.2011, at 07:21, David Gibson wrote: > 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 patc

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Fix array overrun bug in PCI code

2011-12-19 Thread Alexander Graf
On 19.12.2011, at 14:59, Alexander Graf wrote: > > On 29.11.2011, at 07:21, David Gibson wrote: > >> 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 thi

Re: [Qemu-devel] [PATCH 3/3] QEMU kvm/i386 : Adding KICK_VCPU capability support in i386 target.

2011-12-19 Thread Alexander Graf
On 19.12.2011, at 14:59, Avi Kivity wrote: > On 12/19/2011 03:54 PM, Alexander Graf wrote: >> On 04.12.2011, at 19:26, Raghavendra K T wrote: >> >>> Extend the KVM Hypervisor to enable KICK_VCPU feature that allows >>> a vcpu to kick the halted vcpu to continue with execution in PV ticket >>> sp

Re: [Qemu-devel] [PATCH 3/3] QEMU kvm/i386 : Adding KICK_VCPU capability support in i386 target.

2011-12-19 Thread Jan Kiszka
On 2011-12-19 15:03, Alexander Graf wrote: > > On 19.12.2011, at 14:59, Avi Kivity wrote: > >> On 12/19/2011 03:54 PM, Alexander Graf wrote: >>> On 04.12.2011, at 19:26, Raghavendra K T wrote: >>> Extend the KVM Hypervisor to enable KICK_VCPU feature that allows a vcpu to kick the halte

[Qemu-devel] [PATCH 06/23] loader: remove calls to cpu_get_physical_page_desc()

2011-12-19 Thread Avi Kivity
cpu_get_physical_page_desc() is tied into the memory core's innards, replace it with uses of the API. Signed-off-by: Avi Kivity --- hw/loader.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 9bbcddd..7af5411 100644 --- a/hw/loader

[Qemu-devel] [PATCH 00/23] Remove cpu_get_physical_page_desc()

2011-12-19 Thread Avi Kivity
cpu_get_physical_page_desc() exposes the internals of the memory core to callers; as such it prevents the refactoring planned there. This patchset converts all callers memory API equivalents and removes the function. The conversion leaves a lot of potential for further cleanups; the MemoryListene

[Qemu-devel] [PATCH 05/23] memory: add memory_region_is_rom()

2011-12-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- memory.c |5 + memory.h |9 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index 6fd31d4..c57b7de 100644 --- a/memory.c +++ b/memory.c @@ -1073,6 +1073,11 @@ bool memory_region_is_ram(MemoryRegion *mr) r

[Qemu-devel] [PATCH 09/23] memory: add API for observing updates to the physical memory map

2011-12-19 Thread Avi Kivity
Add an API that allows a client to observe changes in the global memory map: - region added (possibly with logging enabled) - region removed (possibly with logging enabled) - logging started on a region - logging stopped on a region - global logging started - global logging removed This API

[Qemu-devel] [PATCH 13/23] kvm: convert to MemoryListener API

2011-12-19 Thread Avi Kivity
Drop the use of cpu_register_phys_memory_client() in favour of the new MemoryListener API. The new API simplifies the caller, since there is no need to deal with splitting and merging slots; however this is not exploited in this patch. Signed-off-by: Avi Kivity --- kvm-all.c | 107

[Qemu-devel] [PATCH 02/23] sysbus: add sysbus_address_space()

2011-12-19 Thread Avi Kivity
Given a bus device, retrieves the memory address space for its bus. Signed-off-by: Avi Kivity --- hw/sysbus.c |5 + hw/sysbus.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/sysbus.c b/hw/sysbus.c index b315a8c..492a7c6 100644 --- a/hw/sysbus.c +++ b/hw/sysb

[Qemu-devel] [PATCH 18/23] memory: remove CPUPhysMemoryClient

2011-12-19 Thread Avi Kivity
No longer used. Signed-off-by: Avi Kivity --- cpu-all.h |6 -- cpu-common.h| 23 exec-obsolete.h |3 - exec.c | 169 ++- memory.c| 12 5 files changed, 5 insertions(+), 208 deletions(-) dif

Re: [Qemu-devel] [PATCH 12/23] fixup: listener fixes

2011-12-19 Thread Peter Maydell
On 19 December 2011 14:13, Avi Kivity wrote: > --- This is a rather uninformative commit message -- was this patch intended to be in this series? -- PMM >  memory.c |    7 --- >  1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/memory.c b/memory.c > index c08186d..2dcbf80 1

[Qemu-devel] [PATCH 11/23] kvm: switch kvm slots to use host virtual address instead of ram_addr_t

2011-12-19 Thread Avi Kivity
This simplifies a later switch to the memory API in slot management. Signed-off-by: Avi Kivity --- kvm-all.c | 29 + kvm.h |4 ++-- memory.c |6 +++--- target-i386/kvm.c |7 +++ 4 files changed, 25 insertions(+), 21 delet

[Qemu-devel] [PATCH 12/23] fixup: listener fixes

2011-12-19 Thread Avi Kivity
--- memory.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/memory.c b/memory.c index c08186d..2dcbf80 100644 --- a/memory.c +++ b/memory.c @@ -708,13 +708,13 @@ static void memory_listener_update_region(FlatRange *fr, AddressSpace *as, .address_space = as

[Qemu-devel] [PATCH 01/23] memory: introduce memory_region_find()

2011-12-19 Thread Avi Kivity
Given an address space (represented by the top-level memory region), returns the memory region that maps a given range. Useful for implementing DMA. The implementation is a simplistic binary search. Once we have a tree representation this can be optimized. Signed-off-by: Avi Kivity --- memory

  1   2   >