Re: [Qemu-devel] Re: qemu crashes since today

2011-02-17 Thread Jan Kiszka
On 2011-02-17 04:09, Anthony Liguori wrote: On 02/16/2011 07:35 PM, Stefan Berger wrote: On 02/16/2011 05:45 PM, Jan Kiszka wrote: On 2011-02-16 23:18, Stefan Berger wrote: Qemu is crashing for me. Bisecting the code I found this here as the reason. Stepping one commit further into the past

Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent

2011-02-17 Thread Jes Sorensen
On 02/16/11 18:22, Michael Roth wrote: We've seen similar behavior. I think it comes down to qemu-va being linked against shared objects in the host that don't necessarily coincide with what's in the guest. It's somewhat misleading that we currently build qemu-va along with the binary, since

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2)

2011-02-17 Thread Paolo Bonzini
On 02/17/2011 04:15 AM, Marcelo Tosatti wrote: Yes, using qemu_icount_delta directly in tcg_wait_io_event timedwait is explicit (partially the reason for confusion with my patch). So the reasoning for the patch is: With icount vm_timer timers expire on virtual CPU time. If a CPU halts, you

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2)

2011-02-17 Thread Jan Kiszka
On 2011-02-17 04:15, Marcelo Tosatti wrote: On Wed, Feb 16, 2011 at 10:32:25AM +0100, Paolo Bonzini wrote: On 02/15/2011 09:56 PM, Marcelo Tosatti wrote: Note: to be applied to uq/master. In icount mode, halt emulation should take into account the nearest event when sleeping. I agree with

[Qemu-devel] Re: [V5 PATCH 2/8] virtio-9p: Provide chroot environment server side interfaces

2011-02-17 Thread Stefan Hajnoczi
On Wed, Feb 16, 2011 at 05:53:09PM +0530, M. Mohan Kumar wrote: +static int chroot_daemonize(int chroot_sock) +{ +sigset_t sigset; +struct rlimit nr_fd; +int fd; + +/* Block all signals for this process */ +sigprocmask(SIG_SETMASK, sigset, NULL); sigset is an

[Qemu-devel] [PATCH] Add drive_add/drive_del to qmp_commands.hx

2011-02-17 Thread Hu Tao
This patch enables drive_add/drive_del qmp commands, which are required by libvirt when connecting to qemu using QMP. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- qmp-commands.hx | 59 +++ 1 files changed, 59 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH] virtio-serial: Enable ioeventfd

2011-02-17 Thread Amit Shah
Enable ioeventfd for virtio-serial devices by default. Commit 25db9ebe15125deb32958c6df74996f745edf1f9 lists the benefits of using ioeventfd. Copying a file from guest to host over a virtio-serial channel didn't show much difference in time or io_exit rate. Signed-off-by: Amit Shah

Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent

2011-02-17 Thread Dor Laor
On 02/17/2011 10:26 AM, Jes Sorensen wrote: On 02/16/11 18:22, Michael Roth wrote: We've seen similar behavior. I think it comes down to qemu-va being linked against shared objects in the host that don't necessarily coincide with what's in the guest. It's somewhat misleading that we currently

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Avi Kivity
On 02/16/2011 03:34 PM, Anthony Liguori wrote: On 02/16/2011 04:24 AM, Avi Kivity wrote: On 02/16/2011 01:13 AM, Anthony Liguori wrote: On 02/15/2011 10:26 AM, Chris Wright wrote: QAPI and QMP - Anthony adding a new wiki page to describe all of this http://wiki.qemu.org/Features/QAPI [

Re: [Qemu-devel] Re: qemu crashes since today

2011-02-17 Thread Gerd Hoffmann
Hi, Does F14 happen to use the vmport/vmmount? Maybe this crash is related to [1]. Yes. Try 'rpm -e xorg-x11-drv-vmmouse' in the guest and check whenever this avoids the crash to confirm vmmouse is the culprit. cheers, Gerd

[Qemu-devel] Re: [V5 PATCH 4/8] virtio-9p: Add support to open a file in chroot environment

