Re: [Qemu-devel] [PATCH 1.0] 9pfs: improve portability to older systems

2011-11-21 Thread Paolo Bonzini
On 11/21/2011 10:01 PM, Anthony Liguori wrote: -return qemu_utimensat(AT_FDCWD, rpath(s, path, buffer), buf, - AT_SYMLINK_NOFOLLOW); +return qemu_utimens(rpath(s, path, buffer), buf); Hrm, I thought the SYMLINK_NOFOLLOW was critical in enforcing security? Yes

Re: [Qemu-devel] updating seabios to current release?

2011-11-21 Thread Paolo Bonzini
On 11/22/2011 02:58 AM, Anthony Liguori wrote: Current version of seabios is 1.6.3, released several weeks ago. Compared with the version currently shipped in qemu, it adds a few commits, most of which are fixes for qemu-related issues. Maybe it's not too late to update seabios to the latest

Re: [Qemu-devel] [SeaBIOS PATCH] usb: fix boot paths

2011-11-21 Thread Paolo Bonzini
On 11/18/2011 04:36 PM, Paolo Bonzini wrote: On 11/18/2011 03:59 PM, Paolo Bonzini wrote: The fw paths for USB devices that SeaBIOS computes are off-by-one, because QEMU builds those paths with a numbering that starts from one (see usb_fill_port and usb_hub_initfn in QEMU). Fix that so that the

Re: [Qemu-devel] [PATCH 1/4] rtc: fix 12-hour mode

2011-11-21 Thread Paolo Bonzini
On 11/22/2011 07:39 AM, Mark Wu wrote: Hours in 12-hour mode are in the 1-12 range, not 0-11. Interesting. I would like to know how you could find this problem. It seems linux driver never changes the format and 24-hour is default in rtc emulation code. So how did it expose and how to test it?

Re: [Qemu-devel] [PATCH 1/4] rtc: fix 12-hour mode

2011-11-21 Thread Mark Wu
On 11/22/2011 02:00 AM, Paolo Bonzini wrote: Hours in 12-hour mode are in the 1-12 range, not 0-11. Interesting. I would like to know how you could find this problem. It seems linux driver never changes the format and 24-hour is default in rtc emulation code. So how did it expose and how to te

Re: [Qemu-devel] [PATCH V2 4/4] imx.31 and KZM board support: Makefile and board

2011-11-21 Thread Peter Chubb
Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board built around the FreeScale i.MX31. Signed-off-by: Hans Jang Signed-off-by: Adam Clench Signed-off-by: Peter Chubb --- Makefile.target |2 hw/kzm.c| 155 2 fi

Re: [Qemu-devel] [PATCH V2 3/4] imx.31 and KZM board support: interrupt controller

2011-11-21 Thread Peter Chubb
Implement the FreeSCALE i.MX31 advanced vectored interrupt controller, at least to the extent it is used by Linux 3.0.x Signed-off-by: Hans Jang Signed-off-by: Adam Clench Signed-off-by: Peter Chubb --- hw/imx_avic.c | 363 ++ 1 file cha

Re: [Qemu-devel] [PATCH V2 2/4] imx.31 and KZM board support: Timer support

2011-11-21 Thread Peter Chubb
Implement the timers on the FreeScale i.MX31 SoC. This is not a complete implementation, but gives enough for Linux to boot and run. Signed-off-by: Hans Jang Signed-off-by: Adam Clench Signed-off-by: Peter Chubb --- hw/imx_timer.c | 441 ++

Re: [Qemu-devel] [PATCH V2 1/4] imx.31 and KZM board support: UART support

2011-11-21 Thread Peter Chubb
Implement the FreeScale i.MX UART. This uart is used in a variety of SoCs, including some by Motorola, as well as in the FreeScale i.MX series. Signed-off-by: Hans Jang Signed-off-by: Adam Clench Signed-off-by: Peter Chubb --- hw/imx_serial.c | 307 ++

[Qemu-devel] [PATCH V2 0/4] imx.31 and KZM board support

2011-11-21 Thread Peter Chubb
Here follow four patches in separate emails, to implement basic i.mx31 SoC support, and the KZM evaluation board built around this chip. The patch to the Makefile to build all the files is in the last of the series, rather than changing Makefile.hw in each patch. All comments received so far have

Re: [Qemu-devel] [PATCH] [ARM] Fix sp804 dual-timer

2011-11-21 Thread Peter Chubb
Properly implement dual-timer read/write for the sp804 dual timer module. Based on ARM specs at http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html Signed-off-by: Hans Jang Signed-off-by: David Mirabito Signed-off-by: Peter Chubb --- hw/arm_timer.c | 41 +

Re: [Qemu-devel] [PATCH] [ARM] Fix hw_error messages from arm_timer.c

