Re: [Qemu-devel] [PATCH 05/35] tcg-s390: Icache flush is a no-op.

2010-06-10 Thread Aurelien Jarno
On Thu, Jun 10, 2010 at 03:04:04PM -0700, Richard Henderson wrote: > On 06/09/2010 03:55 PM, Aurelien Jarno wrote: > > On Fri, Jun 04, 2010 at 12:14:13PM -0700, Richard Henderson wrote: > >> Before gcc 4.2, __builtin___clear_cache doesn't exist, and > >> afterward the gcc s390 backend implements it

[Qemu-devel] [PATCH v3] qemu: kvm: Enable XSAVE live migration support

2010-06-10 Thread Sheng Yang
Signed-off-by: Sheng Yang --- qemu-kvm-x86.c| 109 - qemu-kvm.c| 24 +++ qemu-kvm.h| 28 + target-i386/cpu.h |5 ++ target-i386/kvm.c |2 + target-i386/machine.c | 20 ++

[Qemu-devel] about qemu monitor

2010-06-10 Thread jbuy0710
Hi I created a full virtualized DOM-U by XEN which is emulated by qemu-dm, and I dont know hot to monitor it's disk and network in DOM-0. I know I can press CTRL-ALT-2 to access the monitor, but it should be done in dom-U. Is there any solution to get the disk and network information of dom-U  in

Re: [Qemu-devel] [PATCH 05/35] tcg-s390: Icache flush is a no-op.

2010-06-10 Thread Richard Henderson
On 06/09/2010 03:55 PM, Aurelien Jarno wrote: > On Fri, Jun 04, 2010 at 12:14:13PM -0700, Richard Henderson wrote: >> Before gcc 4.2, __builtin___clear_cache doesn't exist, and >> afterward the gcc s390 backend implements it as nothing. > > Does it means that instruction and data caches are cohere

[Qemu-devel] [PATCH 0/8] QMP: Introduce query-netdev

2010-06-10 Thread Miguel Di Ciurcio Filho
This series introduces the protocol specification for querying the backend network devices and a monitor command to show the same information. Patch 01 adds a new function qdict_to_qstring(). Patch 02 adds the documentation for query-netdev. Patch 03 adds a new QDict member to VLANClientState na

[Qemu-devel] [PATCH-V6 04/10] virtio-9p: Security model for chown

2010-06-10 Thread Venkateswararao Jujjuri (JV)
mapped model changes the owner in the extended attributes. passthrough model does the change through lchown() as the server don't need to follow the link and client will send the actual filesystem object. Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |2 +- hw/virtio-9p-loc

[Qemu-devel] PATCH-V6 0/10] virtio-9p:Introducing security model for VirtFS

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch series introduces the security model for VirtFS. Brief description of this patch series: It introduces two type of security models for VirtFS. They are: mapped and passthrough. The following is common to both security models. * Client's VFS determines/enforces the access control. L

[Qemu-devel] [PATCH 2/8] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-10 Thread Miguel Di Ciurcio Filho
These commands show the information about active backend network devices. Signed-off-by: Miguel Di Ciurcio Filho --- qemu-monitor.hx | 53 + 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/qemu-monitor.hx b/qemu-monitor.hx ind

[Qemu-devel] [PATCH 3/8] net: Introduce VLANClientState->info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
There is no standard format when formatting VLANClientState.info_str, so it is difficult to extract information and transmit it over QMP. This patch adds info_dict, a QDict to better handle this information. Signed-off-by: Miguel Di Ciurcio Filho --- net.h |1 + 1 files changed, 1 insertion

[Qemu-devel] [PATCH-V6 08/10] virtio-9p: Security model for symlink and readlink

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Mapped mode stores extended attributes in the user space of the extended attributes. Given that the user space extended attributes are available to regular files only, special files are created as regular files on the fileserver and appropriate mode bits are added to the extended attributes. This m

[Qemu-devel] [PATCH-V6 06/10] virtio-9p: Security model for create/open2

2010-06-10 Thread Venkateswararao Jujjuri (JV)
In the mapped security model, VirtFS server intercepts and maps the file object create and get/set attribute requests. Files on the fileserver will be created with VirtFS servers (QEMU) user credentials and the client-users credentials are stored in extended attributes. On the request to get attrib

[Qemu-devel] [RFC v2] [PATCH 0/3] Monitor Support for 'simple' trace backend

