[Qemu-devel] [PATCH 2/2] [RFC] ARMv7: Support for simplified access permissions checking

2010-01-24 Thread Bahadir Balban
ARMv7 has a simplified access permissions model that is enabled by setting the AFE bit of the SCTLR. This patch adds checking for permission values for when this mode is selected. Signed-off-by: Bahadir Balban --- target-arm/helper.c | 50 -- 1 f

[Qemu-devel] [PATCH 1/2] [RFC] ARMv7: Enable hardware management of access flags

2010-01-24 Thread Bahadir Balban
ARMv7 SCTLR bit 17 enables hardware management of access flags where the hardware sets AP0 bit of a section or second level table entry upon first access and does not generate a fault. This patch is an update to earlier patch taking into account different types of page table descriptors when setti

Re: [Qemu-devel] QEMU support for ARM security features / TrustZone

2010-01-24 Thread Juha.Riihimaki
On Jan 22, 2010, at 14:01, ext leic...@informatik.uni-frankfurt.de wrote: > I found that QEMU emulates ARM Cortex-8 which in hardware have Trustzone > support. It is unclear to me if this is the case in the version that QEMU > emulates. ARM TrustZone features are currently not emulated. Regard

[Qemu-devel] Re: MBR has broken by the installer on qemu-system-ppc

2010-01-24 Thread MICHIMURA Tadao
Hi, (2009/12/28 16:54), MICHIMURA Tadao wrote: (2009/12/26 0:52), Alexander Graf wrote: ..snip > The easiest way around this is usually to kpartx or "rescue disk" into > the image, grab the kernel and initrd and run qemu-system with -kernel > and -initrd. Those definitely do work :-). I will

[Qemu-devel] [PATCH] win32: pair qemu_memalign() with qemu_vfree()

2010-01-24 Thread Herve Poussineau
Win32 suffers from a very big memory leak when dealing with SCSI devices. Each read/write request allocates memory with qemu_memalign (ie VirtualAlloc) but frees it with qemu_free (ie free). Pair all qemu_memalign() calls with qemu_vfree() to prevent such leaks. Signed-off-by: Herve Poussineau --

[Qemu-devel] [PATCH] win32: use PRId64 instead of %lld

2010-01-24 Thread Herve Poussineau
Replace %lld occurrences by PRId64. Incidentally, this fixes use of curl on Windows, and prevents an assert when closing Qemu. Signed-off-by: Herve Poussineau --- block/curl.c | 10 +- block/qcow2.c |2 +- hw/vga.c |2 +- json-lexer.c

[Qemu-devel] Re: [PATCH, RESEND] usb: increase buffer for USB control requests

2010-01-24 Thread Michael S. Tsirkin
On Sun, Jan 24, 2010 at 05:34:52PM +0100, Christian Krause wrote: > Resend. The patch was already sent to the list on 2009-12-11. It would > be great if it could be reviewed and applied. Thank you very much > in advance. > > The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large > usb contro

[Qemu-devel] [PATCH] win32/sdl: Fix toggle full screen

2010-01-24 Thread Herve Poussineau
Toggle full screen on Win32/SDL 1.2.13 was broken by commit c18a2c360e3100bbd71162cf922dcd8c429a8b71. Re-add the call to do_sdl_resize() which was removed in this revision Signed-off-by: Herve Poussineau --- sdl.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sdl.c b/

[Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'

2010-01-24 Thread acrux
On a powerpc32 (Apple G4) system: gnu/linux distribution: CRUX PPC 2.6 (32bit) toolchain: binutils-2.20, gcc-4.4.3, glibc-2.11 kernel: linux-2.6.32.5 [...] ARmips64el-softmmu/libqemu.a LINK mips64el-softmmu/qemu-system-mips64el GEN config-target.h GEN ppc-softmmu/qemu-options.h

[Qemu-devel] [PATCH] pflash: Buffer block writes

2010-01-24 Thread Edgar E. Iglesias
Hi, Does anyone disagree or have any comments on this? Thanks, Edgar commit 9029c47f883306bc75afe881a08504e9b906485f Author: Edgar E. Iglesias Date: Sun Jan 24 20:38:29 2010 +0100 pflash: Buffer block writes Buffer block writes to avoid flushing every word access onto backing

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Jamie Lokier
Anthony Liguori wrote: > >I'd like to be able to connect and be sure not to receive any async > >messages, from simple scripts with simple output parsing. > > You can't have simple output parsing with QMP. You need a full JSON > stack. The simplest script would be a python script that uses the

[Qemu-devel] [PATCH, RESEND] usb: increase buffer for USB control requests

2010-01-24 Thread Christian Krause
Resend. The patch was already sent to the list on 2009-12-11. It would be great if it could be reviewed and applied. Thank you very much in advance. The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large usb control transfers of more than 2048 bytes which won't fit into the buffer of the ctr

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Anthony Liguori
On 01/24/2010 05:07 AM, Jamie Lokier wrote: Avi Kivity wrote: On 01/22/2010 08:05 PM, Anthony Liguori wrote: On 01/21/2010 03:09 PM, Luiz Capitulino wrote: This commit disables asynchronous messages by default and introduces two new QMP commands: async_msg_enable and async_ms

Re: [Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Anthony Liguori
On 01/24/2010 09:04 AM, Avi Kivity wrote: On 01/24/2010 04:22 PM, Anthony Liguori wrote: This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). I've removed the default device bits from the series as i

Re: [Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Anthony Liguori
On 01/24/2010 09:00 AM, Avi Kivity wrote: On 01/24/2010 04:22 PM, Anthony Liguori wrote: This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). Would be nice, in addition, to load per-user configuratio

Re: [Qemu-devel] Re: [PATCH 1/3] Support --sysconfdir in configure to specify path to configuration files (v3)

2010-01-24 Thread Anthony Liguori
On 01/24/2010 08:45 AM, Paolo Bonzini wrote: On 01/24/2010 03:22 PM, Anthony Liguori wrote: The default value is ${prefix}/etc/qemu. --sysconfdir can be used to override the default to an absolute path. The expectation is that when installed to /usr, --sysconfdir=/etc/qemu will be used. Sig

Re: [Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Paolo Bonzini
On 01/24/2010 04:04 PM, Avi Kivity wrote: On 01/24/2010 04:22 PM, Anthony Liguori wrote: This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). I've removed the default device bits from the series as it r

Re: [Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Avi Kivity
On 01/24/2010 04:22 PM, Anthony Liguori wrote: This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). I've removed the default device bits from the series as it requires some more thought on how to best i

Re: [Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Avi Kivity
On 01/24/2010 04:22 PM, Anthony Liguori wrote: This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). Would be nice, in addition, to load per-user configuration from ~/.qemu/*.conf. -- error compi

[Qemu-devel] Re: [PATCH 1/3] Support --sysconfdir in configure to specify path to configuration files (v3)

2010-01-24 Thread Paolo Bonzini
On 01/24/2010 03:22 PM, Anthony Liguori wrote: The default value is ${prefix}/etc/qemu. --sysconfdir can be used to override the default to an absolute path. The expectation is that when installed to /usr, --sysconfdir=/etc/qemu will be used. Signed-off-by: Anthony Liguori --- v2 -> v3 - de

[Qemu-devel] [PATCH 0/4] Introduce global config (v3)

2010-01-24 Thread Anthony Liguori
This series introduces global config files stored in /etc/qemu. There is both a common config (qemu.conf) and a per-target config (target-.conf). I've removed the default device bits from the series as it requires some more thought on how to best integrate it. That makes this series rather simpl

[Qemu-devel] [PATCH 3/3] Load global config files by default (v3)

2010-01-24 Thread Anthony Liguori
A new option, -nodefconfig is introduced to prevent loading from the default config location. Otherwise, two configuration files will be searched for, qemu.conf and target-.conf. To ensure that the default configuration is overridden by a user specified config, we introduce a two stage option par

[Qemu-devel] [PATCH 2/3] Move out option lookup into a separate function

2010-01-24 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- vl.c | 72 +++-- 1 files changed, 43 insertions(+), 29 deletions(-) diff --git a/vl.c b/vl.c index e070ec9..e00ae0d 100644 --- a/vl.c +++ b/vl.c @@ -4658,6 +4658,46 @@ static int debugcon_parse(const

[Qemu-devel] [PATCH 1/3] Support --sysconfdir in configure to specify path to configuration files (v3)

2010-01-24 Thread Anthony Liguori
The default value is ${prefix}/etc/qemu. --sysconfdir can be used to override the default to an absolute path. The expectation is that when installed to /usr, --sysconfdir=/etc/qemu will be used. Signed-off-by: Anthony Liguori --- v2 -> v3 - default sysconfdir to ${prefix}/etc on unix, ${prefi

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Anthony Liguori
On 01/24/2010 08:17 AM, Avi Kivity wrote: On 01/24/2010 04:04 PM, Anthony Liguori wrote: I agree with that, but we can look at async messages as a baseline protocol capability (thus no negotiation required), and the new command only enabled individual messages. To be honest, I don't think th

Re: [Qemu-devel] [RFC] New API for asynchronous monitor commands

2010-01-24 Thread Avi Kivity
On 01/24/2010 04:01 PM, Anthony Liguori wrote: Instead of sending opaques everywhere (and having them correspond to different types in different cases), I would prefer it if the handle always accepted an AsyncCommandCompletion *. That makes it easier to follow the code, since there are no opaq

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Avi Kivity
On 01/24/2010 04:04 PM, Anthony Liguori wrote: I agree with that, but we can look at async messages as a baseline protocol capability (thus no negotiation required), and the new command only enabled individual messages. To be honest, I don't think there's really a need to mask individual mes

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Anthony Liguori
On 01/24/2010 04:34 AM, Avi Kivity wrote: On 01/22/2010 08:05 PM, Anthony Liguori wrote: On 01/21/2010 03:09 PM, Luiz Capitulino wrote: This commit disables asynchronous messages by default and introduces two new QMP commands: async_msg_enable and async_msg_disable. Each QMP Monitor has its ow

Re: [Qemu-devel] [RFC] New API for asynchronous monitor commands

2010-01-24 Thread Anthony Liguori
On 01/24/2010 04:59 AM, Avi Kivity wrote: On 01/22/2010 09:03 PM, Adam Litke wrote: +static void do_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, + const QDict *params) +{ +if (monitor_ctrl_mode(mon)) { +cmd->mhandler.cmd_async(mon, params, qm

[Qemu-devel] Re: [PATCH][STABLE] Musicpal: Fix descriptor walk in eth_send

2010-01-24 Thread malc
On Sun, 24 Jan 2010, Jan Kiszka wrote: > Commit 930c86820e introduced a regression to eth_send: eth_tx_desc_put > manipulates the host's tx descriptor copy before writing it back, but > two lines down the descriptor is evaluated again, leaving us with an > invalid next address if host and guest en

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Jamie Lokier
Avi Kivity wrote: > On 01/22/2010 08:05 PM, Anthony Liguori wrote: > >On 01/21/2010 03:09 PM, Luiz Capitulino wrote: > >>This commit disables asynchronous messages by default and > >>introduces two new QMP commands: async_msg_enable and > >>async_msg_disable. > >> > >>Each QMP Monitor has its own s

Re: [Qemu-devel] [RFC] New API for asynchronous monitor commands

2010-01-24 Thread Avi Kivity
On 01/22/2010 09:03 PM, Adam Litke wrote: +static void do_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, + const QDict *params) +{ +if (monitor_ctrl_mode(mon)) { +cmd->mhandler.cmd_async(mon, params, qmp_monitor_complete, mon); +} else { +

Re: [Qemu-devel] Re: [RFC] New API for asynchronous monitor commands

2010-01-24 Thread Avi Kivity
On 01/23/2010 01:17 AM, Anthony Liguori wrote: I like this a lot and I'd like to see us remove cmd_new in place of cmd_async. The conversion is pretty easy since we just have to add a cb(ret_data) to the end of synchronous functions. Luiz/Markus/Avi, what do ya'll think? Looks reasonable

[Qemu-devel] Re: [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Avi Kivity
On 01/21/2010 11:09 PM, Luiz Capitulino wrote: This commit disables asynchronous messages by default and introduces two new QMP commands: async_msg_enable and async_msg_disable. Each QMP Monitor has its own set of asynchronous messages, so for example, if QEMU is run with two QMP Monitors async

Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support

2010-01-24 Thread Avi Kivity
On 01/22/2010 08:05 PM, Anthony Liguori wrote: On 01/21/2010 03:09 PM, Luiz Capitulino wrote: This commit disables asynchronous messages by default and introduces two new QMP commands: async_msg_enable and async_msg_disable. Each QMP Monitor has its own set of asynchronous messages, so for exam

[Qemu-devel] Re: sparc solaris guest, hsfs_putpage: dirty HSFS page

2010-01-24 Thread Blue Swirl
On Sun, Jan 24, 2010 at 2:02 AM, Artyom Tarasenko wrote: > All solaris versions which currently boot (from cd) regularly produce buckets > of > "hsfs_putpage: dirty HSFS page" messages. > > High Sierra is a pretty old and stable stuff, so it is possible that > the code is similar to OpenSolaris.

[Qemu-devel] Re: [PATCH] Musicpal: Fix wm8750 I2C address

2010-01-24 Thread Jan Kiszka
Jan Kiszka wrote: > Commit b3a219883e uncovered that we attached the Wolfson with an I2C > address shifted left by one. Fixing this makes sound work again for > the Musicpal. Please merge into stable as well so that 0.12.3 will have a working Musicpal again. Thanks, Jan > > Signed-off-by: Jan K

[Qemu-devel] [PATCH][STABLE] Musicpal: Fix descriptor walk in eth_send

2010-01-24 Thread Jan Kiszka
Commit 930c86820e introduced a regression to eth_send: eth_tx_desc_put manipulates the host's tx descriptor copy before writing it back, but two lines down the descriptor is evaluated again, leaving us with an invalid next address if host and guest endianness differ. So this was the actual issue co