[Qemu-devel] Build failure of Git HEAD

2010-03-31 Thread Dirk Ullrich
Hi, just for the record: a build of QEMU from HEAD with '--enable-io-thread' fails. In "vl.c" "qemu_system_ready" is used but not declared any longer. Dirk

[Qemu-devel] Question about KVM integration in vanilla Qemu.

2010-03-31 Thread Stefan Kamien
Hi. I have a question. On KVM website (http://www.linux-kvm.org/page/Main_Page ) it says that: 'KVM also requires a modified QEMU although work is underway to get the required changes upstream' But in Qemu documentation there are options like '-enable-kvm'. Furthermore, kqemu support is dropp

Re: [Qemu-devel] Using Qemu

2010-03-31 Thread Arpit Patel
Here is the command I issued "*qemu -initrd initramfs.img -kernel vmlinux-2.6.24 /dev/zero -append "noapic rw root=/dev/ram*" Thanks for help. On Wed, Mar 31, 2010 at 7:26 PM, Mulyadi Santosa wrote: > On Thu, Apr 1, 2010 at 05:20, Arpit Patel wrote: > > Hi, > > > > I am trying to use Qemu, to

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 09:45 PM, Anthony Liguori wrote: On 03/31/2010 05:45 PM, Aurelien Jarno wrote: While it probably make sense to achieve this goal, it doesn't mean it should be done the dirty way. For example it is known for a lot of time that the solution for the bswap in the device code is to add

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 05:45 PM, Aurelien Jarno wrote: While it probably make sense to achieve this goal, it doesn't mean it should be done the dirty way. For example it is known for a lot of time that the solution for the bswap in the device code is to add a bus model doing the byteswapping. Removing th

Re: [Qemu-devel] Using Qemu

2010-03-31 Thread Mulyadi Santosa
On Thu, Apr 1, 2010 at 05:20, Arpit Patel wrote: > Hi, > > I am trying to use Qemu, to boot kernel image I got, using the initramfs > image that was build, when I build kernel > > But it only loads initramfs image, and gives me prompt with "(initramfs)_", > and thus doesn't load kernel. Care to s

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Aurelien Jarno
On Wed, Mar 31, 2010 at 02:24:51PM -0500, Anthony Liguori wrote: > On 03/31/2010 02:07 PM, Michael S. Tsirkin wrote: >> On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: >> >>> On Wed, 31 Mar 2010 13:26:23 -0500 >>> Anthony Liguori wrote: >>> >>> On 03/31/2010 01:20 P

[Qemu-devel] Using Qemu

2010-03-31 Thread Arpit Patel
Hi, I am trying to use Qemu, to boot kernel image I got, using the initramfs image that was build, when I build kernel But it only loads initramfs image, and gives me prompt with "(initramfs)_", and thus doesn't load kernel. Do you guys have any idea, what I am doing wrong. Thanks for your help

Re: [Qemu-devel] [PATCHv2] Avoid page_set_flags() assert in qemu-user host page protection code

2010-03-31 Thread Richard Henderson
On 03/31/2010 02:00 PM, Juergen Lock wrote: > V2 that uses endaddr = end-of-guest-address-space if !h2g_valid(endaddr) > after I found out that indeed works; and also disables the FreeBSD 6.x > /compat/linux/proc/self/maps fallback because it can return partial lines > if (at least I think that's t

[Qemu-devel] [PATCHv2] Avoid page_set_flags() assert in qemu-user host page protection code

2010-03-31 Thread Juergen Lock
V2 that uses endaddr = end-of-guest-address-space if !h2g_valid(endaddr) after I found out that indeed works; and also disables the FreeBSD 6.x /compat/linux/proc/self/maps fallback because it can return partial lines if (at least I think that's the reason) the mappings change between subsequent re

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Shahar Havivi
> >>+ > >>+if (QTAILQ_EMPTY(&kbd_handlers)) { > >>+qerror_report(QERR_DEVICE_NOT_FOUND, "keyboard"); > >>+return -1; > >>+} > >>+ > >>+QTAILQ_FOREACH(cursor,&kbd_handlers, node) { > >>+if (cursor->index == index) { > >>+QTAILQ_REMOVE(&kbd_handlers, cu

[Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Juan Quintela
Anthony Liguori wrote: > On 03/31/2010 02:37 PM, Shahar Havivi wrote: >> On Wed, Mar 31, 2010 at 06:58:14PM +0200, Juan Quintela wrote: >> >>> Date: Wed, 31 Mar 2010 18:58:14 +0200 >>> From: Juan Quintela >>> To: Markus Armbruster >>> Cc: Shahar Havivi, qemu-devel@nongnu.org >>> Subject: [Qemu

[Qemu-devel] [PATCH] Monitor: Convert do_screen_dump() to QObject

2010-03-31 Thread Luiz Capitulino
Trivial, as it never fails, doesn't have output nor return any data. Note that it's also available under QMP, as kvm-autotest needs this. Signed-off-by: Luiz Capitulino --- monitor.c |3 ++- qemu-monitor.hx |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mo

[Qemu-devel] [PATCH] QMP: Improve RTC_CHANGE event description

2010-03-31 Thread Luiz Capitulino
Some people might think that this event is emitted whenever the time changes, be more specific. Signed-off-by: Luiz Capitulino --- QMP/qmp-events.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index a94e9b4..c084a47 100644 -

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Nathan Froyd
On Wed, Mar 31, 2010 at 10:25:53PM +0300, Michael S. Tsirkin wrote: > On Wed, Mar 31, 2010 at 02:24:51PM -0500, Anthony Liguori wrote: > > Long term, I think most of us want to see a single qemu executable > > that works for all architectures and compiling once is an important > > step in that di

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Blue Swirl
On 3/31/10, Anthony Liguori wrote: > On 03/31/2010 02:38 PM, Blue Swirl wrote: > > > On 3/31/10, Michael S. Tsirkin wrote: > > > > > > > On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: > > > > On Wed, 31 Mar 2010 13:26:23 -0500 > > > > Anthony Liguori wrote: > > > > > > >

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:54 PM, Blue Swirl wrote: This refactoring effort isn't really paying attention to improving interfaces which I think is a bit problematic. I agree, but with improved memory API, the questionable byte swapping could be eliminated from devices. Do you plan to finish your

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Blue Swirl
On 3/31/10, Anthony Liguori wrote: > On 03/31/2010 02:25 PM, Michael S. Tsirkin wrote: > > > On Wed, Mar 31, 2010 at 02:24:51PM -0500, Anthony Liguori wrote: > > > > > > > Long term, I think most of us want to see a single qemu executable > > > that works for all architectures and compiling once

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:37 PM, Shahar Havivi wrote: On Wed, Mar 31, 2010 at 06:58:14PM +0200, Juan Quintela wrote: Date: Wed, 31 Mar 2010 18:58:14 +0200 From: Juan Quintela To: Markus Armbruster Cc: Shahar Havivi, qemu-devel@nongnu.org Subject: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: '

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Blue Swirl
On 3/31/10, Anthony Liguori wrote: > On 03/31/2010 02:07 PM, Michael S. Tsirkin wrote: > > > On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: > > > > > > > On Wed, 31 Mar 2010 13:26:23 -0500 > > > Anthony Liguori wrote: > > > > > > > > > > > > > On 03/31/2010 01:20 PM, Michael S.

[Qemu-devel] Re: [PATCH] Fix compilation with missing inotify_init1

2010-03-31 Thread Stefan Weil
Stefan Weil schrieb: > Commit c05c7a7306a23a4b01d1606172b142c45caffc92 > breaks cross compilation for mips (and other > compilations without CONFIG_INOTIFY1): > > make[1]: Entering directory `/qemu/bin/mips' > CC i386-linux-user/syscall.o > cc1: warnings being treated as errors > /qemu/linux-user/s

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:38 PM, Blue Swirl wrote: On 3/31/10, Michael S. Tsirkin wrote: On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: > On Wed, 31 Mar 2010 13:26:23 -0500 > Anthony Liguori wrote: > > > On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: > > > From

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Blue Swirl
On 3/31/10, Michael S. Tsirkin wrote: > On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: > > On Wed, 31 Mar 2010 13:26:23 -0500 > > Anthony Liguori wrote: > > > > > On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: > > > > From: David L Stevens > > > > > > > > vhost driver

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Shahar Havivi
On Wed, Mar 31, 2010 at 06:58:14PM +0200, Juan Quintela wrote: > Date: Wed, 31 Mar 2010 18:58:14 +0200 > From: Juan Quintela > To: Markus Armbruster > Cc: Shahar Havivi , qemu-devel@nongnu.org > Subject: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' > and 'info keybaor

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:25 PM, Michael S. Tsirkin wrote: On Wed, Mar 31, 2010 at 02:24:51PM -0500, Anthony Liguori wrote: Long term, I think most of us want to see a single qemu executable that works for all architectures and compiling once is an important step in that direction. I'm not s

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Michael S. Tsirkin
On Wed, Mar 31, 2010 at 02:24:51PM -0500, Anthony Liguori wrote: > Long term, I think most of us want to see a single qemu executable > that works for all architectures and compiling once is an important > step in that direction. I'm not so sure. It's pretty low on my list of priorities. Most us

Re: [Qemu-devel] [PATCH 7/7] Refactor target specific handling, compile vl.c only once

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:19 PM, Blue Swirl wrote: On 3/31/10, Anthony Liguori wrote: On 03/27/2010 05:11 PM, Blue Swirl wrote: Move target specific functions and RAM handling to arch_init.c. Add a flag to QEMUOptions structure to indicate for which architectures the option is allowed, chec

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:07 PM, Michael S. Tsirkin wrote: On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: On Wed, 31 Mar 2010 13:26:23 -0500 Anthony Liguori wrote: On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: From: David L Stevens vhost driver in qemu didn't

Re: [Qemu-devel] [PATCH 7/7] Refactor target specific handling, compile vl.c only once

2010-03-31 Thread Anthony Liguori
On 03/31/2010 02:19 PM, Blue Swirl wrote: On 3/31/10, Anthony Liguori wrote: On 03/27/2010 05:11 PM, Blue Swirl wrote: Move target specific functions and RAM handling to arch_init.c. Add a flag to QEMUOptions structure to indicate for which architectures the option is allowed, chec

Re: [Qemu-devel] [PATCH 7/7] Refactor target specific handling, compile vl.c only once

2010-03-31 Thread Blue Swirl
On 3/31/10, Anthony Liguori wrote: > On 03/27/2010 05:11 PM, Blue Swirl wrote: > > > Move target specific functions and RAM handling to arch_init.c. > > > > Add a flag to QEMUOptions structure to indicate for which > > architectures the option is allowed, check the flag > > in run time and remove

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Michael S. Tsirkin
On Wed, Mar 31, 2010 at 03:38:05PM -0300, Luiz Capitulino wrote: > On Wed, 31 Mar 2010 13:26:23 -0500 > Anthony Liguori wrote: > > > On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: > > > From: David L Stevens > > > > > > vhost driver in qemu didn't ack features, and this happens > > > to work b

Re: [Qemu-devel] Re: [PATCH 0/5] *** SUBJECT HERE ***

2010-03-31 Thread Aurelien Jarno
On Wed, Mar 31, 2010 at 08:08:52PM +0300, Blue Swirl wrote: > On 3/31/10, Paolo Bonzini wrote: > > On 03/26/2010 08:02 PM, Blue Swirl wrote: > > > Comments, anyone? > > > > Sorry I'm late. > > > > I don't really like the changes introduced here, because they make > > devices very very tied to

Re: [Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Luiz Capitulino
On Wed, 31 Mar 2010 13:26:23 -0500 Anthony Liguori wrote: > On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: > > From: David L Stevens > > > > vhost driver in qemu didn't ack features, and this happens > > to work because we don't really require any features. However, > > it's better not to rely

[Qemu-devel] Re: [PATCH] vhost: fix features ack

2010-03-31 Thread Anthony Liguori
On 03/31/2010 01:20 PM, Michael S. Tsirkin wrote: From: David L Stevens vhost driver in qemu didn't ack features, and this happens to work because we don't really require any features. However, it's better not to rely on this. This patch passes features to vhost as guest acks them. Signed-off-b

[Qemu-devel] [PATCH] vhost: fix features ack

2010-03-31 Thread Michael S. Tsirkin
From: David L Stevens vhost driver in qemu didn't ack features, and this happens to work because we don't really require any features. However, it's better not to rely on this. This patch passes features to vhost as guest acks them. Signed-off-by: David L Stevens Signed-off-by: Michael S. Tsirk

[Qemu-devel] Re: [PATCH] virtio-blk: Fix use after free in error case

2010-03-31 Thread Luiz Capitulino
On Wed, 31 Mar 2010 17:46:59 +0200 Kevin Wolf wrote: > virtio_blk_req_complete frees the request, so we can't access it any more when > calling bdrv_mon_event. Use the pointer that was copied earlier. Urgh, of course that I assume that by freeing 'req' we don't free 'req->dev'. To make this a

[Qemu-devel] [PATCH] Remove magic numbers for VNC message IDs from code

2010-03-31 Thread Daniel P. Berrange
The code processing incoming & sending outgoing messages from/to clients used embedded magic numbers for all message IDs. This made the code a little hard to follow. Add constants in the vnc.h header file for all message IDs and use them in the code Signed-off-by: Daniel P. Berrange --- vnc.c |

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Anthony Liguori
On 03/31/2010 05:20 AM, Juan Quintela wrote: Shahar Havivi wrote: Two new monitor commands: adding ability to handle which keyboard qemu will use and to see which keyboard are currently available. +int do_keyboard_set(Monitor *mon, const QDict *qdict, QObject **ret_data) +{ +

Re: [Qemu-devel] [PATCH] Remove magic numbers for VNC message IDs from code

2010-03-31 Thread Daniel P. Berrange
On Wed, Mar 31, 2010 at 12:07:51PM -0500, Anthony Liguori wrote: > On 03/31/2010 11:45 AM, Daniel P. Berrange wrote: > >diff --git a/vnc.h b/vnc.h > >index 0a7487b..8752de0 100644 > >--- a/vnc.h > >+++ b/vnc.h > >@@ -276,6 +276,57 @@ enum { > > #define VNC_FEATURE_COPYRECT_MASK(1<< VN

[Qemu-devel] Re: [PATCH 0/5] *** SUBJECT HERE ***

2010-03-31 Thread Blue Swirl
On 3/31/10, Paolo Bonzini wrote: > On 03/26/2010 08:02 PM, Blue Swirl wrote: > > Comments, anyone? > > Sorry I'm late. > > I don't really like the changes introduced here, because they make > devices very very tied to the boards. Hopefully this could be changed > one day with qdev, and patch

Re: [Qemu-devel] [PATCH] Remove magic numbers for VNC message IDs from code

2010-03-31 Thread Anthony Liguori
On 03/31/2010 11:45 AM, Daniel P. Berrange wrote: diff --git a/vnc.h b/vnc.h index 0a7487b..8752de0 100644 --- a/vnc.h +++ b/vnc.h @@ -276,6 +276,57 @@ enum { #define VNC_FEATURE_COPYRECT_MASK(1<< VNC_FEATURE_COPYRECT) +/* Client -> Server message IDs */ +#define VNC_MSG_CLIENT_

[Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Juan Quintela
Markus Armbruster wrote: > Juan Quintela writes: >> I still think that adding an "id" property as in markus proposal would >> be neat. Otherwise I don't know how you are going to distinguish >> between two keyboards with the same name. > > If I understand the patch correctly (only time for a qui

[Qemu-devel] [PATCH] Remove magic numbers for VNC message IDs from code

2010-03-31 Thread Daniel P. Berrange
The code processing incoming & sending outgoing messages from/to clients used embedded magic numbers for all message IDs. This made the code a little hard to follow. Add constants in the vnc.h header file for all message IDs and use them in the code Signed-off-by: Daniel P. Berrange --- vnc.c |

Re: [Qemu-devel] [PATCH] [Also for STABLE-0.12] Don't check for bus master for old guests

2010-03-31 Thread Anthony Liguori
On 03/16/2010 01:18 PM, Alexander Graf wrote: Older Linux guests don't activate the bus master enable bit. So for those we can just try to be clever and track if they set the DEVICE_OK bit even though bus mastering is still disabled. Under that condition we can disable the windows safety check.

Re: [Qemu-devel] [PATCH] Restore terminal monitor attributes - addition

2010-03-31 Thread Anthony Liguori
On 03/14/2010 03:41 PM, Shahar Havivi wrote: Patch 2d753894c7553d6a05e8fdbed5f4704398919a35 was missing this check, when running monitor as /dev/tty and other serial device, i.e: qemu -monitor /dev/tty -serial /dev/pts/1 Without this patch any serial device will override the monitor stored at

Re: [Qemu-devel] [PATCH] [PATCH] usb: class specific interface requests

2010-03-31 Thread Anthony Liguori
On 03/14/2010 06:19 AM, Max Reitz wrote: Mass Storage Reset and Get Max LUN are class specific requests, but they were not marked as such in hw/usb-msd.c, moved therefore ClassInterfaceRequest and ClassInterfaceOutRequest from hw/usb-net.c to hw/usb.h. Furthermore there was a problem in hw/usb-oh

[Qemu-devel] [PATCH 0/5] *** SUBJECT HERE ***

2010-03-31 Thread Paolo Bonzini
On 03/26/2010 08:02 PM, Blue Swirl wrote: > Comments, anyone? Sorry I'm late. I don't really like the changes introduced here, because they make devices very very tied to the boards. Hopefully this could be changed one day with qdev, and patches like this make this task more complicated. One exa

[Qemu-devel] [PATCH] virtio-blk: Fix use after free in error case

2010-03-31 Thread Kevin Wolf
virtio_blk_req_complete frees the request, so we can't access it any more when calling bdrv_mon_event. Use the pointer that was copied earlier. Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Shahar Havivi
On Wed, Mar 31, 2010 at 05:31:49PM +0200, Markus Armbruster wrote: > Date: Wed, 31 Mar 2010 17:31:49 +0200 > From: Markus Armbruster > To: Juan Quintela > Cc: Shahar Havivi , qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: > 'keyboard_set' and 'info keyb

Re: [Qemu-devel] [PATCH 1/2] Support for multiple keyboard devices

2010-03-31 Thread Shahar Havivi
On Wed, Mar 31, 2010 at 05:23:46PM +0200, Markus Armbruster wrote: > Date: Wed, 31 Mar 2010 17:23:46 +0200 > From: Markus Armbruster > To: Shahar Havivi > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [PATCH 1/2] Support for multiple keyboard devices > > Shahar Havivi writes: > > > Cur

Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Markus Armbruster
Juan Quintela writes: > Shahar Havivi wrote: >> Two new monitor commands: adding ability to handle which keyboard qemu will >> use and to see which keyboard are currently available. > >> +int do_keyboard_set(Monitor *mon, const QDict *qdict, QObject **ret_data) >> +{ >> +QEMUPutKbdEntry *cur

[Qemu-devel] [PATCH 5/3] compile balloon.c once

2010-03-31 Thread Paolo Bonzini
balloon.c contained some code from monitor.c, so it was compiled once per target. Fix this. Signed-off-by: Paolo Bonzini --- Makefile.objs |2 +- Makefile.target |2 +- kvm.h |9 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile.objs b/Mak

[Qemu-devel] [PATCH 4/3] move targphys.h and hw/poison.h inclusion to cpu-common.h

2010-03-31 Thread Paolo Bonzini
With more files from outside the hw/ directory being placed into libhw, avoid the need to include hw/hw.h for the sake of targ_phys_addr_t. Signed-off-by: Paolo Bonzini --- cpu-common.h|8 hw/hw.h |2 -- hw/poison.h => poison.h |0 3 files changed

Re: [Qemu-devel] [PATCH 1/2] Support for multiple keyboard devices

2010-03-31 Thread Markus Armbruster
Shahar Havivi writes: > Currently you get segfault when trying to remove keyboard (device_del > monitor command) because no keyboard handling is done. > > This patch add QEMUPutKbdEntry structure, handling each keyboard entry. > Adding a keyboard add to the list, removing keyboard select the prev

[Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Juan Quintela
Markus Armbruster wrote: > Shahar Havivi writes: > >> On Fri, Mar 26, 2010 at 10:57:58AM +0100, Markus Armbruster wrote: > [...] >>> Since the index is not a stable identifier of keyboards, and we support >>> multiple monitors, you're prone to remove the wrong keyboard. >>> >>> Monitor#1

Re: [Qemu-devel] [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Shahar Havivi
On Wed, Mar 31, 2010 at 05:10:22PM +0200, Markus Armbruster wrote: > Date: Wed, 31 Mar 2010 17:10:22 +0200 > From: Markus Armbruster > To: Shahar Havivi > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [PATCH 2/2] Added monitor commands: > 'keyboard_set' and 'info keybaord' > > Shahar Ha

[Qemu-devel] Re: [PATCH 1/2] Support for multiple keyboard devices

2010-03-31 Thread Shahar Havivi
On Wed, Mar 31, 2010 at 12:12:15PM +0200, Juan Quintela wrote: > Date: Wed, 31 Mar 2010 12:12:15 +0200 > From: Juan Quintela > To: Shahar Havivi > Cc: qemu-devel@nongnu.org > Subject: Re: [PATCH 1/2] Support for multiple keyboard devices > > Shahar Havivi wrote: > > Currently you get segfault w

Re: [Qemu-devel] [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Markus Armbruster
Shahar Havivi writes: > On Fri, Mar 26, 2010 at 10:57:58AM +0100, Markus Armbruster wrote: [...] >> Since the index is not a stable identifier of keyboards, and we support >> multiple monitors, you're prone to remove the wrong keyboard. >> >> Monitor#1 Monitor#2 >>

[Qemu-devel] [PATCH 3/3] move balloon handling to balloon.c

2010-03-31 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.target |2 +- balloon.c | 145 +++ balloon.h |7 +++ monitor.c | 85 vl.c| 34 - 5 files changed, 153 insertions(+)

[Qemu-devel] [PATCH 2/3] move two variable declarations out of vl.c

2010-03-31 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/i8259.c |1 + hw/isa-bus.c |1 + vl.c |4 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 3de22e3..37ef04e 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -68,6 +68,7 @@ static int irq_level[16

[Qemu-devel] [PATCH rebased 0/3] move stuff out of vl.c

2010-03-31 Thread Paolo Bonzini
Rebased after Blue Swirl's changes. Paolo Bonzini (3): move socket_init to qemu-sockets.c move two variable declarations out of vl.c move balloon handling to balloon.c Makefile.target |2 +- balloon.c | 145 +++ balloon.h

[Qemu-devel] [PATCH 1/3] move socket_init to qemu-sockets.c

2010-03-31 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-sockets.c | 24 qemu_socket.h |1 + vl.c | 24 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/qemu-sockets.c b/qemu-sockets.c index 23c3def..a7399aa 100644 --- a/qemu-socke

[Qemu-devel] [PATCH] remove TARGET_* defines from translate-all.c

2010-03-31 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- exec-all.h |4 target-i386/translate.c |2 ++ target-mips/translate.c |2 ++ target-sh4/translate.c |2 ++ target-sparc/translate.c |3 +++ translate-all.c |8 6 files changed, 9 insertions(+), 12 de

Re: [Qemu-devel] Gsoc

2010-03-31 Thread Luiz Capitulino
On Tue, 30 Mar 2010 22:09:29 +0800 sploving wrote: > Hello, >My name is Baozeng and I am a graduate student from Beijing, China. I > would like to join this year's gsoc. I am interested in the project > "Shared memory transport between guest(s) and host" in the idea list. > Its mentor is Avi

Re: [Qemu-devel] [PATCH 15/17] virtio-serial: Apps should consume all data that guest sends out / Fix virtio api abuse

2010-03-31 Thread Amit Shah
On (Wed) Mar 31 2010 [15:53:59], Gerd Hoffmann wrote: >> /* Callback function that's called when the guest sends us data */ >> -static size_t flush_buf(VirtIOSerialPort *port, const uint8_t *buf, size_t >> len) >> +static void flush_buf(VirtIOSerialPort *port, const uint8_t *buf, size_t >> len)

Re: [Qemu-devel] [PATCH 15/17] virtio-serial: Apps should consume all data that guest sends out / Fix virtio api abuse

2010-03-31 Thread Gerd Hoffmann
/* Callback function that's called when the guest sends us data */ -static size_t flush_buf(VirtIOSerialPort *port, const uint8_t *buf, size_t len) +static void flush_buf(VirtIOSerialPort *port, const uint8_t *buf, size_t len) { VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); -

[Qemu-devel] Re: [PATCH] Replace calls of old bdrv_open

2010-03-31 Thread Juan Quintela
Kevin Wolf wrote: > What is known today as bdrv_open2 becomes the new bdrv_open. All remaining > callers of the old function are converted to the new one. In some places they > even know the right format, so they should have used bdrv_open2 from the > beginning. > > Signed-off-by: Kevin Wolf I w

[Qemu-devel] Re: [PATCH] Replace calls of old bdrv_open

2010-03-31 Thread Kevin Wolf
Am 31.03.2010 15:08, schrieb Juan Quintela: > Kevin Wolf wrote: >> What is known today as bdrv_open2 becomes the new bdrv_open. All remaining >> callers of the old function are converted to the new one. In some places they >> even know the right format, so they should have used bdrv_open2 from the

[Qemu-devel] Re: [PATCH] Replace calls of old bdrv_open

2010-03-31 Thread Juan Quintela
Kevin Wolf wrote: > What is known today as bdrv_open2 becomes the new bdrv_open. All remaining > callers of the old function are converted to the new one. In some places they > even know the right format, so they should have used bdrv_open2 from the > beginning. > > Signed-off-by: Kevin Wolf I w

[Qemu-devel] [PATCH] Replace calls of old bdrv_open

2010-03-31 Thread Kevin Wolf
What is known today as bdrv_open2 becomes the new bdrv_open. All remaining callers of the old function are converted to the new one. In some places they even know the right format, so they should have used bdrv_open2 from the beginning. Signed-off-by: Kevin Wolf --- block.c | 24

[Qemu-devel] Re: [PATCH 00/17] v4: virtio-serial fixes, new abi for port discovery

2010-03-31 Thread Juan Quintela
Amit Shah wrote: > Hello, > > These patches rework the way ports are announced to the guests. A > control message is used to let the guest know a new port is > added. Initial port discovery and port hot-plug work via this way now. > > This was done to have the host and guest port numbering in sync

[Qemu-devel] Re: [questions] savevm|loadvm

2010-03-31 Thread Juan Quintela
Wenhao Xu wrote: > Hi, Juan, >I am fresh to both QEMU and KVM. But so far, I notice that QEMU > uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can > use and uses cpu_register_physical_memory_offset to register the same > memory to QEMU emulator, which means QEMU and KVM use th

[Qemu-devel] Re: [PATCH 16/17] virtio-serial: Discard data that guest sends us when ports aren't connected

2010-03-31 Thread Juan Quintela
Amit Shah wrote: Hi > +buf_size = iov_size(elem.out_sg, elem.out_num); > +buf = qemu_malloc(buf_size); > +ret = iov_to_buf(elem.out_sg, elem.out_num, buf, 0, buf_size); This is independent of the this series, but I think this idiom is going to be very common,

Re: [Qemu-devel] QEMU 0.12.3 and SCSI boot

2010-03-31 Thread Gerd Hoffmann
On 03/31/10 06:37, Gerhard Wiesinger wrote: On Mon, 29 Mar 2010, Gerd Hoffmann wrote: On 03/29/10 15:51, Kevin Wolf wrote: It actually searches the queue in case tag != s->current->tag, and it should most likely do the same for s->current == NULL ... Attached patch makes the rom boot for me.

[Qemu-devel] [PATCH 09/17] virtio-serial: Propagate errors in initialising ports / devices in guest

2010-03-31 Thread Amit Shah
If adding of ports or devices in the guest fails we can send out a QMP event so that management software can deal with it. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-ser

[Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Juan Quintela
Shahar Havivi wrote: > Two new monitor commands: adding ability to handle which keyboard qemu will > use and to see which keyboard are currently available. > +int do_keyboard_set(Monitor *mon, const QDict *qdict, QObject **ret_data) > +{ > +QEMUPutKbdEntry *cursor; > +int index = qdict_ge

[Qemu-devel] Re: [PATCH 1/2] Support for multiple keyboard devices

2010-03-31 Thread Juan Quintela
Shahar Havivi wrote: > Currently you get segfault when trying to remove keyboard (device_del > monitor command) because no keyboard handling is done. > > This patch add QEMUPutKbdEntry structure, handling each keyboard entry. > Adding a keyboard add to the list, removing keyboard select the previo

[Qemu-devel] [PATCH 07/17] virtio-serial: Remove redundant check for 0-sized write request

2010-03-31 Thread Amit Shah
The check for a 0-sized write request to a guest port is not necessary; the while loop below won't be executed in this case and all will be fine. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/virtio-serial-bus.c

[Qemu-devel] Re: block: more read-only changes, related to backing files

2010-03-31 Thread Kevin Wolf
[ Moving internal discussion to upstream list - with right address now ] Am 30.03.2010 17:44, schrieb Juan Quintela: > Kevin Wolf wrote: >> Am 30.03.2010 16:21, schrieb Juan Quintela: > >> >> So you would have a function that "almost closes" the image and another >> one that basically re-opens,

[Qemu-devel] [PATCH 13/17] virtio-serial: Handle scatter-gather buffers for control messages

2010-03-31 Thread Amit Shah
Current control messages are small enough to not be split into multiple buffers but we could run into such a situation in the future or a malicious guest could cause such a situation. So handle the entire iov request for control messages. Also ensure the size of the control request is >= what we

[Qemu-devel] [PATCH 10/17] virtio-serial: Send out guest data to ports only if port is opened

2010-03-31 Thread Amit Shah
Data should be written only when ports are open. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 33083af..236e300 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/vi

[Qemu-devel] [PATCH] e1000: fix build on Ubuntu with _FORTIFY_SOURCE

2010-03-31 Thread Thomas Monjalon
From: Thomas Monjalon There was a pointer cast warning on Ubuntu since _FORTIFY_SOURCE has been reenabled. _FORTIFY_SOURCE had been disabled by 4a24470497360d8b77568b83008d0e9d6eb0787d and reenabled by 849583050d5f6f782718be8cb50688978973fbea. Signed-off-by: Thomas Monjalon --- hw/e1000.c |

[Qemu-devel] [PATCH 08/17] virtio-serial: Update copyright year to 2010

2010-03-31 Thread Amit Shah
Signed-off-by: Amit Shah --- hw/virtio-console.c|2 +- hw/virtio-serial-bus.c |2 +- hw/virtio-serial.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio-console.c b/hw/virtio-console.c index 17b221d..6b8 100644 --- a/hw/virtio-console.c +++ b

[Qemu-devel] Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-31 Thread Michael S. Tsirkin
On Mon, Mar 29, 2010 at 11:59:24PM +0300, Avi Kivity wrote: > On 03/28/2010 10:48 PM, Cam Macdonell wrote: >> On Sat, Mar 27, 2010 at 11:48 AM, Avi Kivity wrote: >> >>> On 03/26/2010 07:14 PM, Cam Macdonell wrote: >>> > I'm not familiar with the uio internals, but for th

[Qemu-devel] [PATCH 14/17] virtio-serial: Handle scatter/gather input from the guest

2010-03-31 Thread Amit Shah
Current guests don't send more than one iov but it can change later. Ensure we handle that case. Signed-off-by: Amit Shah CC: Avi Kivity --- hw/virtio-serial-bus.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c

[Qemu-devel] [PATCH 11/17] iov: Introduce a new file for helpers around iovs, add iov_from_buf()

2010-03-31 Thread Amit Shah
The virtio-net code uses iov_fill() which fills an iov from a linear buffer. The virtio-serial-bus code does something similar in an open-coded function. Create a new iov.c file that has iov_from_buf(). Convert virtio-net and virtio-serial-bus over to use this functionality. virtio-net used ints

[Qemu-devel] [PATCH 12/17] iov: Add iov_to_buf and iov_size helpers

2010-03-31 Thread Amit Shah
iov_to_buf() puts the buffer contents in the iov in a linearized buffer. iov_size() gets the length of the contents in the iov. The iov_to_buf() function is the memcpy_to_iovec() function that was used in virtio-ballon.c. Signed-off-by: Amit Shah --- hw/iov.c| 37

[Qemu-devel] [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord'

2010-03-31 Thread Shahar Havivi
Two new monitor commands: adding ability to handle which keyboard qemu will use and to see which keyboard are currently available. $ info keyboard $ keyboard_set Signed-off-by: Shahar Havivi --- console.h |4 ++ input.c | 101 +

[Qemu-devel] [PATCH 1/2] Support for multiple keyboard devices

2010-03-31 Thread Shahar Havivi
Currently you get segfault when trying to remove keyboard (device_del monitor command) because no keyboard handling is done. This patch add QEMUPutKbdEntry structure, handling each keyboard entry. Adding a keyboard add to the list, removing keyboard select the previous keyboard in list. Signed-of

[Qemu-devel] [PATCH 0/2 v3] Qemu support for multiple keyboard devices

2010-03-31 Thread Shahar Havivi
v3: Changes by Markus comments, Patch #1 Change keyboard list pointer to qemu tail queue Patch #2 Add static index to keyboard entry Remove unused error messages Qemu support for multiple keyboard devices: Patch #1 adding keyboard is done to list instead of "last added keyboard

[Qemu-devel] [PATCH 16/17] virtio-serial: Discard data that guest sends us when ports aren't connected

2010-03-31 Thread Amit Shah
Before the earlier patch, we relied on incorrect virtio api usage to signal to the guest that a particular buffer wasn't consumed by the host. After fixing that, we now just discard the data the guest sends us while a host port is disconnected or doesn't have a handler registered for consuming dat

[Qemu-devel] [PATCH 17/17] virtio-serial: Implement flow control for individual ports

2010-03-31 Thread Amit Shah
Individual ports can now signal to the virtio-serial core to stop sending data if the ports cannot immediately handle new data. When a port later unthrottles, any data queued up in the virtqueue are sent to the port. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 24 +++

[Qemu-devel] [PATCH 15/17] virtio-serial: Apps should consume all data that guest sends out / Fix virtio api abuse

2010-03-31 Thread Amit Shah
We cannot indicate to the guest how much data was consumed by an app for out_bufs. So we just have to assume the apps will consume all the data that are handed over to them. Fix the virtio api abuse in control_out() and handle_output(). Signed-off-by: Amit Shah --- hw/virtio-console.c|

[Qemu-devel] [PATCH 05/17] virtio-serial: Use control messages to notify guest of new ports

2010-03-31 Thread Amit Shah
Allow the port 'id's to be set by a user on the command line. This is needed by management apps that will want a stable port numbering scheme for hot-plug/unplug and migration. Since the port numbers are shared with the guest (to identify ports in control messages), we just send a control message

[Qemu-devel] [PATCH 06/17] virtio-serial: whitespace: match surrounding code

2010-03-31 Thread Amit Shah
The virtio-serial code doesn't mix declarations and definitions, so separate them out on different lines. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 00e8616

[Qemu-devel] [PATCH 04/17] virtio-serial: save/load: Send target host connection status if different

2010-03-31 Thread Amit Shah
If the host connection to a port is closed on the destination machine after migration, whereas the connection was open on the source, the guest has to be informed of that. Similar for a host connection open on the destination. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 11 +

[Qemu-devel] [PATCH 03/17] virtio-serial: save/load: Ensure we have hot-plugged ports instantiated

2010-03-31 Thread Amit Shah
If some ports that were hot-plugged on the source are not available on the destination, fail migration instead of trying to deref a NULL pointer. Signed-off-by: Amit Shah Reported-by: Juan Quintela --- hw/virtio-serial-bus.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH 02/17] virtio-serial: save/load: Ensure nr_ports on src and dest are same.

2010-03-31 Thread Amit Shah
The number of ports on the source as well as the destination machines should match. If they don't, it means some ports that got hotplugged on the source aren't instantiated on the destination. Or that ports that were hot-unplugged on the source are created on the destination. Signed-off-by: Amit S

[Qemu-devel] [PATCH 01/17] virtio-serial: save/load: Ensure target has enough ports

2010-03-31 Thread Amit Shah
The target could be started with max_nr_ports for a virtio-serial device lesser than what was available on the source machine. Fail the migration in such a case. Signed-off-by: Amit Shah Reported-by: Juan Quintela --- hw/virtio-serial-bus.c | 13 +++-- 1 files changed, 11 insertions(+

[Qemu-devel] [PATCH 00/17] v4: virtio-serial fixes, new abi for port discovery

2010-03-31 Thread Amit Shah
Hello, These patches rework the way ports are announced to the guests. A control message is used to let the guest know a new port is added. Initial port discovery and port hot-plug work via this way now. This was done to have the host and guest port numbering in sync to avoid surprises after seve

  1   2   >