2010-06-10 Thread Prerna Saxena
This is v2 of monitor commands based on Stefan's trace framework : ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) This adds the following monitor commands for the 'simple' backend: - info trace: to view current contents of the trace buffer. - info tracepoints

Re: [Qemu-devel] [PATCH 06/35] tcg-s390: Allocate the code_gen_buffer near the main program.

2010-06-10 Thread Richard Henderson
On 06/09/2010 03:59 PM, Aurelien Jarno wrote: >> +start = (void *)0x9000UL; > > Is there any reason for this address? The default link address for the main application is 0x8000, so this is near-by. r~

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-10 Thread Richard Henderson
On 06/10/2010 03:28 AM, Aurelien Jarno wrote: >> +asm volatile(".word 0xb2b0,0x1000" >> + : "=r"(r0) : "0"(0), "r"(r1) : "memory", "cc"); > > Wouldn't it be possible to use the instruction directly instead of > dumping the opcode values? Same below No, they aren't recognized b

[Qemu-devel] [PATCH 8/8] monitor/net: introduce 'info netdev' with QMP support

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- monitor.c |8 + net.c | 96 + net.h |2 + 3 files changed, 106 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 15b53b9..0038214 100644 --- a/monitor

[Qemu-devel] [PATCH 6/8] net: socket: introduce info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- net/socket.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/net/socket.c b/net/socket.c index 1c4e153..aad9eb8 100644 --- a/net/socket.c +++ b/net/socket.c @@ -28,6 +28,7 @@ #include "net.h" #include "qemu

[Qemu-devel] [PATCH 1/8] QObject API: introduce qdict_to_qstring() function

2010-06-10 Thread Miguel Di Ciurcio Filho
This is a helper function that converts a QDict to a QString, using the format: key1=value1 SEP key2=value2 SEP key3=value3 Handy for debugging and formating the Monitor output. Signed-off-by: Miguel Di Ciurcio Filho --- qdict.c | 60 ++

[Qemu-devel] [PATCH-V2] [virtio-9p] Implement TLINK for 9P2000.L

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Create a Hardlink. SYNOPSIS size[4] Tlink tag[2] dfid[4] oldfid[4] newpath[s] size[4] Rlink tag[2] DESCRIPTION Create a link 'newpath' in directory pointed by dfid linking to oldfid path. Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-debug.c |9 + hw/virtio-9p.c

[Qemu-devel] [PATCH 4/8] net: tap/tap-win32: introduce info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- net/tap-win32.c |6 ++ net/tap.c | 20 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/net/tap-win32.c b/net/tap-win32.c index 74348da..3833592 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -32

[Qemu-devel] [RFC v2] [PATCH 3/3] Toggle tracepoint state

2010-06-10 Thread Prerna Saxena
This patch adds support for dynamically enabling/disabling of tracepoints. Monitor commands added : 1) info tracepoints : to view all available tracepoints and their state. 2) tracepoint NAME on|off : to enable/disable data logging from a

[Qemu-devel] [PATCH v2 0/3] Add virtio-blk support to persistent-storage rules