2011-11-21 Thread Peter Chubb
Two of the calls to hw_error() in arm_timer.c contain the wrong function name. As suggested by Andreas Färber, use the C99 standard __func__ macro to get the correct name, instead of putting the name directly into the code. Signed-off-by: Peter Chubb --- hw/arm_timer.c |8 1 file

[Qemu-devel] [PATCH] block:avoid deadlock in sheepdog.c

2011-11-21 Thread Dong Xu Wang
From: Dong Xu Wang s->lock should be unlocked before leaving add_aio_request. Signed-off-by: Dong Xu Wang --- block/sheepdog.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 9f80609..62f1f3a 100644 --- a/block/sheepdog.c +++

Re: [Qemu-devel] updating seabios to current release?

2011-11-21 Thread Anthony Liguori
On 11/21/2011 03:22 PM, Michael Tokarev wrote: Current version of seabios is 1.6.3, released several weeks ago. Compared with the version currently shipped in qemu, it adds a few commits, most of which are fixes for qemu-related issues. Maybe it's not too late to update seabios to the latest r

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Anthony Liguori
On 11/21/2011 04:50 PM, Chris Wright wrote: * Peter Zijlstra (a.p.zijls...@chello.nl) wrote: On Mon, 2011-11-21 at 21:30 +0530, Bharata B Rao wrote: In the original post of this mail thread, I proposed a way to export guest RAM ranges (Guest Physical Address-GPA) and their corresponding host h

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Anthony Liguori
On 11/21/2011 11:03 AM, Peter Zijlstra wrote: On Mon, 2011-11-21 at 21:30 +0530, Bharata B Rao wrote: In the original post of this mail thread, I proposed a way to export guest RAM ranges (Guest Physical Address-GPA) and their corresponding host host virtual mappings (Host Virtual Address-HVA)

[Qemu-devel] [PATCH][V2] Can't screendump without a console

2011-11-21 Thread Cao,Bing Bu
When usinge "-vga none -nographic" option. There is no any text and graphic console created in this case. screen dump not supported without console. Signed-off-by: Cao,Bing Bu --- console.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index

Re: [Qemu-devel] [PATCH for v1.0 0/3] msix: fixes for 1.0

2011-11-21 Thread Anthony Liguori
On 11/21/2011 10:56 AM, Michael S. Tsirkin wrote: This fixes bugs dealing with msi-x mask bits pointed out by Jan Kiszka. Applied. Thanks. Regards, Anthony Liguori Jan Kiszka (1): msix: Prevent bogus mask updates on MMIO accesses Michael S. Tsirkin (2): msix: track function masked