2011-02-17 Thread Stefan Hajnoczi
On Wed, Feb 16, 2011 at 12:23 PM, M. Mohan Kumar mo...@in.ibm.com wrote: +/* Helper routine to fill V9fsFileObjectRequest structure */ +static void fill_request(V9fsFileObjectRequest *request, const char *path, +                FsCred *credp) +{ +    memset(request, 0, sizeof(*request)); +  

[Qemu-devel] Instruction count with QEMU

2011-02-17 Thread Marco Boni
Hi all, I am pretty new to QEMU development. To get involved in this, I have been asked by my supervisor to do a simple modification to QEMU. We would like to count the number of instructions the virtual machine processes. In other words, it's all about to declare a counter and increment it

[Qemu-devel] (no subject)

2011-02-17 Thread maheen butt
hi I'm running MIPS user mode emulation with qemu. Whenever a memory reference instruction comes from MIPS ELF how this address is translated to host virtual address? or is there any mapping function which is used? my host machine is x86 Regards

[Qemu-devel] MIPS address vs x86 address

2011-02-17 Thread maheen butt
hi I'm running MIPS user mode emulation with qemu. Whenever a memory reference instruction comes from MIPS ELF how this address is translated to host virtual address? or is there any mapping function which is used? my host machine is x86 Regards

[Qemu-devel] Re: [V5 PATCH 6/8] virtio-9p: Support for creating special files

2011-02-17 Thread Stefan Hajnoczi
On Wed, Feb 16, 2011 at 12:23 PM, M. Mohan Kumar mo...@in.ibm.com wrote: +    switch (type) { +    case T_MKNOD: +        request.data.type = T_MKNOD; +        break; +    case T_MKDIR: +        request.data.type = T_MKDIR; +        break; +    case T_SYMLINK: +        request.data.type =

Re: [Qemu-devel] Instruction count with QEMU

2011-02-17 Thread Dushyant Bansal
On Thursday 17 February 2011 04:03 PM, Marco Boni wrote: Hi all, I am pretty new to QEMU development. To get involved in this, I have been asked by my supervisor to do a simple modification to QEMU. We would like to count the number of instructions the virtual machine processes. In other

Re: [Qemu-devel] [PATCH 3/3] target-arm: Implement cp15 VA-PA translation

2011-02-17 Thread Adam Lackorzynski
Hi, thanks for the review! On Wed Feb 16, 2011 at 15:57:59 +, Peter Maydell wrote: On 15 February 2011 10:49, Adam Lackorzynski a...@os.inf.tu-dresden.de wrote: Implement VA-PA translations by cp15-c7 that went through unchanged previously. +        uint32_t c7_par;  /*

[Qemu-devel] Re: [V5 PATCH 8/8] virtio-9p: Chroot environment for other functions

2011-02-17 Thread Stefan Hajnoczi
On Wed, Feb 16, 2011 at 12:23 PM, M. Mohan Kumar mo...@in.ibm.com wrote: +/* + * Returns file descriptor of dirname(path) + * This fd can be used by *at functions + */ +static int get_dirfd(FsContext *fs_ctx, const char *path) +{ +    V9fsFileObjectRequest request; +    int fd, error = 0;

Re: [Qemu-devel] Re: qemu crashes since today

2011-02-17 Thread Stefan Berger
On 02/17/2011 04:21 AM, Gerd Hoffmann wrote: Hi, Does F14 happen to use the vmport/vmmount? Maybe this crash is related to [1]. Yes. Try 'rpm -e xorg-x11-drv-vmmouse' in the guest and check whenever this avoids the crash to confirm vmmouse is the culprit. I removed this one and it's

[Qemu-devel] [PULL] linux-user patches for master

2011-02-17 Thread Riku Voipio
The following changes since commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e: Merge remote branch 'kwolf/for-anthony' into staging (2011-02-16 08:47:13 -0600) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux-user-for-upstream Laurent Vivier (4):

[Qemu-devel] [Bug 720657] [NEW] SVM intercept for VINTR exits too early

2011-02-17 Thread Udo Steinberg
Public bug reported: The following happens with QEMU-0.14-rc2. QEMU-0.13 did not have this problem. A guest operating system running inside an SVM VM contains the following code sequence: c02b: fb sti c02c: 0f 35 sysexit The

[Qemu-devel] Re: [PATCHv2 0/3] e1000: multi-buffer packet support

2011-02-17 Thread Kevin Wolf
Am 15.02.2011 17:27, schrieb Michael S. Tsirkin: e1000 supports multi-buffer packets larger than rxbuf_size. This fixes the following (on linux): - in guest: ifconfig eth1 mtu 16110 - in host: ifconfig tap0 mtu 16110 ping -s 16082 guest-ip Red Hat bugzilla:

Re: [Qemu-devel] [PATCH] Add drive_add/drive_del to qmp_commands.hx

2011-02-17 Thread Anthony Liguori
On 02/17/2011 02:57 AM, Hu Tao wrote: This patch enables drive_add/drive_del qmp commands, which are required by libvirt when connecting to qemu using QMP. Signed-off-by: Hu Taohu...@cn.fujitsu.com --- qmp-commands.hx | 59 +++ 1 files

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Anthony Liguori
On 02/17/2011 03:26 AM, Avi Kivity wrote: On 02/16/2011 03:34 PM, Anthony Liguori wrote: On 02/16/2011 04:24 AM, Avi Kivity wrote: On 02/16/2011 01:13 AM, Anthony Liguori wrote: On 02/15/2011 10:26 AM, Chris Wright wrote: QAPI and QMP - Anthony adding a new wiki page to describe all of this

[Qemu-devel] Re: [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Paolo Bonzini
On 02/15/2011 01:34 PM, jes.soren...@redhat.com wrote: -if [ -z $binary ]; then +if [ -z $probeprefix -a -z $binary ]; then echo --binary is required for SystemTAP tapset generator exit 1 fi --binary is always required, even with --probe-prefix, since it is used

[Qemu-devel] Re: [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Jes Sorensen
On 02/17/11 13:16, Paolo Bonzini wrote: On 02/15/2011 01:34 PM, jes.soren...@redhat.com wrote: -if [ -z $binary ]; then +if [ -z $probeprefix -a -z $binary ]; then echo --binary is required for SystemTAP tapset generator exit 1 fi --binary is always

Re: [Qemu-devel] [PATCH 2/3] target-arm: fix support for vrecpe.

2011-02-17 Thread Peter Maydell
On 16 February 2011 17:59, christophe.l...@st.com wrote: From: Christophe Lyon christophe.l...@st.com Now use the same algorithm as described in the ARM ARM. Signed-off-by: Christophe Lyon christophe.l...@st.com Mostly looks good, and seems to pass random testing. +    float_status *s =

Re: [Qemu-devel] [PATCH] Add drive_add/drive_del to qmp_commands.hx

2011-02-17 Thread Markus Armbruster
Hu Tao hu...@cn.fujitsu.com writes: This patch enables drive_add/drive_del qmp commands, which are required by libvirt when connecting to qemu using QMP. These commands were intentionally left out of QMP because they are badly designed. I understand the need for drive hot plug in QMP. I

[Qemu-devel] [PATCH v3] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than qemu-{system,user},arch Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- scripts/tracetool

[Qemu-devel] Re: [PATCH v3] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Paolo Bonzini
On 02/17/2011 01:26 PM, jes.soren...@redhat.com wrote: From: Jes Sorensenjes.soren...@redhat.com Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than qemu-{system,user},arch Signed-off-by: Jes

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Avi Kivity
On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just reject unencodable strings). While QEMU is mostly ASCII internally, for the purposes of the JSON parser, we always encode and decode UTF-8. We reject invalid UTF-8 sequences. But

[Qemu-devel] Re: [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Jes Sorensen
On 02/17/11 13:29, Paolo Bonzini wrote: On 02/17/2011 01:19 PM, Jes Sorensen wrote: On 02/17/11 13:16, Paolo Bonzini wrote: On 02/15/2011 01:34 PM, jes.soren...@redhat.com wrote: -if [ -z $binary ]; then +if [ -z $probeprefix -a -z $binary ]; then echo --binary is required

[Qemu-devel] Re: [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Paolo Bonzini
On 02/17/2011 01:19 PM, Jes Sorensen wrote: On 02/17/11 13:16, Paolo Bonzini wrote: On 02/15/2011 01:34 PM, jes.soren...@redhat.com wrote: -if [ -z $binary ]; then +if [ -z $probeprefix -a -z $binary ]; then echo --binary is required for SystemTAP tapset generator

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Amit Shah
On (Wed) 16 Feb 2011 [08:41:27], Anthony Liguori wrote: On 02/16/2011 08:39 AM, Amit Shah wrote: On (Tue) 15 Feb 2011 [17:13:13], Anthony Liguori wrote: On 02/15/2011 10:26 AM, Chris Wright wrote: revisit new - old migration - Amit offers virtio-serial patches and some legwork So, to me,

Re: [Qemu-devel] [PATCH 3/3] target-arm: fix support for vrsqrte.

2011-02-17 Thread Peter Maydell
On 16 February 2011 17:59, christophe.l...@st.com wrote: From: Christophe Lyon christophe.l...@st.com Now use the same algorithm as described in the ARM ARM. This doesn't pass random testing. +static float64 recip_sqrt_estimate(float64 a, CPUState *env) +{ +    float_status *s =

Re: [Qemu-devel] [PATCH 1/3] softfloat: export float32_default_nan, and float32_infinity. Add float32_set_sign().

2011-02-17 Thread Peter Maydell
On 16 February 2011 17:59, christophe.l...@st.com wrote: From: Christophe Lyon christophe.l...@st.com These special values are needed to implement some helper functions, which return these values in some cases. This patch also moves the definitions of default_nan for 16, 64, x80 and 128

Re: [Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties

2011-02-17 Thread Amit Shah
On (Tue) 15 Feb 2011 [10:10:23], Anthony Liguori wrote: diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h index a308196..2c5e336 100644 --- a/hw/virtio-serial.h +++ b/hw/virtio-serial.h @@ -57,6 +57,19 @@ struct virtio_console_control { /* == In-qemu interface == */ +#define

[Qemu-devel] Re: [PATCH v3] tracetool: Add optional argument to specify dtrace probe names

2011-02-17 Thread Stefan Hajnoczi
On Thu, Feb 17, 2011 at 01:26:05PM +0100, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than

Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation

2011-02-17 Thread Amit Shah
On (Tue) 15 Feb 2011 [10:43:42], Anthony Liguori wrote: #define DEFINE_BLOCK_PROPERTIES(_state, _conf) \ -DEFINE_PROP_DRIVE(drive, _state, _conf.bs), \ +DEFINE_PROP_DRIVE(drive, _state, _conf.bs, ), \

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Anthony Liguori
On 02/17/2011 06:23 AM, Avi Kivity wrote: On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just reject unencodable strings). While QEMU is mostly ASCII internally, for the purposes of the JSON parser, we always encode and decode

Re: [Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties

2011-02-17 Thread Anthony Liguori
On 02/17/2011 07:03 AM, Amit Shah wrote: On (Tue) 15 Feb 2011 [10:10:23], Anthony Liguori wrote: diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h index a308196..2c5e336 100644 --- a/hw/virtio-serial.h +++ b/hw/virtio-serial.h @@ -57,6 +57,19 @@ struct virtio_console_control { /* ==

Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation

2011-02-17 Thread Anthony Liguori
On 02/17/2011 07:06 AM, Amit Shah wrote: On (Tue) 15 Feb 2011 [10:43:42], Anthony Liguori wrote: #define DEFINE_BLOCK_PROPERTIES(_state, _conf) \ -DEFINE_PROP_DRIVE(drive, _state, _conf.bs), \ +DEFINE_PROP_DRIVE(drive, _state,

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Avi Kivity
On 02/17/2011 03:10 PM, Anthony Liguori wrote: On 02/17/2011 06:23 AM, Avi Kivity wrote: On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just reject unencodable strings). While QEMU is mostly ASCII internally, for the purposes of the

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Anthony Liguori
On 02/17/2011 07:25 AM, Avi Kivity wrote: On 02/17/2011 03:10 PM, Anthony Liguori wrote: On 02/17/2011 06:23 AM, Avi Kivity wrote: On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just reject unencodable strings). While QEMU is

Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation

2011-02-17 Thread Amit Shah
On (Thu) 17 Feb 2011 [07:12:42], Anthony Liguori wrote: On 02/17/2011 07:06 AM, Amit Shah wrote: On (Tue) 15 Feb 2011 [10:43:42], Anthony Liguori wrote: #define DEFINE_BLOCK_PROPERTIES(_state, _conf) \ -DEFINE_PROP_DRIVE(drive, _state, _conf.bs),

Re: [Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties

2011-02-17 Thread Amit Shah
On (Thu) 17 Feb 2011 [07:11:44], Anthony Liguori wrote: On 02/17/2011 07:03 AM, Amit Shah wrote: On (Tue) 15 Feb 2011 [10:10:23], Anthony Liguori wrote: diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h index a308196..2c5e336 100644 --- a/hw/virtio-serial.h +++ b/hw/virtio-serial.h @@

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Anthony Liguori
On 02/17/2011 07:25 AM, Avi Kivity wrote: On 02/17/2011 03:10 PM, Anthony Liguori wrote: On 02/17/2011 06:23 AM, Avi Kivity wrote: On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just reject unencodable strings). While QEMU is

Re: [Qemu-devel] [PATCH REBASE/RESEND 0/4] Auto-document qdev devices

2011-02-17 Thread Amit Shah
On (Tue) 15 Feb 2011 [10:12:23], Anthony Liguori wrote: On 02/04/2011 12:18 AM, Amit Shah wrote: Hello, This is yet another rebase of the patchset I'd sent earlier. The usual notes apply: this is just the start, just getting the framework in place and a few examples so that people can

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Peter Maydell
On 17 February 2011 13:37, Anthony Liguori anth...@codemonkey.ws wrote: An application has to explicitly support an encoding.  It is not transparent.  UCS2/UTF-16 means that strings are not 'const char *'s but 'const wchar_t *' where typedef unsigned short wchar_t;. QEMU assumes, in lots of

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Anthony Liguori
On 02/17/2011 07:59 AM, Peter Maydell wrote: On 17 February 2011 13:37, Anthony Liguorianth...@codemonkey.ws wrote: An application has to explicitly support an encoding. It is not transparent. UCS2/UTF-16 means that strings are not 'const char *'s but 'const wchar_t *' where typedef

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-17 Thread Avi Kivity
On 02/17/2011 03:37 PM, Anthony Liguori wrote: On 02/17/2011 07:25 AM, Avi Kivity wrote: On 02/17/2011 03:10 PM, Anthony Liguori wrote: On 02/17/2011 06:23 AM, Avi Kivity wrote: On 02/17/2011 02:12 PM, Anthony Liguori wrote: (btw what happens in a non-UTF-8 locale? I guess we should just

Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent

2011-02-17 Thread Michael Roth
On 02/17/2011 02:26 AM, Jes Sorensen wrote: On 02/16/11 18:22, Michael Roth wrote: We've seen similar behavior. I think it comes down to qemu-va being linked against shared objects in the host that don't necessarily coincide with what's in the guest. It's somewhat misleading that we currently

[Qemu-devel] [PATCH 2/2] qed: Periodically flush and clear need check bit

2011-02-17 Thread Stefan Hajnoczi
One strategy to limit the startup delay of consistency check when opening image files is to ensure that the file is marked dirty for as little time as possible. QED currently marks the image dirty when the first allocating write request is issued and clears the dirty bit again when the image is

[Qemu-devel] [PATCH 1/2] qemu-tool: Stub out qemu-timer functions

2011-02-17 Thread Stefan Hajnoczi
Block drivers may need timers for flushing data to disk or reconnecting to a network drive. Stub out the following functions in qemu-tool.c: QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque) void qemu_free_timer(QEMUTimer *ts) void qemu_del_timer(QEMUTimer *ts) void

[Qemu-devel] [PATCH 0/2] qed: Periodically flush and clear need check bit

2011-02-17 Thread Stefan Hajnoczi
This patch marks QED images as clean periodically when it is safe to do so. This reduces the chance of having to perform a consistency check at startup. Previously we left the image dirty even when it was consistent, therefore risking an unnecessary consistency check after crash. The first patch

[Qemu-devel] [Bug 720787] [NEW] Fails to compile on MacOS

2011-02-17 Thread Nigel Horne
Public bug reported: Make fails with: qemu-thread.c: In function 'qemu_mutex_timedlock': qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first

Re: [Qemu-devel] Re: Comparing New Image Formats: FVD vs. QED

2011-02-17 Thread Chunqiang Tang
On Tue, Feb 15, 2011 at 7:45 PM, Chunqiang Tang ct...@us.ibm.com wrote: Chunqiang Tang/Watson/IBM wrote on 01/28/2011 05:13:27 PM: As you requested, I set up a wiki page for FVD at http://wiki.qemu.org/Features/FVD . It includes a summary of FVD, a detailed specification of FVD, and a

Re: [Qemu-devel] A question regarding QEMU.

2011-02-17 Thread Lluís
Chung Hwan Kim writes: I and two other students have formed up a team for a project called Accelerating Dynamic Binary Translation with the GPUs. As the name of the project suggests our main idea is to parallelize Dynamic Binary Translation (DBT) process and speed it up with GPUs using the

Re: [Qemu-devel] Re: Comparing New Image Formats: FVD vs. QED

2011-02-17 Thread Chunqiang Tang
Am 15.02.2011 20:45, schrieb Chunqiang Tang: Chunqiang Tang/Watson/IBM wrote on 01/28/2011 05:13:27 PM: As you requested, I set up a wiki page for FVD at http://wiki.qemu.org/Features/FVD . It includes a summary of FVD, a detailed specification of FVD, and a comparison of the design

[Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo.

2011-02-17 Thread Tristan Gingold
Fix compilation failure on Darwin. Signed-off-by: Tristan Gingold ging...@adacore.com --- compatfd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compatfd.c b/compatfd.c index a7cebc4..5f7f355 100644 --- a/compatfd.c +++ b/compatfd.c @@ -33,9 +33,9 @@ static void

[Qemu-devel] Re: NBD block device backend - 'improvements'

2011-02-17 Thread Nicholas Thomas
Hi again, On Wed, 2011-02-16 at 13:00 +0100, Kevin Wolf wrote: Am 15.02.2011 22:26, schrieb Nicholas Thomas: On Tue, 2011-02-15 at 12:09 +0100, Kevin Wolf wrote: Am 14.02.2011 21:32, schrieb Stefan Hajnoczi: I'm not sure about how much duplication there actually is, but if you can take a

Re: [Qemu-devel] [PATCH 1/2] qemu-tool: Stub out qemu-timer functions

2011-02-17 Thread Michael Roth
On 02/17/2011 08:59 AM, Stefan Hajnoczi wrote: Block drivers may need timers for flushing data to disk or reconnecting to a network drive. Stub out the following functions in qemu-tool.c: QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque) void qemu_free_timer(QEMUTimer

[Qemu-devel] [PATCH 2/3] NBD library: add aio-compatible read/write function

2011-02-17 Thread Nicholas Thomas
Signed-off-by: Nick Thomas n...@bytemark.co.uk --- nbd.c | 51 +++ nbd.h |2 ++ 2 files changed, 53 insertions(+), 0 deletions(-) diff --git a/nbd.c b/nbd.c index abe0ecb..83d3342 100644 --- a/nbd.c +++ b/nbd.c @@ -107,6 +107,57 @@ size_t

[Qemu-devel] [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-17 Thread Nicholas Thomas
Signed-off-by: Nick Thomas n...@bytemark.co.uk --- block/nbd.c | 549 ++- 1 files changed, 464 insertions(+), 85 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index c8dc763..1387227 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -1,11

[Qemu-devel] [PATCH 1/3] NBD library: whitespace changes

2011-02-17 Thread Nicholas Thomas
Replace an entertaining mixture of tabs and spaces with four-space indents. Signed-off-by: Nick Thomas n...@bytemark.co.uk --- nbd.c | 835 + 1 files changed, 418 insertions(+), 417 deletions(-) diff --git a/nbd.c b/nbd.c index

[Qemu-devel] Re: [PATCH 08/13] kvm: x86: Inject pending MCE events on state writeback

2011-02-17 Thread Marcelo Tosatti
On Tue, Feb 15, 2011 at 09:23:32AM +0100, Jan Kiszka wrote: The current way of injecting MCE events without updating of and synchronizing with the CPUState is broken and causes spurious corruptions of the MCE-related parts of the CPUState. Can you explain how? The current pronlem with MCE is

[Qemu-devel] Re: [PATCH] Use sigwait instead og sigwaitinfo.

2011-02-17 Thread Paolo Bonzini
On 02/17/2011 05:24 PM, Tristan Gingold wrote: -siginfo_t siginfo; +int sig; -err = sigwaitinfo(info-mask,siginfo); +err = sigwait(info-mask,sig); This is doable but the patch is wrong, after sigwaitinfo err is the signal number, so you should replace

[Qemu-devel] Re: [PATCH 08/13] kvm: x86: Inject pending MCE events on state writeback

2011-02-17 Thread Jan Kiszka
On 2011-02-17 17:35, Marcelo Tosatti wrote: On Tue, Feb 15, 2011 at 09:23:32AM +0100, Jan Kiszka wrote: The current way of injecting MCE events without updating of and synchronizing with the CPUState is broken and causes spurious corruptions of the MCE-related parts of the CPUState. Can you

Re: [Qemu-devel] [PATCH 2/3] target-arm: fix support for vrecpe.

2011-02-17 Thread Christophe Lyon
+float_status *s = env-vfp.standard_fp_status; +float64 one = int64_to_float64(1, s); You don't need to create a variable for this, float64_one will do what you want. OK +/* q = (int)(a * 512.0) */ +float64 x512 = int64_to_float64(512, s); +float64 q =

[Qemu-devel] Re: [PATCH 08/13] kvm: x86: Inject pending MCE events on state writeback

2011-02-17 Thread Marcelo Tosatti
On Thu, Feb 17, 2011 at 06:06:19PM +0100, Jan Kiszka wrote: On 2011-02-17 17:35, Marcelo Tosatti wrote: On Tue, Feb 15, 2011 at 09:23:32AM +0100, Jan Kiszka wrote: The current way of injecting MCE events without updating of and synchronizing with the CPUState is broken and causes spurious

[Qemu-devel] Re: [PATCH 08/13] kvm: x86: Inject pending MCE events on state writeback

2011-02-17 Thread Jan Kiszka
On 2011-02-17 18:55, Marcelo Tosatti wrote: @@ -1375,10 +1413,25 @@ static int kvm_put_vcpu_events(CPUState *env, int level) return 0; } -events.exception.injected = (env-exception_injected = 0); -events.exception.nr = env-exception_injected; -

[Qemu-devel] Re: [PATCH 09/13] kvm: x86: Consolidate TCG and KVM MCE injection code

2011-02-17 Thread Marcelo Tosatti
On Tue, Feb 15, 2011 at 09:23:33AM +0100, Jan Kiszka wrote: This switches KVM's MCE injection path to cpu_x86_inject_mce, both for SIGBUS and monitor initiated events. This means we prepare the MCA MSRs in the VCPUState also for KVM. We have to drop the MSRs writeback restrictions for this

[Qemu-devel] Re: [PATCH 09/13] kvm: x86: Consolidate TCG and KVM MCE injection code

2011-02-17 Thread Jan Kiszka
On 2011-02-17 19:08, Marcelo Tosatti wrote: On Tue, Feb 15, 2011 at 09:23:33AM +0100, Jan Kiszka wrote: This switches KVM's MCE injection path to cpu_x86_inject_mce, both for SIGBUS and monitor initiated events. This means we prepare the MCA MSRs in the VCPUState also for KVM. We have to

Re: [Qemu-devel] [PATCH 2/3] target-arm: fix support for vrecpe.

2011-02-17 Thread Peter Maydell
On 17 February 2011 17:51, Christophe Lyon christophe.l...@st.com wrote: ...and a runtime division just to get a constant 0.5? Better to just make_float64() on the appropriate bit pattern, I think. It makes sense. Then, what about using the right bit patterns for 512 and 256? Not so

[Qemu-devel] Re: [PATCH 08/13] kvm: x86: Inject pending MCE events on state writeback

2011-02-17 Thread Marcelo Tosatti
On Thu, Feb 17, 2011 at 07:04:51PM +0100, Jan Kiszka wrote: Should not manipulate mp_state of a running vcpu (should only do that for migration when vcpu is stopped), since its managed by the kernel, for irqchip case. Not for asynchronously injected MCEs. The target CPU would simply

Re: [Qemu-devel] [PATCH 3/3] block/nbd: Make the NBD block device use the AIO interface

2011-02-17 Thread Nicholas Thomas
Ho hum. On Thu, 2011-02-17 at 16:34 +, Nicholas Thomas wrote: Signed-off-by: Nick Thomas n...@bytemark.co.uk --- block/nbd.c | 549 ++- 1 files changed, 464 insertions(+), 85 deletions(-) Additional testing has revealed that this

[Qemu-devel] Re: [PATCH] Fix vmport segfault (v2)

2011-02-17 Thread Blue Swirl
Thanks, applied. On Thu, Feb 17, 2011 at 5:27 AM, Marcelo Tosatti mtosa...@redhat.com wrote: Fix regression caused by qdev conversion. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com v2: pass correct register_ioport parameter diff --git a/hw/vmport.c b/hw/vmport.c index

[Qemu-devel] [Bug 550863] Re: MicroBlaze QEMU skips jumps when using single steps in GDB

2011-02-17 Thread Christophe
Thanks for the patch, so far so good... Christophe -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/550863 Title: MicroBlaze QEMU skips jumps when using single steps in GDB Status in QEMU: Fix

Re: [Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-17 Thread Blue Swirl
On Wed, Feb 16, 2011 at 11:51 AM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: On Tue, Feb 15, 2011 at 12:07 PM, Markus Armbruster arm...@redhat.com wrote: Anthony Liguori anth...@codemonkey.ws writes: On 02/12/2011 11:03 AM, Markus Armbruster wrote:

Re: [Qemu-devel] [PULL 0/8] usb patch queue

2011-02-17 Thread Anthony Liguori
On 01/24/2011 10:30 AM, Gerd Hoffmann wrote: Hi, Here is the current usb patch queue. What is in there? Migration support for USB devices. For starters hub and HID devices are covered. Event queues for the usb mouse/table (thanks to Paolo and the Xen folks) and the usb keyboard, so we

Re: [Qemu-devel] [PATCH 00/31] [PULL] qemu-kvm.git uq/master queue

2011-02-17 Thread Anthony Liguori
On 01/24/2011 03:02 AM, Marcelo Tosatti wrote: The following changes since commit b646968336d4180bdd7d2e24209708dcee6ba400: checkpatch: adjust to QEMUisms (2011-01-20 20:58:56 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Jan

[Qemu-devel] [PATCH] kvm: ppc: Fix breakage of kvm_arch_pre_run/process_irqchip_events

2011-02-17 Thread Jan Kiszka
On 2011-02-07 12:19, Jan Kiszka wrote: We do not check them, and the only arch with non-empty implementations always returns 0 (this is also true for qemu-kvm). Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Alexander Graf ag...@suse.de --- kvm.h |5 ++---

[Qemu-devel] [ANNOUNCE] QEMU 0.14.0.tar.gz is available

2011-02-17 Thread Anthony Liguori
The QEMU team is pleased to announce the availability of the 0.14.0 release. Download instructions are available at http://wiki.qemu.org/Download A detailed change log is available at http://wiki.qemu.org/Changelog/0.14 On behalf of the QEMU team, I'd like to thank everyone who contributed to

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.14.0.tar.gz is available

2011-02-17 Thread Rick Vernam
On Thursday 17 February 2011 16:06:24 Anthony Liguori wrote: The QEMU team is pleased to announce the availability of the 0.14.0 release. Download instructions are available at http://wiki.qemu.org/Download A detailed change log is available at http://wiki.qemu.org/Changelog/0.14 On

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.14.0.tar.gz is available

2011-02-17 Thread Anthony Liguori
On 02/17/2011 04:18 PM, Rick Vernam wrote: On Thursday 17 February 2011 16:06:24 Anthony Liguori wrote: The QEMU team is pleased to announce the availability of the 0.14.0 release. Download instructions are available at http://wiki.qemu.org/Download A detailed change log is available at

[Qemu-devel] [PATCH 14/17] lm32: todo and documentation

2011-02-17 Thread Michael Walle
This patch adds general target documentation and a todo list. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/README | 46 ++ target-lm32/TODO |3 +++ 2 files changed, 49 insertions(+), 0 deletions(-) create mode 100644

[Qemu-devel] [PATCH 08/17] lm32: pic and juart helper functions

2011-02-17 Thread Michael Walle
This patch adds init functions for the PIC and JTAG UART commonly used in the board initialization. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 hw/lm32.h diff --git

[Qemu-devel] [PATCH 04/17] lm32: machine state loading/saving

2011-02-17 Thread Michael Walle
This patch adds support for saving and loading the processor state. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/machine.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 target-lm32/machine.c diff --git

[Qemu-devel] [PATCH 09/17] lm32: timer model

2011-02-17 Thread Michael Walle
This patch adds support for the LatticeMico32 system timer. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_timer.c | 222 +++ trace-events|6 ++ 3 files changed, 229 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 12/17] lm32: support for creating device tree

2011-02-17 Thread Michael Walle
This patch adds helper functions to create a ROM, which contains a hardware description of a board. This is used in Theobromas LM32 Linux port. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_hwsetup.h | 178 + 1 files changed, 178

[Qemu-devel] [PATCH 16/17] Add lm32 target to configure

2011-02-17 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a3f5345..a9f6992 100755 --- a/configure +++ b/configure @@ -280,7 +280,7 @@ else fi case $cpu in -

[Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-02-17 Thread Michael Walle
This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Changes since v2: - lots of CODING_STYLE fixes - reworked pic and juart model, CPUState is not passed anymore - use qdev reset field instead of qemu_register_reset() - add missing include guards -

[Qemu-devel] [PATCH 17/17] MAINTAINERS: add LatticeMico32 maintainer

2011-02-17 Thread Michael Walle
Add me as the lm32-target and machines maintainer. Signed-off-by: Michael Walle mich...@walle.cc --- MAINTAINERS | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ab48380..9f3ff0e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-17 Thread Michael Walle
This patch adds the main translation routine. All opcodes of the LatticeMico32 processor are supported and translated to TCG ops. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c | 259 + target-lm32/lm32-decode.h | 78 +++ target-lm32/translate.c | 1317

[Qemu-devel] [PATCH 01/17] LatticeMico32 target support

2011-02-17 Thread Michael Walle
This patch adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|2 + arch_init.c|2 + arch_init.h| 13 ++-- cpu-exec.c | 13 +++- elf.h |1 +

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-17 Thread Michael Walle
Am Samstag 12 Februar 2011, 07:49:52 schrieb Blue Swirl: That said, IMHO the best handling of unknown opcodes would be to kill the VM. In this case it should be OK. Alternatively the VM could be halted, so that instead of restarting QEMU, only system_reset needs to be issued. This may be

[Qemu-devel] [PATCH 03/17] lm32: translation code helper

2011-02-17 Thread Michael Walle
This patch adds translation helper functions. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.h| 14 ++ target-lm32/op_helper.c | 106 +++ 2 files changed, 120 insertions(+), 0 deletions(-) create mode 100644

[Qemu-devel] [PATCH 05/17] lm32: gdbstub support

2011-02-17 Thread Michael Walle
This patch adds lm32 support to the gdbstub. Signed-off-by: Michael Walle mich...@walle.cc --- gdbstub.c | 76 + 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index ed51a8a..1e9f931 100644 ---

[Qemu-devel] [PATCH 15/17] lm32: opcode testsuite

2011-02-17 Thread Michael Walle
This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle mich...@walle.cc --- tests/Makefile|4 ++ tests/lm32/Makefile | 102 + tests/lm32/crt.S | 84

[Qemu-devel] [PATCH 10/17] lm32: uart model

2011-02-17 Thread Michael Walle
This patch add support for the LatticeMico32 UART. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_uart.c | 288 +++ trace-events|5 + 3 files changed, 294 insertions(+), 0 deletions(-) create mode

  1   2   >