2010-06-10 Thread Ryan Harper
This patch series provides updates to udev to allow the creation symlinks for virtio-blk devices, specifically disk/by-id and disk/by-path. This is most useful for virtio-blk devices that do not yet have any filesystem for which a UUID can be extracted (disk/by-uuid). These patches (save the path

[Qemu-devel] [PATCH 7/8] net: slirp: introduce info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- net/slirp.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/net/slirp.c b/net/slirp.c index b41c60a..5735009 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -32,6 +32,10 @@ #include "monitor.h" #include "sysemu.h

[Qemu-devel] [PATCH-V6 03/10] virtio-9p: Security model for chmod

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |2 +- hw/virtio-9p-local.c | 11 +++ hw/virtio-9p.c |5 - 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 307bd1e..1c8d89b 100644 --- a/hw/file-op-9

[Qemu-devel] [PATCH-V6 10/10] virtio-9p: Implement Security model for mksock using mknod.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch uses mknod to create socket. On Host/Fileserver: -rw---. 1 virfsuid virtfsgid 0 2010-05-11 09:57 asocket1 On Guest/Client: srwxr-xr-x 1 guestuser guestuser 0 2010-05-11 12:57 asocket1 Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |1 - hw/virtio-9p-local.c

[Qemu-devel] [PATCH-V6 09/10] virtio-9p: Implement Security model for mknod

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Mapped mode stores extended attributes in the user space of the extended attributes. Given that the user space extended attributes are available to regular files only, special files are created as regular files on the fileserver and appropriate mode bits are added to the extended attributes. This m

[Qemu-devel] [PATCH] [virtio-9p] Define and implement TSYMLINK for 9P2000.L

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch implements creating a symlink for TSYMLINK request and responds with RSYMLINK. In the case of error, we return RERROR. SYNOPSIS size[4] Tsymlink tag[2] fid[4] name[s] symtgt[s] gid[4] size[4] Rsymlink tag[2] qid[13] DESCRIPTION Create a symbolic link named 'name' poi

[Qemu-devel] Re: [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Richard Henderson
On 06/10/2010 11:55 AM, Aurelien Jarno wrote: > On Thu, Jun 10, 2010 at 04:51:24PM +0200, Thomas Monjalon wrote: >> My guest Linux/PPC cannot boot on my host x86 since this commit: >> 5d8a4f8f: tcg-i386: Merge 64-bit generation >> >> This is the output: >> zImage starting: loaded at 0x400

[Qemu-devel] [PATCH-V6 02/10] virtio-9p: Make infrastructure for the new security model.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
This patch adds required infrastructure for the new security model. Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h | 20 +++ hw/virtio-9p-local.c | 65 +++--- hw/virtio-9p.c | 23 - 3 files chang

[Qemu-devel] [PATCH-V6 07/10] virtio-9p: Security model for mkdir

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |2 +- hw/virtio-9p-local.c | 35 +-- hw/virtio-9p.c | 12 +--- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index b345189..12

[Qemu-devel] [PATCH-V6 05/10] virtio-9p: Implemented Security model for lstat and fstat

2010-06-10 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-local.c | 62 ++--- 1 files changed, 58 insertions(+), 4 deletions(-) diff --git a/hw/virtio-9p-local.c b/hw/virtio-9p-local.c index 1d7cb32..74c81a6 100644 --- a/hw/virtio-9p-local.c +++ b/hw/v

[Qemu-devel] [RFC v2] [PATCH 1/3] Export tdb_hash()

2010-06-10 Thread Prerna Saxena
For now, I simply export tdb_hash() from qdict.h for use by tracing framework. Luiz suggested renaming and exporting it from a location other than qdict.h . Would "qemu-common.h" be a better place? Signed-off-by: Prerna Saxena --- qdict.c |2 +- qdict.h |2 ++ 2 files changed, 3 inser

[Qemu-devel] [RFC v2] [PATCH 2/3] Monitor command 'info trace'

2010-06-10 Thread Prerna Saxena
This introduces the monitor command 'info trace' to display current contents of trace buffer. Signed-off-by: Prerna Saxena --- configure |3 +++ monitor.c | 12 qemu-monitor.hx |4 simpletrace.c | 12 tracetool |2 ++ 5 files ch

Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host.

2010-06-10 Thread Richard Henderson
On 06/10/2010 03:22 AM, Aurelien Jarno wrote: > Wouldn't it be better to actually pass the whole flag to > tcg_gen_helper32(), so that we can in the future also support mixed > signedness in arguments? Also doing it here looks like a bit like a > magic constant. I suppose that's possible. > This

[Qemu-devel] [PATCH 5/8] net: vde: introduce info_dict

2010-06-10 Thread Miguel Di Ciurcio Filho
Signed-off-by: Miguel Di Ciurcio Filho --- net/vde.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/net/vde.c b/net/vde.c index 0b46fa6..0fe7c09 100644 --- a/net/vde.c +++ b/net/vde.c @@ -31,6 +31,9 @@ #include "qemu-char.h" #include "qemu-common.h" #include "q

[Qemu-devel] [PATCH-V6 01/10] virtio-9p: Introduces an option to specify the security model.

2010-06-10 Thread Venkateswararao Jujjuri (JV)
The new option is: -fsdev fstype,id=myid,path=/share_path/,security_model=[mapped|passthrough] -virtfs fstype,path=/share_path/,security_model=[mapped|passthrough],mnt_tag=tag In the case of mapped security model, files are created with QEMU user credentials and the client-user's credentials are

[Qemu-devel] Re: [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Aurelien Jarno
On Thu, Jun 10, 2010 at 04:51:24PM +0200, Thomas Monjalon wrote: > My guest Linux/PPC cannot boot on my host x86 since this commit: > 5d8a4f8f: tcg-i386: Merge 64-bit generation > > This is the output: > zImage starting: loaded at 0x40 (sp: 0x004e5eb0) > inflate returned -3 m

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi, > Trying to guess the relevant descriptors: > >VideoStreaming Interface Descriptor: >bLength50 >bDescriptorType36 >bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) >bFrameIndex

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread David S. Ahern
On 06/10/10 12:26, Natalia Portillo wrote: > Hi David, > >> Attempting to try out your patches, but it's failing with the following: >> >> usb-uvc: Init called >> usb-uvc: Trying to open /dev/video0 >> .usb-uvc: Device opened correctly. >> usb-uvc: Querying capabilities. >> usb-uvc: Device drive

[Qemu-devel] [Bug 546458] Re: kernel NULL pointer in -virtual (-server) kernel

2010-06-10 Thread C de-Avillez
Just to confirm -- still present, 10.04 LTS up-to-date, UEC images also 10.04 up-to-date. A 2,000 run creating KVM instances under Eucalyptus shows 6 occurences of this OOPS: WARNING:INSTANCE i-3EDE078A:[ 129.998256] BUG: unable to handle kernel NULL pointer dereference at 0358 WARNING:INSTA

Re: [Qemu-devel] [PATCH] main: allocate gui_timer only once.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:38 AM, Isaku Yamahata wrote: > fix memory leak. > there is no need to allocate more than one gui_timer. > > Signed-off-by: Isaku Yamahata > --- >  vl.c |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/vl.c b/vl.c > index 417

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi David, > Attempting to try out your patches, but it's failing with the following: > > usb-uvc: Init called > usb-uvc: Trying to open /dev/video0 > .usb-uvc: Device opened correctly. > usb-uvc: Querying capabilities. > usb-uvc: Device driver: uvcvideo > usb-uvc: Device name: Laptop_Integrated_W

Re: [Qemu-devel] [RFC PATCH 1/2] USB Video Class device emulation.

2010-06-10 Thread Natalia Portillo
Hi Blue, You're right on all things. I'll check CODING_STYLE and do the things. Thanks a lot.

Re: [Qemu-devel] [PATCH] vga-isa-mm: remove one #ifdef CONFIG_BOCHS_VBE.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:37 AM, Isaku Yamahata wrote: > remove one #ifdef CONFIG_BOCHS_VBE. > Call vga_init_vbe() instead. > > Signed-off-by: Isaku Yamahata > --- >  hw/vga-isa-mm.c |    6 +- >  1 files changed, 1 insertions(+), 5 deletions(-) > > diff --git a/hw/vga-isa-mm

Re: [Qemu-devel] [PATCH] multiboot: compilation fix with DEBUG_MULTIBOOT enabled.

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:37 AM, Isaku Yamahata wrote: > This patch fixes the following compilation errors in multiboot.c > when DEBUG_MULTIBOOT is defined. > Use TARGET_FMT_plx instead of %x for target_phys_addr_t. > >  CC    i386-softmmu/multiboot.o > cc1: warnings being treate

Re: [Qemu-devel] [PATCH] qbus: fix memory leak in qbus_free()

2010-06-10 Thread Blue Swirl
Thanks, applied. On Thu, May 27, 2010 at 5:35 AM, Isaku Yamahata wrote: > BusState::name is allocated in qbus_create_inplace(). > So it should be freed by qbus_free(). > > Signed-off-by: Isaku Yamahata > --- >  hw/qdev.c |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git

Re: [Qemu-devel] [RFC PATCH 0/2] Add USB Video Class device emulation.

2010-06-10 Thread David S. Ahern
On 06/08/10 09:34, Natalia Portillo wrote: > Hi, > > This currently adds an emulated USB webcam compliant with USB Video Class > Specification 1.0a. > > It only works on Linux guests and feeds the emulated device using a > Video4Linux 2 host device, as long as it supports 320x240 MJPEG format

Re: [Qemu-devel] [Bug 592028] [NEW] sparc32plus user test failed

2010-06-10 Thread Blue Swirl
On Thu, Jun 10, 2010 at 5:56 AM, kruglov.dima wrote: > Public bug reported: > > Hello, > > I try to execute on linux machine sparc binary (simple hello word > application) using qemu-sparc32plus > and get segfault.Before test I copy all libraries and headers > (/usr/lib, /lib/, /usr/local/lib /us

[Qemu-devel] RFC v2: blockdev_add & friends, brief rationale, QMP docs

2010-06-10 Thread Markus Armbruster
v2: Cover protocols Split blockdev_change into media_insert and media_remove Option syntax list TODOs Rationale: Why new commands for block devices? == We want a clean separation between host part and guest part. Existing -drive and drive_

Re: [Qemu-devel] [PATCH 22/22] machine: introduce -machine-def option to define a machine via config

2010-06-10 Thread Daniel P. Berrange
On Mon, Jun 07, 2010 at 07:50:14PM -0500, Anthony Liguori wrote: > On 06/07/2010 06:52 PM, Anthony Liguori wrote: > >Since we have MachineCore and can represent a machine entirely via default > >options, we can introduce a new option that let's us dynamically register a > >machine based on those op

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Paolo Bonzini
On 06/10/2010 06:32 PM, Markus Armbruster wrote: I understand why that's the most sensible cache setting. But if the user explicitly asks for something else, I think we better give it to him, or tell him no. Ignoring him silently isn't nice. Ah, it's clearer now... I guess one could use cach

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Markus Armbruster
Paolo Bonzini writes: > On 06/02/2010 06:55 PM, Markus Armbruster wrote: >> * Like -drive, -blockdev ignores cache= silently when snapshot=on. Do >>we really want that? > > Yes, the changes are throw-away by definition. Might as well use > cache=unsafe. I understand why that's the most sen

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Paul Brook
> > > to the identify the device. It should probably do this the same way > > > that we identify the saved state for the device. Currently I think > > > this is an arbitrary vmstate name/id, but I expect this to change to a > > > qdev address (e.g. /i440FX-pcihost/pci.0/_addr_04.0"). > > > > Ok,

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: > On Wed, 2010-06-09 at 13:18 +0100, Paul Brook wrote: > > to the identify the device. It should probably do this the same way that we > > identify the saved state for the device. Currently I think this is an > > arbitrary vmstate name/id, bu

[Qemu-devel] Re: [PULL] pci,virtio

2010-06-10 Thread Anthony Liguori
On 06/10/2010 08:56 AM, Michael S. Tsirkin wrote: The following changes since commit 0ffbba357c557d9fa5caf9476878a4b9c155a614: migration-exec: fix OpenBSD build warning (2010-06-04 20:01:07 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qe

[Qemu-devel] Re: [PATCH 07/13] blockdev: Means to destroy blockdev only if made with drive_init()

2010-06-10 Thread Markus Armbruster
Kevin Wolf writes: > Am 02.06.2010 18:55, schrieb Markus Armbruster: >> All drives are still made that way. They get destroyed along with >> their device. That's inappropriate for the alternative way to make >> blockdevs that will appear later in this series. These won't have a >> DriveInfo. >

[Qemu-devel] Re: [PATCH 14/19] Add a query-argv command to QMP

2010-06-10 Thread Paolo Bonzini
On 06/07/2010 05:01 PM, Anthony Liguori wrote: On 06/07/2010 09:42 AM, Daniel P. Berrange wrote: Add a new QMP command called 'query-argv' to information about the command line arguments supported by the QEMU binary. This is intended to remove the need for apps to parse '-help' output. This is

[Qemu-devel] Re: [PATCH 13/13] blockdev: New -blockdev to define a host block device

2010-06-10 Thread Paolo Bonzini
On 06/02/2010 06:55 PM, Markus Armbruster wrote: * Like -drive, -blockdev ignores cache= silently when snapshot=on. Do we really want that? Yes, the changes are throw-away by definition. Might as well use cache=unsafe. +if (snapshot) { +/* always use write-back with snapsho

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Thu, 2010-06-10 at 15:49 +0100, Paul Brook wrote: > > On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > > > I may have been a bit misleading here. What we really want to do is use > > > > the same matching algorithm as is used by the rest of the device > > > > state. Currently this is

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Wed, 2010-06-09 at 21:36 +0100, Paul Brook wrote: > > > Not really. This identifier is device and bus independent, which is why > > > I suggested passing the device to qemu_ram_alloc. This can then figure > > > out how to the identify the device. It should probably do this the same > > > way t

[Qemu-devel] [BUG] tcg-i386: regression after merge 64-bit

2010-06-10 Thread Thomas Monjalon
My guest Linux/PPC cannot boot on my host x86 since this commit: 5d8a4f8f: tcg-i386: Merge 64-bit generation This is the output: zImage starting: loaded at 0x40 (sp: 0x004e5eb0) inflate returned -3 msg: invalid literal/lengths set -- Thomas

[Qemu-devel] RE: [RFC] Moving the kvm ioapic, pic, and pit back to userspace

2010-06-10 Thread Dong, Eddie
>> A VF interrupt usually happens in 4-8KHZ. How about the virtio? >> I assume virtio will be widely used together w/ leagcy guest with >> INTx mode. >> > > True, but in time it will be replaced by MSI. > > Note without vhost virtio is also in userspace, so there are lots of > exits anyway for

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Paul Brook
> On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > > I may have been a bit misleading here. What we really want to do is use > > > the same matching algorithm as is used by the rest of the device > > > state. Currently this is a vmstate name and [arbitrary] numeric id. I > > > don't reme

Re: [Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread Jes Sorensen
On 06/10/10 12:49, tekditt wrote: > Well, I forgot something to mention. Again: > > I can boot the install CDs of Windows XP and Windows Server 2003 if I > DON'T use any floppy drive. -fda/-fdb FILE as well as -drive > file=FILE,if=floppy are causing this bug, the bug not to be able to boot > thes

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-10 Thread Alex Williamson
On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > I may have been a bit misleading here. What we really want to do is use the > > same matching algorithm as is used by the rest of the device state. > > Currently > > this is a vmstate name and [arbitrary] numeric id. I don't remember whet

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Anthony Liguori
On 06/10/2010 08:08 AM, Kevin Wolf wrote: Am 10.06.2010 14:53, schrieb Anthony Liguori: On 06/10/2010 04:43 AM, Kevin Wolf wrote: Huh, why this? Seems I still haven't understood all of qcow2 then... I always thought that there's just a specific offset where VM state starts, but no exp

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 10.06.2010 16:11, schrieb Avi Kivity: > On 06/10/2010 04:08 PM, Kevin Wolf wrote: >> It's just not seen by the guest because >> it's saved at a high offset that is after the end of the real disk >> content, but otherwise it should behave the same as guest data. >> > > That's very unfriendly

[Qemu-devel] Re: [PATCH 07/13] blockdev: Means to destroy blockdev only if made with drive_init()

2010-06-10 Thread Kevin Wolf
Am 02.06.2010 18:55, schrieb Markus Armbruster: > All drives are still made that way. They get destroyed along with > their device. That's inappropriate for the alternative way to make > blockdevs that will appear later in this series. These won't have a > DriveInfo. > > blockdev_detach() destr

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Avi Kivity
On 06/10/2010 04:08 PM, Kevin Wolf wrote: It's just not seen by the guest because it's saved at a high offset that is after the end of the real disk content, but otherwise it should behave the same as guest data. That's very unfriendly towards extending the guest-visible portion of the dis

[Qemu-devel] [PULL] pci,virtio

2010-06-10 Thread Michael S. Tsirkin
The following changes since commit 0ffbba357c557d9fa5caf9476878a4b9c155a614: migration-exec: fix OpenBSD build warning (2010-06-04 20:01:07 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Amit Shah (1): net: Fix hotp

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 10.06.2010 14:53, schrieb Anthony Liguori: > On 06/10/2010 04:43 AM, Kevin Wolf wrote: >> >> Huh, why this? Seems I still haven't understood all of qcow2 then... I >> always thought that there's just a specific offset where VM state >> starts, but no explicit end. >> > > A live snapshot can

[Qemu-devel] [Bug 538908] Re: qemu-system-cris crashes after a few seconds

2010-06-10 Thread Edgar E. Iglesias
Hi, You need to provide a boot/kernel image. What you are seeing is that QEMU boots into empty memory, the CPU just executes NOP's until it hits an address that is not backed by anything so it bails out. I've commited a patch that bails out earlier with an error message if there was no image to b

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Anthony Liguori
On 06/10/2010 04:43 AM, Kevin Wolf wrote: Huh, why this? Seems I still haven't understood all of qcow2 then... I always thought that there's just a specific offset where VM state starts, but no explicit end. A live snapshot can last for a very long time. What happens if you need to alloc

Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Paul Brook
> For usb hid devices: No idea how they work and whenever we can put them > into sleep somehow (with/without guest cooperation). The issue with USB is that it is (by design) a polled system. The UHCI adapter has to wakeup every 1ms to read transfer descriptors from guest RAM. Until recently ther

Re: [Qemu-devel] [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 08:16:19AM -0500, Anthony Liguori wrote: >> --- /dev/null >> +++ b/async-work.c >> @@ -0,0 +1,136 @@ >> +/* >> + * Async work support >> + * >> + * Copyright IBM, Corp. 2010 >> + * >> + * Authors: >> + * Aneesh Kumar K.V >> + * >> + * This work is licensed under the terms o

Re: [Qemu-devel] Re: [PATCH V3 1/3] qemu: Add qemu-wrappers for pthread_attr_t

2010-06-10 Thread Gautham R Shenoy
On Fri, Jun 04, 2010 at 03:19:34PM +0200, Corentin Chary wrote: > On Fri, Jun 4, 2010 at 3:07 PM, Anthony Liguori wrote: > > On 06/03/2010 07:31 AM, Paolo Bonzini wrote: > >> > >> On 06/03/2010 10:56 AM, Gautham R Shenoy wrote: > >>> > >>> Add qemu wrappers for pthread_attr_t handling. > >> > >> T

Re: [Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread Michael Tokarev
10.06.2010 14:49, tekditt wrote: Well, I forgot something to mention. Again: I can boot the install CDs of Windows XP and Windows Server 2003 if I DON'T use any floppy drive. -fda/-fdb FILE as well as -drive file=FILE,if=floppy are causing this bug, the bug not to be able to boot these install C

[Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread tekditt
I admit I used -L wrong, but that's not the issue. I don't need to specify it, because QEMU finds the right directory itself. My problem is, the installer CD hangs also if I add -hda/-hdb. The setup should be able to boot anyway, even without any hard drive. It's possible that the CD image could b

[Qemu-devel] [Bug 586420] Re: WinXP install cd hangs at boot time if machine started with floppy

2010-06-10 Thread tekditt
Well, I forgot something to mention. Again: I can boot the install CDs of Windows XP and Windows Server 2003 if I DON'T use any floppy drive. -fda/-fdb FILE as well as -drive file=FILE,if=floppy are causing this bug, the bug not to be able to boot these install CDs. -- WinXP install cd hangs at

Re: [Qemu-devel] Disable PS/2 mouse

2010-06-10 Thread Peter Lieven
Gerd Hoffmann wrote: On 06/10/2010 09:12 AM, Dor Laor wrote: On 06/09/2010 05:35 PM, Gerd Hoffmann wrote: Hi, with 0.12.4 it is still the case that a total idle vm takes about 6-8% of a 2.4GHz Xeon Core. I see that order of magitude too, no matter whenever usb is on or off. With older qemu

Re: [Qemu-devel] [PATCH 2/2] virtio-blk: simplify multiwrite calling conventions

2010-06-10 Thread Kevin Wolf
Am 08.06.2010 18:26, schrieb Christoph Hellwig: > Pass the MultiReqBuffer structure down all the way to the I/O submission > instead of takin it apart. Also mark num_writes unsigned as it can't > go negative, and take the check for any pending I/O requests into the > submission function. Last but

[Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events

2010-06-10 Thread Juan Quintela
Luiz Capitulino wrote: > On Wed, 9 Jun 2010 14:10:53 +0200 > Juan Quintela wrote: > >> This is a resent with what we agreed on yesterday call. >> Migration events would be there for 0.13 until we get proper >> async command support. > > Something which is not clear to me is the set of events we

[Qemu-devel] Re: [PATCH v3 3/5] QMP: Introduce MIGRATION events

2010-06-10 Thread Juan Quintela
Luiz Capitulino wrote: > On Wed, 9 Jun 2010 14:10:56 +0200 > Juan Quintela wrote: >> +MIGRATION_FAILED >> + >> + >> +Emitted when migration fails (both is source and target). Notice >> +that this event will be changed for 0.14 when we have infrastructure >> +to emit a QError wh

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:23PM -0700, Richard Henderson wrote: > Verify that we have all the instruction extensions that we generate. > Future patches can tailor code generation to the set of instructions > that are present. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c

Re: [Qemu-devel] [PATCH 14/35] tcg-s390: Rearrange register allocation order.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:22PM -0700, Richard Henderson wrote: > Try to avoid conflicting with the outgoing function call arguments. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 23 +-- > 1 files changed, 13 insertions(+), 10 deletions(-) This p

Re: [Qemu-devel] [PATCH 12/35] tcg-s390: Define TCG_TMP0.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:20PM -0700, Richard Henderson wrote: > Use a define for the temp register instead of hard-coding it. > > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 54 ++-- > 1 files changed, 29 insertions(+), 25 d

Re: [Qemu-devel] [PATCH 13/35] tcg-s390: Tidy regset initialization; use R14 as temporary.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:21PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 26 -- > 1 files changed, 12 insertions(+), 14 deletions(-) This patch looks fine. > diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-

Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:15PM -0700, Richard Henderson wrote: > Some hosts (amd64, ia64) have an ABI that ignores the high bits > of the 64-bit register when passing 32-bit arguments. Others, > like s390x, require the value to be properly sign-extended for > the type. I.e. "int32_t" must be

Re: [Qemu-devel] [PATCH 11/35] tcg-s390: Tidy unimplemented opcodes.

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:19PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/s390/tcg-target.c | 25 ++--- > 1 files changed, 10 insertions(+), 15 deletions(-) > > diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c > index 55f0fa

Re: [Qemu-devel] [PATCH 10/35] tcg-s390: New TCG target

2010-06-10 Thread Aurelien Jarno
On Fri, Jun 04, 2010 at 12:14:18PM -0700, Richard Henderson wrote: > We already have stubs for a TCG target on S390, but were missing code that > would actually generate instructions. > > So I took Uli's patch, cleaned it up and present it to you again :-). > > I hope I found all odd coding style

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-10 Thread Kevin Wolf
Am 09.06.2010 18:22, schrieb Anthony Liguori: > On 06/09/2010 10:31 AM, Daniel P. Berrange wrote: >>> However, libvirt was counting on this feature and on the snapshot commands >>> to switch from the text Monitor. We have two options: >>> >>> 1. Ask them to wait one more release (not so good fo

[Qemu-devel] Re: [PATCH 6/6] apic: avoid using CPUState internals

2010-06-10 Thread Paolo Bonzini
On 06/09/2010 09:59 PM, Blue Swirl wrote: struct APICState { -CPUState *cpu_env; +void *cpu_env; I proposed having an opaque CPUState type in hw/ but it was rejected. But I don't think using a void pointer is any better. It's not necessary for the patch. Maybe it's possible to avoid

[Qemu-devel] [PATCH 15/17] Make os_change_process_uid and os_change_root os-posix.c local

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen os_change_process_uid() and os_change_root() are now only called from os-posix.c, so no need to keep win32 stubs for them. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c |8 qemu-os-posix.h |2 -- qemu-o

[Qemu-devel] [PATCH 11/17] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Introduce OS specific cmdline argument handling by calling os_parse_cmd_args() at the end of switch() statement. Move option enum to qemu-options.h and have it included from os-posix.c and os-win32.c in addition to vl.c. In addition move SMB argument to os-posix.c Signed-off-

[Qemu-devel] [PATCH 13/17] Move chroot handling to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move chroot handling to OS specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 19 +++ qemu-os-posix.h |1 + qemu-os-win32.h |1 + vl.c| 18 +- 4 files

[Qemu-devel] [PATCH 12/17] Move runas handling from vl.c to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move code to handle runas, ie. change of user id of QEMU process to OS specific files and provide dummy stub for Win32. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 28 qemu-os-posix.h

[Qemu-devel] [PATCH 17/17] Move set_proc_name() to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move handling to change process name to POSIX specific files plus add a better error message to cover the case where the feature isn't supported. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 24

[Qemu-devel] [PATCH 10/17] Rename qemu-options.h to qemu-options.def

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Rename qemu-options.h to qemu-options.def as it is not a header file for general use and this leaves space for a proper qemu-options.h Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- Makefile.objs |4 ++-- vl.c |6 +++---

[Qemu-devel] [PATCH 08/17] Move main signal handler setup to os specificfiles.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move main signal handler setup to os specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 27 +++ qemu-os-posix.h |2 ++ qemu-os-win32.h |3 +++ vl.c| 33 +-

[Qemu-devel] [PATCH 14/17] Move daemonize handling to OS specific files

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move daemonize handling from vl.c to OS specific files. Provide dummy stubs for Win32. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c | 102 os-win32.c |5 ++

[Qemu-devel] [PATCH 16/17] Move line-buffering setup to OS specific files.

2010-06-10 Thread Jes . Sorensen
From: Jes Sorensen Move line-buffering setup to OS specific files. Signed-off-by: Jes Sorensen Acked-by: Juan Quintela Acked-by: Richard Henderson --- os-posix.c |5 + qemu-os-posix.h |1 + qemu-os-win32.h |2 ++ vl.c|5 + 4 files changed, 9 insertion

  1   2   >