Re: [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags

2011-11-21 Thread Anthony Liguori
On 11/20/2011 06:54 PM, Max Filippov wrote: Add check for the EFD_NONBLOCK and EFD_CLOEXEC flags to the CONFIG_EVENTFD test. This fixes the following build failure on Fedora 9: CCevent_notifier.o event_notifier.c: In function `event_notifier_init': event_notifier.c:21: error

Re: [Qemu-devel] [PATCH] Include zlib.h using #include <>

2011-11-21 Thread Anthony Liguori
On 11/20/2011 05:34 AM, Stefan Weil wrote: zlib.h is not a local include file, therefore it should be included using<> instead of "". Signed-off-by: Stefan Weil Applied. Thanks. Regards, Anthony Liguori --- block/vmdk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

Re: [Qemu-devel] [PATCH v8 1.0] configure: build position independent executables on x86-Linux hosts

2011-11-21 Thread Anthony Liguori
On 11/15/2011 12:12 PM, Avi Kivity wrote: Change the default on x86 Linux hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation sections to read-only (relro) when available; this

[Qemu-devel] [FYI] Need to do a full rebuild if you are on Linux x86 host

2011-11-21 Thread Anthony Liguori
Due to this commit: commit 40d6444e91c6ab17e5e8ab01d4eece90cbc4afed Author: Avi Kivity Date: Tue Nov 15 20:12:17 2011 +0200 configure: build position independent executables on x86-Linux hosts PIE binaries cannot be linked with non-PIE binaries and make is not smart enough to rebuild wh

Re: [Qemu-devel] [PATCH] ivshmem: fix PCI BAR2 registration during initialization

2011-11-21 Thread Anthony Liguori
On 11/21/2011 04:56 AM, zanghongy...@huawei.com wrote: From: Hongyong Zang Ivshmem cannot work, and the command lspci cannot show ivshmem BAR2 in the guest. As for pci_register_bar(), parameter MemoryRegion should be s->bar instead of s->ivshmem. Signed-off-by: Hongyong Zang Applied. Thank

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Chubb
> "Peter" == Peter Maydell writes: Peter> On 21 November 2011 23:54, Peter Chubb Peter> wrote: >> Do you have a suggestion for an alternative to hw_error for guest >> bad behaviour?  It seems to be used historically.  For emulating >> ARM, causing qemu to stop isn't such a bad idea ... the g

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Maydell
On 22 November 2011 00:27, Peter Chubb wrote: >> "Peter" == Peter Maydell writes: > > Peter> On 21 November 2011 23:54, Peter Chubb > Peter> wrote: >>> Do you have a suggestion for an alternative to hw_error for guest >>> bad behaviour?  It seems to be used historically.  For emulating >>> A

Re: [Qemu-devel] [PATCH 1.0 0/2] Fix compilation of 9pfs on old systems

2011-11-21 Thread Anthony Liguori
On 11/18/2011 10:35 AM, Paolo Bonzini wrote: Old systems do not have AT_REMOVEDIR, and 9pfs fails to compile on them. Patch 2 fixes that, patch 1 actually let me test it on Linux. :) Probably the same push-down should be done also for open(2) flags, for consistency. For example, some systems m

Re: [Qemu-devel] [PATCH 1/5] migrate: add migration blockers

2011-11-21 Thread Anthony Liguori
On 11/14/2011 03:09 PM, Anthony Liguori wrote: This lets different subsystems register an Error that is thrown whenever migration is attempted. This works nicely because it gracefully supports things like hotplug. Right now, if multiple errors are registered, only one of them is reported. I exp

Re: [Qemu-devel] [PULL 1.0 0/5] Trivial patches for 11 to 17 November 2011

2011-11-21 Thread Anthony Liguori
On 11/17/2011 07:03 AM, Stefan Hajnoczi wrote: These bug fixes and documentation fixes are suitable for 1.0. The purely internal trivial patches are being queued up for 1.1 in the trivial-patches-next tree. The following changes since commit 3f5bd4e1b874590d3d76e031530799a4610da6dc: Update

Re: [Qemu-devel] [PULL 0/5]: QMP patches for 1.0

2011-11-21 Thread Anthony Liguori
On 11/17/2011 11:18 AM, Luiz Capitulino wrote: Anthony, This pull contains a fix for the enum type handling plus Michael's Makefile fixes. Pulled. Thanks. Regards, Anthony Liguori The changes (since 3f5bd4e1b874590d3d76e031530799a4610da6dc) are available in the following repository:

Re: [Qemu-devel] [PATCH] [ARM] fix function names in error messages in arm_timer.c

2011-11-21 Thread Peter Chubb
Fix names of functions in error messages: as suggested by Andreas Färber, use the C99 standard __func__ macro to get the correct name. This fixes one real bug (the message used to print sp804 instead of icp_pit), the other changes are cosmetic. Signed-off-by: Peter Chubb --- hw/arm_timer.c |

Re: [Qemu-devel] [PULL 0/9] Block patches for 1.0

2011-11-21 Thread Anthony Liguori
On 11/18/2011 08:03 AM, Kevin Wolf wrote: The following changes since commit 3f5bd4e1b874590d3d76e031530799a4610da6dc: Update version to 1.0-rc2 (2011-11-14 11:26:32 -0600) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Pulled. Thanks. Regards, An

Re: [Qemu-devel] [PULL v2 1.0] usb patch queue

2011-11-21 Thread Anthony Liguori
On 11/21/2011 10:15 AM, Gerd Hoffmann wrote: Hi, This pull fixes SYNCRONIZE_CACHE handling in usb-storage code. The SYNCRONIZE_CACHE scsi command is different from all other ones: It doesn't transfer any data, but still doesn't complete instantly. usb-storage failes to handle this case corre

[Qemu-devel] [ANNOUNCE] QEMU 1.0-rc3

2011-11-21 Thread Anthony Liguori
Hi, On behalf of the QEMU Team, I'd like to announce the availability of QEMU 1.0, release candidate 3. This is the third release candidate for the 1.0 release. This is not intended for production use but rather for testing. To participate in the testing effort, please read the Testing Wiki[

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Maydell
On 21 November 2011 23:54, Peter Chubb wrote: > Do you have a suggestion for an alternative to hw_error for guest bad > behaviour?  It seems to be used historically.  For emulating ARM, > causing qemu to stop isn't such a bad idea ... the guest does > something wrong and the qemu instance dies wit

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Chubb
Thanks Peter, I'll split the patches and resubmit. It'll probably be tomorrow or Thursday. Do you have a suggestion for an alternative to hw_error for guest bad behaviour? It seems to be used historically. For emulating ARM, causing qemu to stop isn't such a bad idea ... the guest does somethin

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Maydell
On 21 November 2011 21:58, Peter Chubb wrote: > Hi Peter, >   Please find appended a patch containing initial support for the >   FreeScale i.MX31 and the KZM Arm11 evaluation board. > >   The implementation was originally written by Hans Jang and Adam >   Clench of OK-Labs; I've updated it to the

[Qemu-devel] [Bug 893367] Re: HPET supports only one IRQ

2011-11-21 Thread Julian Stecklina
The offending code seems to be: /* advertise availability of ioapic inti2 */ timer->config |= 0x0004ULL << 32; in hw/hpet.c hpet_reset(). -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.ne

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Maydell
On 21 November 2011 23:04, Peter Chubb wrote: >> "Andreas" == Andreas Färber writes: >>> ??? Save/restore.  */ > > Andreas> What does this comment tell us? :) > > Dunno.  It was in the codebase I got; I think it means that save and > restore aren't implemented yet. I think what Andreas is t

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Chubb
> "Andreas" == Andreas Färber writes: Andreas> Hi Peter, Am 21.11.2011 22:58, schrieb Peter Chubb: >> Hi Peter, Please find appended a patch containing initial support >> for the FreeScale i.MX31 and the KZM Arm11 evaluation board. Andreas> Your patch format is a bit unusual. Andreas> Pleas

Re: [Qemu-devel] [PATCH] [ARM] Fix sp804 dual-timer

2011-11-21 Thread Andreas Färber
Am 21.11.2011 23:05, schrieb Peter Chubb: > Hi Peter, >Here's a fixed patch for the sp804 timer. > > Properly implement the dual-timer read/write for the sp804 dual timer module. > Based on ARM specs at > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html > > Sign

Re: [Qemu-devel] qemu & kernel :address generated are non-uniform

2011-11-21 Thread sparsh mittal
Thanks for the answer. For right now, I am OK with this, since I realized that cache access is uniform (cache sets are calculated by modulo) and my work concerns with cache. Still, I am happy to know that it is expected thing and not unexpected. Also I have one very important question and I would

[Qemu-devel] [Bug 893367] [NEW] HPET supports only one IRQ

2011-11-21 Thread Julian Stecklina
Public bug reported: The emulated HPET only supports triggering IRQ 2. Since MSIs are by default disabled, this severely limits the usefulness of the HPET as only one timer block can effectively be used (otherwise they would share IRQ 2). Ideally, the HPET should support as much timer blocks as CP

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Chris Wright
* Peter Zijlstra (a.p.zijls...@chello.nl) wrote: > On Mon, 2011-11-21 at 21:30 +0530, Bharata B Rao wrote: > > > > In the original post of this mail thread, I proposed a way to export > > guest RAM ranges (Guest Physical Address-GPA) and their corresponding host > > host virtual mappings (Host Vir

Re: [Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Andreas Färber
Hi Peter, Am 21.11.2011 22:58, schrieb Peter Chubb: > Hi Peter, >Please find appended a patch containing initial support for the >FreeScale i.MX31 and the KZM Arm11 evaluation board. Your patch format is a bit unusual. Please don't include personal messages in the description, keep it in

Re: [Qemu-devel] [PATCH] [ARM] Fix sp804 dual-timer

2011-11-21 Thread Peter Chubb
Hi Peter, Here's a fixed patch for the sp804 timer. Properly implement the dual-timer read/write for the sp804 dual timer module. Based on ARM specs at http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html Signed-off-by: Peter Chubb Signed-off-by: David Mirabito Sig

[Qemu-devel] [PATCH] imx.31 and KZM board support

2011-11-21 Thread Peter Chubb
Hi Peter, Please find appended a patch containing initial support for the FreeScale i.MX31 and the KZM Arm11 evaluation board. The implementation was originally written by Hans Jang and Adam Clench of OK-Labs; I've updated it to the current qdev and memory region paradigms and imple

[Qemu-devel] updating seabios to current release?

2011-11-21 Thread Michael Tokarev
Current version of seabios is 1.6.3, released several weeks ago. Compared with the version currently shipped in qemu, it adds a few commits, most of which are fixes for qemu-related issues. Maybe it's not too late to update seabios to the latest released version in order to incorporate all the f

Re: [Qemu-devel] [PATCHES for 1.0] various spice usb-redir integration patches

2011-11-21 Thread Anthony Liguori
On 11/19/2011 03:22 AM, Hans de Goede wrote: Hi All, Sorry for sending these in so late, I send most of them in before a long time ago, but then they got stuck on waiting for the big chardev rewrite. Since it seems clear now that the big chardev rewrite won't happen before 1.0, I would like to g

Re: [Qemu-devel] [PATCH 1.0] 9pfs: improve portability to older systems

2011-11-21 Thread Anthony Liguori
On 11/21/2011 02:29 AM, Paolo Bonzini wrote: Small requirements on "new" features have percolated to virtio-9p-local.c. In particular, the utimensat wrapper actually only supports dirfd = AT_FDCWD and flags = AT_SYMLINK_NOFOLLOW in the fallback code. Remove the arguments so that virtio-9p-local.

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-21 Thread Anthony Liguori
On 11/20/2011 08:53 AM, Avi Kivity wrote: On 11/18/2011 04:54 PM, Anthony Liguori wrote: Thinking more about it, I think this entire line of thinking is wrong (including mine) :-) The problem you're trying to solve is that the RTC fires two 1 second timers regardless of whether the guest is re

Re: [Qemu-devel] KVM call agenda for Novemeber 22

2011-11-21 Thread Anthony Liguori
On 11/21/2011 10:00 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. I'm technical on holiday this week so I won't be attending. But as an FYI, I ran across seccomp-nurse[1] this weekend. It more or less let's you write a python program to impleme

Re: [Qemu-devel] [PATCH] bsd_user: Fix potential null pointer dereference

2011-11-21 Thread Stefan Weil
Am 21.11.2011 20:49, schrieb Peter Maydell: On 21 November 2011 19:41, Stefan Weil wrote: This bug was spotted by cppcheck. Using g_try_malloc0 (as does the linux-user code) fixes this. Signed-off-by: Stefan Weil Oh look, another bug in bsd-user it wouldn't have if it shared code with linux-

[Qemu-devel] [PATCH v2] bsd_user: Fix potential null pointer dereference

2011-11-21 Thread Stefan Weil
This bug was spotted by cppcheck. Using g_try_malloc0 (as does the linux-user code) fixes this. v2: Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint. Signed-off-by: Stefan Weil --- bsd-user/bsdload.c |2 +- bsd-user/elfload.c |5 ++--- 2 files changed, 3 insertions(+

Re: [Qemu-devel] [PATCH] bsd_user: Fix potential null pointer dereference

2011-11-21 Thread Peter Maydell
On 21 November 2011 19:41, Stefan Weil wrote: > This bug was spotted by cppcheck. > > Using g_try_malloc0 (as does the linux-user code) fixes this. > > Signed-off-by: Stefan Weil Oh look, another bug in bsd-user it wouldn't have if it shared code with linux-user :-) >  bsd-user/elfload.c |    5

[Qemu-devel] [PATCH] bsd_user: Fix potential null pointer dereference

2011-11-21 Thread Stefan Weil
This bug was spotted by cppcheck. Using g_try_malloc0 (as does the linux-user code) fixes this. Signed-off-by: Stefan Weil --- bsd-user/elfload.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 1ef1f97..124 100644 --

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Peter Zijlstra
On Mon, 2011-11-21 at 20:03 +0200, Avi Kivity wrote: > > Does ms_mbind() require that its vmas in its area be completely > contained in the region, or does it split vmas on demand? I suggest the > latter to avoid exposing implementation details. as implemented (which is still rather incomplete)

[Qemu-devel] [PATCH] pseries: Fix possible out-of-bounds error

2011-11-21 Thread Stefan Weil
PCI_NUM_REGIONS is 7, ARRAY_SIZE(bars) is 6. Either bars must be extended by a 7th array element, or the loop which reads bars[i] must terminate before it tries to read bars[6]. For dev->io_regions[6].size == 0, the old code also works, but it is not obvious whether this is always true. This bug

Re: [Qemu-devel] [PATCH 1/4] configure: Don't mix glib and libcheck tests

2011-11-21 Thread Paolo Bonzini
On 11/21/2011 06:09 PM, Luiz Capitulino wrote: test-coroutine is listed as a libcheck test in the 'checks' variable. This is not right because 'make check' won't run test-coroutine if libcheck tests are not enabled (either because libcheck isn't detected or because --disable-check-utests is passe

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Avi Kivity
On 11/21/2011 05:25 PM, Peter Zijlstra wrote: > On Mon, 2011-11-21 at 20:48 +0530, Bharata B Rao wrote: > > > I looked at Peter's recent work in this area. > > (https://lkml.org/lkml/2011/11/17/204) > > > > It introduces two interfaces: > > > > 1. ms_tbind() to bind a thread to a memsched(*) grou

Re: [Qemu-devel] [TestDays] s390x emulation error

2011-11-21 Thread Andreas Färber
Am 18.11.2011 16:33, schrieb Alexander Graf: > > On 10.11.2011, at 10:32, Andreas Färber wrote: > >> Am 09.11.2011 23:53, schrieb Andreas Färber: >>> I get the following error: >>> >>> $ s390x-softmmu/qemu-system-s390x >>> qemu-system-s390x: Guest moved used index from 0 to 47802 >> >> Now with -

[Qemu-devel] [PATCH 4/4] rtc: clear non-PF bits when reinjecting on ack

2011-11-21 Thread Paolo Bonzini
When an rtc interrupt is reinjected immediately after being acked, other interrupts should not be reinjected, so do clear their bits. Also, if the periodic interrupts have been disabled before acking, do not reinject, as the guest might get very confused! Signed-off-by: Paolo Bonzini --- hw/mc1

[Qemu-devel] [PATCH 1/4] rtc: fix 12-hour mode

2011-11-21 Thread Paolo Bonzini
Hours in 12-hour mode are in the 1-12 range, not 0-11. Signed-off-by: Paolo Bonzini --- hw/mc146818rtc.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 2aaca2f..14c8cb9 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rt

Re: [Qemu-devel] [PATCH 1/4] configure: Don't mix glib and libcheck tests

2011-11-21 Thread Andreas Färber
Am 21.11.2011 18:09, schrieb Luiz Capitulino: > test-coroutine is listed as a libcheck test in the 'checks' variable. This > is not right because 'make check' won't run test-coroutine if libcheck > tests are not enabled (either because libcheck isn't detected or because > --disable-check-utests is

[Qemu-devel] [PATCH 3/4] rtc: raise PF bit when the periodic timer triggers but PIE=0

2011-11-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/mc146818rtc.c |4 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index a5c533b..b942ce2 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -179,8 +179,9 @@ static void rtc_periodic_timer(void *opa

[Qemu-devel] [PATCH 2/4] rtc: raise AF bit when the alarm is encountered but AIE=0

2011-11-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/mc146818rtc.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 14c8cb9..a5c533b 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -427,16 +427,17 @@ static void rtc_updat

[Qemu-devel] [PATCH 0/4] Fixes to the rtc device model

2011-11-21 Thread Paolo Bonzini
Here are a bunch of fixes for the rtc that I found while reading the code. Might be for 1.0 or 1.1, at your choice. I also have a fix for at least one relatively important bug: when writing register B unmasks a pending interrupt, the IRQ line should be raised. However, the fix is a bit invasive s

[Qemu-devel] [PATCH 1/4] configure: Don't mix glib and libcheck tests

2011-11-21 Thread Luiz Capitulino
test-coroutine is listed as a libcheck test in the 'checks' variable. This is not right because 'make check' won't run test-coroutine if libcheck tests are not enabled (either because libcheck isn't detected or because --disable-check-utests is passed). Tests using the glib test framework are inde

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-21 Thread Oliver Hookins
On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: > Takuya Yoshikawa wrote: > > Adding qemu-devel ML to CC. > > > > Your question should have been sent to qemu-devel ML because the logic > > is implemented in QEMU, not KVM. > > > > (2011/11/11 1:35), Oliver Hookins wrote: > >> Hi,

[Qemu-devel] [PATCH 4/7] usb-storage: drop result from device state.

2011-11-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb-msd.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 089c23c..6f32a0e 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -59,7 +59,6 @@ typedef struct { char *serial; SCSIDevice *scsi_dev

[Qemu-devel] [PATCH 2/4] Introduce test-qmp-output-visitor

2011-11-21 Thread Luiz Capitulino
Contains unit-tests for the QMP output visitor implementation. Signed-off-by: Luiz Capitulino --- Makefile |4 + configure |2 +- qapi-schema-test.json |6 + test-qmp-output-visitor.c | 423 + 4 files c

[Qemu-devel] [PULL v2 1.0] usb patch queue

2011-11-21 Thread Gerd Hoffmann
Hi, This pull fixes SYNCRONIZE_CACHE handling in usb-storage code. The SYNCRONIZE_CACHE scsi command is different from all other ones: It doesn't transfer any data, but still doesn't complete instantly. usb-storage failes to handle this case correctly, resulting in all sorts of funky assert fai

Re: [Qemu-devel] [PATCH 8/8] usb-linux: fix /proc/bus/usb/devices scan

2011-11-21 Thread Markus Armbruster
Gerd Hoffmann writes: > Commit 0c402e5abb8c2755390eee864b43a98280fc2453 is incomplete > and misses one of the two function pointer calls in > usb_host_scan_dev(). Add the additional port handling logic > to the other call too. > > Spotted by Coverity. > > Cc: Markus Armbruster > Signed-off-by:

Re: [Qemu-devel] [PATCH 7/7] usb-linux: fix /proc/bus/usb/devices scan

2011-11-21 Thread Markus Armbruster
Gerd Hoffmann writes: > Commit 0c402e5abb8c2755390eee864b43a98280fc2453 is incomplete > and misses one of the two function pointer calls in > usb_host_scan_dev(). Add the additional port handling logic > to the other call too. > > Spotted by Coverity. > > Cc: Markus Armbruster > Signed-off-by:

[Qemu-devel] [PATCH 1.1 0/4]: Improve QMP visitor unit-tests

2011-11-21 Thread Luiz Capitulino
This series introduces two new test programs: test-qmp-output-visitor and test-qmp-input-visitor. As their names suggest, they contain unit-tests to check QMP's Visitor implementation. They supersede the test-visitor program (which is dropped by this series). Besides adding new unit-tests, I've _

[Qemu-devel] [PATCH 3/4] Introduce test-qmp-input-visitor

2011-11-21 Thread Luiz Capitulino
Contains unit-tests for the QMP input visitor implementation. Signed-off-by: Luiz Capitulino --- Makefile |4 + configure|2 +- test-qmp-input-visitor.c | 270 ++ 3 files changed, 275 insertions(+), 1 deletions(

[Qemu-devel] [PATCH 1/7] usb-storage: move status debug message to usb_msd_send_status.

2011-11-21 Thread Gerd Hoffmann
usb_msd_send_status can be called from different code paths, move the debug message into the function to make sure it is printed unconditionally. Signed-off-by: Gerd Hoffmann --- hw/usb-msd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c

[Qemu-devel] [PATCH 4/4] Drop test-visitor

2011-11-21 Thread Luiz Capitulino
It has been superseded by the two previous commits, which introduced the test-qmp-output-visitor and test-qmp-input-visitor tests. Signed-off-by: Luiz Capitulino --- Makefile |5 +- test-visitor.c | 338 2 files changed, 1 inser

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Peter Zijlstra
On Mon, 2011-11-21 at 21:30 +0530, Bharata B Rao wrote: > > In the original post of this mail thread, I proposed a way to export > guest RAM ranges (Guest Physical Address-GPA) and their corresponding host > host virtual mappings (Host Virtual Address-HVA) from QEMU (via QEMU monitor). > The idea

Re: [Qemu-devel] [PATCH v2 0/9] qcow2: Fix error paths for internal snapshots

2011-11-21 Thread Stefan Hajnoczi
On Fri, Nov 18, 2011 at 6:28 PM, Kevin Wolf wrote: > Kevin Wolf (9): >  qcow2: Return real error code in qcow2_read_snapshots >  qcow2: Return real error code in qcow2_write_snapshots >  qcow2: Update snapshot table information at once >  qcow2: Cleanups and memleak fix in qcow2_snapshot_create >

[Qemu-devel] [PATCH for v1.0 3/3] msix: avoid mask updates if mask is unchanged

2011-11-21 Thread Michael S. Tsirkin
Check pending bit only if vector mask status changed. This is not really important for qemu.git but helps fix a bug in qemu-kvm.git. Signed-off-by: Michael S. Tsirkin --- hw/msix.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/hw/msix.c b/h

[Qemu-devel] [PATCH for v1.0 2/3] msix: Prevent bogus mask updates on MMIO accesses

2011-11-21 Thread Michael S. Tsirkin
>From: Jan Kiszka Only accesses to the MSI-X table must trigger a call to msix_handle_mask_update, otherwise the vector value might be out of range. Signed-off-by: Jan Kiszka Signed-off-by: Michael S. Tsirkin --- hw/msix.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH for v1.0 1/3] msix: track function masked in pci device state

2011-11-21 Thread Michael S. Tsirkin
Only go over the table when function is masked. This is not really important for qemu.git but helps fix a bug in qemu-kvm.git. Signed-off-by: Michael S. Tsirkin --- hw/msix.c | 21 ++--- hw/pci.h |2 ++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/hw/msi

[Qemu-devel] [PATCH for v1.0 0/3] msix: fixes for 1.0

2011-11-21 Thread Michael S. Tsirkin
This fixes bugs dealing with msi-x mask bits pointed out by Jan Kiszka. Jan Kiszka (1): msix: Prevent bogus mask updates on MMIO accesses Michael S. Tsirkin (2): msix: track function masked in pci device state msix: avoid mask updates if mask is unchanged hw/msix.c | 48

[Qemu-devel] [PATCH 7/7] usb-linux: fix /proc/bus/usb/devices scan

2011-11-21 Thread Gerd Hoffmann
Commit 0c402e5abb8c2755390eee864b43a98280fc2453 is incomplete and misses one of the two function pointer calls in usb_host_scan_dev(). Add the additional port handling logic to the other call too. Spotted by Coverity. Cc: Markus Armbruster Signed-off-by: Gerd Hoffmann --- usb-linux.c |7 +

Re: [Qemu-devel] [PATCH v2 5/9] qcow2: Rework qcow2_snapshot_create error handling

2011-11-21 Thread Stefan Hajnoczi
On Fri, Nov 18, 2011 at 6:29 PM, Kevin Wolf wrote: > +    /* > +     * Increase the refcounts of all clusters and make sure everything is > +     * stable on disk before updating the snapshot table to contain a pointer > +     * to the new L1 table. > +     */ > +    ret = qcow2_update_snapshot_re

[Qemu-devel] [PATCH 3/7] usb-storage: drop tag from device state.

2011-11-21 Thread Gerd Hoffmann
scsi keeps track of the tag in SCSIRequest, no need to store a separate copy. Signed-off-by: Gerd Hoffmann --- hw/usb-msd.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 5dc4afc..089c23c 100644 --- a/hw/usb-msd.c +++ b/hw/u

[Qemu-devel] [PATCH 2/7] usb-storage: fill status in complete callback.

2011-11-21 Thread Gerd Hoffmann
Put status word into device state, fill it in command_complete, have usb_msd_send_status just send it out. Signed-off-by: Gerd Hoffmann --- hw/usb-msd.c | 38 +- 1 files changed, 21 insertions(+), 17 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c ind

[Qemu-devel] [PATCH 5/7] usb-storage: don't try to send the status early.

2011-11-21 Thread Gerd Hoffmann
Until recently all scsi commands sent to scsi-disk did either transfer data or finished instantly. The correct implementation of SYNCRONIZE_CACHE changed the picture though, and usb-storage needs a fix to handle that case correctly. --- hw/usb-msd.c | 16 ++-- 1 files changed, 10 in

[Qemu-devel] [PATCH 6/7] ehci: add assert

2011-11-21 Thread Gerd Hoffmann
Coverity thinks q could be NULL there and warns. I believe it can't be NULL there. Add assert to prove it. Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index cdd5aae..3eea94d 100644 --- a/hw/

[Qemu-devel] KVM call agenda for Novemeber 22

2011-11-21 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Later, Juan.

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Bharata B Rao
On Mon, Nov 21, 2011 at 04:25:26PM +0100, Peter Zijlstra wrote: > On Mon, 2011-11-21 at 20:48 +0530, Bharata B Rao wrote: > > > I looked at Peter's recent work in this area. > > (https://lkml.org/lkml/2011/11/17/204) > > > > It introduces two interfaces: > > > > 1. ms_tbind() to bind a thread to

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Peter Zijlstra
On Mon, 2011-11-21 at 20:48 +0530, Bharata B Rao wrote: > I looked at Peter's recent work in this area. > (https://lkml.org/lkml/2011/11/17/204) > > It introduces two interfaces: > > 1. ms_tbind() to bind a thread to a memsched(*) group > 2. ms_mbind() to bind a memory region to memsched group >

[Qemu-devel] [PATCH 5/8] scsi-disk: don't call scsi_req_complete twice.

2011-11-21 Thread Gerd Hoffmann
In case the guest sends a SYNCHRONIZE_CACHE command scsi_req_complete() is called twice: Once because there is no data to transfer and scsi-disk thinks it is done with the command, and once when the flush is actually finished ... Signed-off-by: Gerd Hoffmann --- hw/scsi-disk.c |5 +++-- 1 f

[Qemu-devel] [PATCH 3/8] usb-storage: drop tag from device state.

2011-11-21 Thread Gerd Hoffmann
scsi keeps track of the tag in SCSIRequest, no need to store a separate copy. Signed-off-by: Gerd Hoffmann --- hw/usb-msd.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 5dc4afc..089c23c 100644 --- a/hw/usb-msd.c +++ b/hw/u

Re: [Qemu-devel] [RFC PATCH] Exporting Guest RAM information for NUMA binding

2011-11-21 Thread Bharata B Rao
On Tue, Nov 08, 2011 at 09:33:04AM -0800, Chris Wright wrote: > * Alexander Graf (ag...@suse.de) wrote: > > On 29.10.2011, at 20:45, Bharata B Rao wrote: > > > As guests become NUMA aware, it becomes important for the guests to > > > have correct NUMA policies when they run on NUMA aware hosts. > >

[Qemu-devel] [PATCH V3 11/13] hw/9pfs: Documentation changes related to proxy fs

2011-11-21 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- qemu-options.hx | 25 - 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 681eaf1..cde17ed 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -530,19 +530,

[Qemu-devel] [PATCH 8/8] usb-linux: fix /proc/bus/usb/devices scan

2011-11-21 Thread Gerd Hoffmann
Commit 0c402e5abb8c2755390eee864b43a98280fc2453 is incomplete and misses one of the two function pointer calls in usb_host_scan_dev(). Add the additional port handling logic to the other call too. Spotted by Coverity. Cc: Markus Armbruster Signed-off-by: Gerd Hoffmann --- usb-linux.c |7 +

[Qemu-devel] [PATCH V3 03/13] hw/9pfs: Add new proxy filesystem driver

2011-11-21 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add new proxy filesystem driver to add root privilege to qemu process. It needs a helper process to be started by root user. Following command line can be used to utilize proxy filesystem driver -virtfs proxy,id=,mount_tag=,socket_fd= Signed-off-by: M. Mohan Kumar --- M

[Qemu-devel] [PATCH V3 00/13] Proxy FS driver for VirtFS

2011-11-21 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access

[Qemu-devel] [PATCH V3 12/13] hw/9pfs: man page for proxy helper

2011-11-21 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- Makefile | 12 +++- fsdev/virtfs-proxy-helper.texi | 59 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 fsdev/virtfs-proxy-helper.texi diff --g

  1   2   >