Re: [Qemu-devel] [PATCH 0/6] vnc: add support for multiple vnc server instances.

2014-10-15 Thread Daniel P. Berrange
On Wed, Oct 15, 2014 at 02:19:39PM +0200, Gerd Hoffmann wrote: > Hi, > > This patch series adds support for multiple vnc server instances to > qemu. This comes handy in multiseat configurations as you can have > one vnc server for each set then. > > Some cleanups along the way (use QemuOpts).

Re: [Qemu-devel] [PATCH 6/6] vnc: track & limit connections

2014-10-15 Thread Daniel P. Berrange
On Wed, Oct 15, 2014 at 04:19:29PM +0200, Gerd Hoffmann wrote: > Hi, > > > > The logic to apply the limit to connections in "connecting" state (this > > > is the state you are in *before* successfull authentication) is > > > slightly different: A new connect kicks out the oldest client which is

Re: [Qemu-devel] [PATCH 0/6] vnc: add support for multiple vnc server instances.

2014-10-15 Thread Daniel P. Berrange
On Wed, Oct 15, 2014 at 04:29:47PM +0200, Gerd Hoffmann wrote: > Hi, > > > > To be done: monitor support. I think the best way to handle this is to > > > introduce a new command to query vnc server state, which returns a list > > > of vnc servers but otherwise works like "query-vnc". Alternati

Re: [Qemu-devel] [PATCH 6/6] vnc: track & limit connections

2014-10-16 Thread Daniel P. Berrange
On Fri, Oct 17, 2014 at 02:34:07PM +0800, Gonglei wrote: > On 2014/10/16 18:46, Gerd Hoffmann wrote: > > > Hi, > > > >>> I try to prevent that by dropping the *oldest* connection, so you have a > >>> chance to connect even if a unprivileged attacker tries to use up all > >>> connection slots. >

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-17 Thread Daniel P. Berrange
On Fri, Oct 17, 2014 at 04:27:17PM +0800, haifeng@huawei.com wrote: > From: linhaifeng > > The VM start with share hugepage should close the hugefile fd > when exit.Because the hugepage fd may be send to other process > e.g vhost-user If qemu not close the fd the other process can > not free

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-17 Thread Daniel P. Berrange
On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhaifeng wrote: > > > On 2014/10/17 16:33, Daniel P. Berrange wrote: > > On Fri, Oct 17, 2014 at 04:27:17PM +0800, haifeng@huawei.com wrote: > >> From: linhaifeng > >> > >> The VM start with share hugep

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-20 Thread Daniel P. Berrange
On Sat, Oct 18, 2014 at 11:20:13AM +0800, Linhaifeng wrote: > > > On 2014/10/17 21:26, Daniel P. Berrange wrote: > > On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhaifeng wrote: > >> > >> > >> On 2014/10/17 16:33, Daniel P. Berrange wrote: > >>

Re: [Qemu-devel] spec, RFC: TLS support for NBD

2014-10-20 Thread Daniel P. Berrange
On Sat, Oct 18, 2014 at 07:33:22AM +0100, Richard W.M. Jones wrote: > On Sat, Oct 18, 2014 at 12:03:23AM +0200, Wouter Verhelst wrote: > > Hi all, > > > > (added rjones from nbdkit fame -- hi there) > > [I'm happy to implement whatever you come up with, but I've added > Florian Weimer to CC who i

Re: [Qemu-devel] spec, RFC: TLS support for NBD

2014-10-20 Thread Daniel P. Berrange
On Mon, Oct 20, 2014 at 01:51:43PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Mon, Oct 20, 2014 at 08:58:14AM +0100, Daniel P. Berrange wrote: > >> On Sat, Oct 18, 2014 at 07:33:22AM +0100, Richard W.M. Jones wrote: > >> > On Sat, Oct 18,

Re: [Qemu-devel] spec, RFC: TLS support for NBD

2014-10-21 Thread Daniel P. Berrange
On Tue, Oct 21, 2014 at 12:10:39AM +0200, Wouter Verhelst wrote: > On Mon, Oct 20, 2014 at 01:56:43PM +0200, Florian Weimer wrote: > > I cannot comment on whether the proposed STARTTLS command is at the correct > > stage of the NBD protocol. If there is a protocol description for NBD, I > > can ha

Re: [Qemu-devel] [PATCH 2/2] gtk: avoid gd_widget_reparent with gtk 3.14+

2014-10-23 Thread Daniel P. Berrange
On Thu, Oct 23, 2014 at 06:26:21PM +0200, Paolo Bonzini wrote: > > > On 10/23/2014 05:25 PM, Gerd Hoffmann wrote: > > gtk_widget_reparent is depricated in gtk 3.14. Unfortunaly the > > gtk_widget_{ref,unref} functions needed to to the same manually > > without having the widget destroyed while i

Re: [Qemu-devel] nbd-server / monitor to copy files/directory in to running VM.

2014-10-29 Thread Daniel P. Berrange
On Wed, Oct 29, 2014 at 03:20:28PM +, Stefan Hajnoczi wrote: > On Tue, Oct 28, 2014 at 10:02:21AM -0700, Jd wrote: > > qemu monitor seems to have command to open, write, close commands. I tried > > them and I could create a file (after going through encoding). How can I > > create a directory

Re: [Qemu-devel] [PATCH 1/2] add 'umask' option to -chardev

2014-09-02 Thread Daniel P. Berrange
On Tue, Sep 02, 2014 at 03:40:42PM +0800, Chunyan Liu wrote: > To use virtio-serial device, unix socket created for chardev with > default umask(022) has insufficient permissions. > > e.g. start kvm guest with: > -device virtio-serial \ > -chardev socket,path=/tmp/foo,server,nowait,id=foo \ > -dev

Re: [Qemu-devel] [PATCH 1/2] add 'umask' option to -chardev

2014-09-02 Thread Daniel P. Berrange
On Tue, Sep 02, 2014 at 03:08:51AM -0600, Chun Yan Liu wrote: > > > >>> On 9/2/2014 at 04:54 PM, in message <20140902085434.ga21...@redhat.com>, > "Daniel P. Berrange" wrote: > > On Tue, Sep 02, 2014 at 03:40:42PM +0800, Chunyan Liu wrote: >

Re: [Qemu-devel] [PATCH V2] fix: unix sockets created for virtio-serail has insufficient permissions

2014-09-03 Thread Daniel P. Berrange
On Wed, Sep 03, 2014 at 02:18:07PM +0800, Chunyan Liu wrote: > Add umask to _virCommand, allow user to set umask to command. > Set umask(002) to qemu process to overwrite default umask(022) so > that unix sockets created for virtio-serial has expected permissions. > > Fix problem reported here: >

Re: [Qemu-devel] [PATCH v13 5/6] raw-posix: Add full preallocation option

2014-09-04 Thread Daniel P. Berrange
On Thu, Sep 04, 2014 at 02:07:14PM +0100, Richard W.M. Jones wrote: > On Thu, Sep 04, 2014 at 02:52:57PM +0200, Kevin Wolf wrote: > > Am 04.09.2014 um 14:45 hat Richard W.M. Jones geschrieben: > > > On Thu, Sep 04, 2014 at 02:35:22PM +0200, Kevin Wolf wrote: > > > > Please change the code to always

Re: [Qemu-devel] [libvirt] NBD TLS support in QEMU

2014-09-04 Thread Daniel P. Berrange
On Thu, Sep 04, 2014 at 04:19:17PM +0200, Benoît Canet wrote: > The Wednesday 03 Sep 2014 à 17:44:17 (+0100), Stefan Hajnoczi wrote : > > Hi, > > QEMU offers both NBD client and server functionality. The NBD protocol > > runs unencrypted, which is a problem when the client and server > > communica

Re: [Qemu-devel] [libvirt] NBD TLS support in QEMU

2014-09-05 Thread Daniel P. Berrange
On Fri, Sep 05, 2014 at 08:23:17AM +0200, Michal Privoznik wrote: > On 03.09.2014 18:44, Stefan Hajnoczi wrote: > >Hi, > >QEMU offers both NBD client and server functionality. The NBD protocol > >runs unencrypted, which is a problem when the client and server > >communicate over an untrusted netwo

Re: [Qemu-devel] NBD TLS support in QEMU

2014-09-05 Thread Daniel P. Berrange
On Fri, Sep 05, 2014 at 12:02:18AM +0200, Wouter Verhelst wrote: > [Cc: to nbd-general list added] > > On Wed, Sep 03, 2014 at 05:44:17PM +0100, Stefan Hajnoczi wrote: > > Hi, > > QEMU offers both NBD client and server functionality. The NBD protocol > > runs unencrypted, which is a problem when

Re: [Qemu-devel] [PATCH v2 1/2] contrib: add ivshmem client and server

2014-07-21 Thread Daniel P. Berrange
On Mon, Jul 21, 2014 at 08:21:21AM -0600, Eric Blake wrote: > On 07/20/2014 03:38 AM, David Marchand wrote: > > When using ivshmem devices, notifications between guests can be sent as > > interrupts using a ivshmem-server (typical use described in documentation). > > The client is provided as a deb

Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI

2012-01-03 Thread Daniel P. Berrange
On Fri, Dec 23, 2011 at 10:08:11AM +0100, Paolo Bonzini wrote: > On 12/22/2011 09:51 PM, ronnie sahlberg wrote: > >The difference between qcow2 and iscsi and the problem is that .open() > >is called for all devices before the monitor is started, so .open() is > >called before we would have a chance

Re: [Qemu-devel] [PATCH v4 0/2]: qemu-ga: Add the guest-suspend command

2012-01-05 Thread Daniel P. Berrange
On Wed, Jan 04, 2012 at 05:45:11PM -0200, Luiz Capitulino wrote: > This version drops modes 'sleep' and 'hybrid' because they don't work > properly due to issues in qemu. Only the 'hibernate' mode is supported > for now. IMHO this is short-sighted. When the bugs QEMU in are fixed so that these mod

Re: [Qemu-devel] vhost broken?

2012-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2012 at 01:16:22PM +0200, Avi Kivity wrote: > On 01/05/2012 01:05 PM, Gerd Hoffmann wrote: > > Hi, > > > > current master seems to corrupt guest memory, I get guest errors like > > this one: > > > > swap_dup: Bad swap file entry 1999800080 > > BUG: Bad page map in process udevd p

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-05 Thread Daniel P. Berrange
On Wed, Jan 04, 2012 at 05:45:13PM -0200, Luiz Capitulino wrote: > diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c > index a09c8ca..19f29c6 100644 > --- a/qga/guest-agent-commands.c > +++ b/qga/guest-agent-commands.c > @@ -574,6 +574,61 @@ int64_t qmp_guest_fsfreeze_thaw(Error

Re: [Qemu-devel] [PATCH v4 0/2]: qemu-ga: Add the guest-suspend command

2012-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2012 at 10:37:14AM -0200, Luiz Capitulino wrote: > On Thu, 5 Jan 2012 10:16:30 + > "Daniel P. Berrange" wrote: > > > On Wed, Jan 04, 2012 at 05:45:11PM -0200, Luiz Capitulino wrote: > > > This version drops modes 'sleep' and 'h

Re: [Qemu-devel] [PATCH v4 0/2]: qemu-ga: Add the guest-suspend command

2012-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2012 at 09:04:57AM -0600, Michael Roth wrote: > On 01/05/2012 06:59 AM, Daniel P. Berrange wrote: > >On Thu, Jan 05, 2012 at 10:37:14AM -0200, Luiz Capitulino wrote: > >>On Thu, 5 Jan 2012 10:16:30 +0000 > >>"Daniel P. Berrange" wrote: > &g

Re: [Qemu-devel] [PATCH] GuestAgent: PIDFILE remains when daemon start fails

2012-01-06 Thread Daniel P. Berrange
On Thu, Jan 05, 2012 at 06:18:26PM -0600, Michael Roth wrote: > On 01/05/2012 04:26 PM, MATSUDA, Daiki wrote: > >Hi, all. > > > >I am trying QEMU Guest Agent and encountered a small bug. It is that the > >PIDFILE remains when daemon start fails. And maybe forgotton to g_free(). > > > >MATSUDA, Daik

Re: [Qemu-devel] [PATCH] GuestAgent: PIDFILE remains when daemon start fails

2012-01-06 Thread Daniel P. Berrange
On Fri, Jan 06, 2012 at 11:00:42AM -0600, Michael Roth wrote: > On 01/06/2012 04:56 AM, Daniel P. Berrange wrote: > >On Thu, Jan 05, 2012 at 06:18:26PM -0600, Michael Roth wrote: > >>On 01/05/2012 04:26 PM, MATSUDA, Daiki wrote: > >>>Hi, all. > >>> > &g

Re: [Qemu-devel] unknown keycodes

2012-01-12 Thread Daniel P. Berrange
On Thu, Jan 12, 2012 at 09:56:46AM +0100, Daniel Espling wrote: > Hi! > > getting the following message: > > unknown keycodes `empty_aliases(qwerty)', please report to > qemu-devel@nongnu.org > > I'm connecting to a ubuntu 10.04 server running qemu 1.0.50 forwarding X11. > Locally I'm on a Macb

Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd

2012-01-13 Thread Daniel P. Berrange
On Fri, Jan 13, 2012 at 04:47:35PM +0400, Michael Tokarev wrote: > On 13.01.2012 15:57, Stefan Hajnoczi wrote: > > On Fri, Jan 13, 2012 at 9:04 AM, Michael Tokarev wrote: > >> When qemu-nbd becomes a daemon it calls daemon(3) with > >> nochdir=0, so daemon(3) changes current directory to /. > >> B

Re: [Qemu-devel] unknown keycodes

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 08:04:32AM +0100, Daniel Espling wrote: > Hi Daniel, > > please find the output of xdpyinfo and xprop attached, I checked the output > from both the linux server side and the OSX client, but the only difference > is the "name of display" parameter so I included only that

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 03:08:53PM -0200, Luiz Capitulino wrote: > On Fri, 13 Jan 2012 14:48:04 -0700 > Eric Blake wrote: > > > > + > > > +pid = fork(); > > > +if (!pid) { > > > +char buf[32]; > > > +FILE *sysfile; > > > +const char *arg; > > >

[Qemu-devel] [PATCH] Remove O_NOATIME flag from 9pfs open() calls in readonly mode

2012-01-16 Thread Daniel P. Berrange
From: "Daniel P. Berrange" When 2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903 added support for the 'readonly' flag against 9p filesystems, it also made QEMU add the O_NOATIME flag as a side-effect. The O_NOATIME flag, however, may only be set by the file owner, or a user with C

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 02:02:08PM -0600, Michael Roth wrote: > On 01/16/2012 11:23 AM, Luiz Capitulino wrote: > >On Mon, 16 Jan 2012 15:18:37 -0200 > >Luiz Capitulino wrote: > > > >>On Mon, 16 Jan 2012 17:13:39 + > >>"Daniel P. Berrange" wr

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-16 Thread Daniel P. Berrange
On Mon, Jan 16, 2012 at 06:09:52PM -0200, Luiz Capitulino wrote: > +/* Try to find executable file 'file'. If it's found, its absolute path is > + returned in 'abs_path' and the function returns true. If it's not found, > + the function will return false and 'abs_path' will contain zeros */ >

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-17 Thread Daniel P. Berrange
On Tue, Jan 17, 2012 at 10:18:34AM -0200, Luiz Capitulino wrote: > On Mon, 16 Jan 2012 21:06:27 + > "Daniel P. Berrange" wrote: > > > +has_pmutils = find_executable_file(pmutils_bin, pmutils_path, > > > + sizeof(pmut

[Qemu-devel] [PATCH 0/2] Fix SDL keymapping when run against non-Linux X11 server

2012-01-17 Thread Daniel P. Berrange
The following two patches make the SDL display keymapping work correctly when QEMU is executed on Linux, but displayed on an OS-X or Win32 X11 server. As an added bonus, I included support for the SDL Quartz and Win32 video drivers, but I'm not clear if QEMU actually works with them. The changes a

[Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-17 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The SDL video display code needs to convert between the SDL keyboard event keycodes, and QEMU's internal keycode set (a variant of the xt coding). Currently the SDL code is only able todo this when it is built for X11, and running against a Linux X

[Qemu-devel] [PATCH 2/2] Add pre-generated keymaps

2012-01-17 Thread Daniel P. Berrange
From: "Daniel P. Berrange" To avoid the need for QEMU maintainers to have the perl Text::CSV module on their build machines, add pre-generated keymaps for each of the 6 conversions needed for QEMU's SDL driver --- ui/sdl_keymap_osx2rfb.c | 117

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-17 Thread Daniel P. Berrange
On Tue, Jan 17, 2012 at 07:35:06PM +, Daniel P. Berrange wrote: > diff --git a/Makefile b/Makefile > index 2bbc547..f776c30 100644 > --- a/Makefile > +++ b/Makefile > @@ -116,7 +116,45 @@ QEMU_CFLAGS+=$(GLIB_CFLAGS) > > ui/cocoa.o: ui/cocoa.m > > -ui/sdl.o aud

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Daniel P. Berrange
On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: > On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: > >From: "Daniel P. Berrange" > > > >The SDL video display code needs to convert between the SDL keyboard > >event keycodes, and QEMU's in

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Daniel P. Berrange
On Wed, Jan 18, 2012 at 11:47:12AM -0600, Anthony Liguori wrote: > On 01/18/2012 11:07 AM, Daniel P. Berrange wrote: > >On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: > >>On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: > >>>From: "Daniel P.

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: > On 2012-01-20 11:14, Marcelo Tosatti wrote: > > On Thu, Jan 19, 2012 at 07:01:44PM +0100, Jan Kiszka wrote: > >> On 2012-01-19 18:53, Marcelo Tosatti wrote: > What problems does it cause, and in which scenarios? Can't they be >

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: > On 2012-01-20 11:25, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 11:22:27AM +0100, Jan Kiszka wrote: > >> On 2012-01-20 11:14, Marcelo Tosatti wrote: > >>> On Thu, Jan 19, 2012 at 07:01:44PM +010

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: > On 2012-01-20 12:45, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 12:13:48PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 11:25, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 11:2

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 01:51:20PM +0100, Jan Kiszka wrote: > On 2012-01-20 13:42, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 01:00:06PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 12:45, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 12:1

Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-20 Thread Daniel P. Berrange
On Fri, Jan 20, 2012 at 02:02:03PM +0100, Jan Kiszka wrote: > On 2012-01-20 13:54, Daniel P. Berrange wrote: > > On Fri, Jan 20, 2012 at 01:51:20PM +0100, Jan Kiszka wrote: > >> On 2012-01-20 13:42, Daniel P. Berrange wrote: > >>> On Fri, Jan 20, 2012 at 01:0

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-13 Thread Daniel P. Berrange
On Mon, Mar 12, 2012 at 12:33:33PM +0200, Avi Kivity wrote: > On 03/12/2012 11:04 AM, Wen Congyang wrote: > > Do you have any other comments about this patch? > > > > Not really, but I'm not 100% convinced the patch is worthwhile. It's > likely to only be used by Linux, which has kexec facilities

Re: [Qemu-devel] [PATCH v2 4/5] console: pass Monitor to vga_hw_screen_dump/hw_vga_dump

2012-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2012 at 09:14:46AM +0100, Gerd Hoffmann wrote: > Hi, > > >> Some solutions that come to my mind: > >> > >> 1. Pool the screendump file creation from a timer. > >> > >> Cons: it may return before the file is fully written to disk > >> > > > > We know what the file size shoul

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2012 at 03:21:14PM +0530, Amit Shah wrote: > On (Wed) 14 Mar 2012 [16:29:50], Wen Congyang wrote: > > At 03/13/2012 06:47 PM, Avi Kivity Wrote: > > > On 03/13/2012 11:18 AM, Daniel P. Berrange wrote: > > >> On Mon, Mar 12, 2012 at 12:33:33PM +0200, A

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2012 at 06:58:47PM +0800, Wen Congyang wrote: > At 03/14/2012 06:52 PM, Avi Kivity Wrote: > > On 03/14/2012 12:52 PM, Wen Congyang wrote: > >>> > If so, is this channel visible to guest userspace? If the channle is > visible to guest > userspace, the program running

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2012 at 07:06:50PM +0800, Wen Congyang wrote: > At 03/14/2012 06:59 PM, Daniel P. Berrange Wrote: > > On Wed, Mar 14, 2012 at 06:58:47PM +0800, Wen Congyang wrote: > >> At 03/14/2012 06:52 PM, Avi Kivity Wrote: > >>> On 03/14/2012 12:52 PM, Wen Congy

Re: [Qemu-devel] [PATCH v2 4/5] console: pass Monitor to vga_hw_screen_dump/hw_vga_dump

2012-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2012 at 03:14:10PM +0200, Alon Levy wrote: > On Wed, Mar 14, 2012 at 09:32:58AM -0300, Luiz Capitulino wrote: > > On Wed, 14 Mar 2012 08:37:13 +0000 > > "Daniel P. Berrange" wrote: > > > > > > First, with this applied you will not kno

Re: [Qemu-devel] [PATCH 0/5] VMWare PVSCSI paravirtual device implementation

2012-03-15 Thread Daniel P. Berrange
On Thu, Mar 15, 2012 at 11:47:29AM +, Stefan Hajnoczi wrote: > On Thu, Mar 15, 2012 at 9:02 AM, Dmitry Fleytman > wrote: > > Below is the implementation of VMWare PVSCSI device and > > command line parameters to configure vendor name and product name > > for SCSI storage are implemented. > > L

Re: [Qemu-devel] [PATCH 8/9] vl: add -query-capabilities

2012-03-20 Thread Daniel P. Berrange
On Tue, Mar 20, 2012 at 08:49:11AM +0100, Gerd Hoffmann wrote: > On 03/19/12 16:09, Anthony Liguori wrote: > > This dumps the results of query-version, query-commands, and > > query-config-capabilities into a single JSON object on stdout. > > I think libvirt needs a query-devices too. Currently w

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-21 Thread Daniel P. Berrange
On Wed, Mar 21, 2012 at 06:25:16PM +0200, Avi Kivity wrote: > On 03/21/2012 06:18 PM, Corey Minyard wrote: > > > >> Look at drivers/char/ipmi/ipmi_msghandler.c. It has code to send panic > >> event over IMPI. The code is pretty complex. Of course if we a going to > >> implement something more compl

Re: [Qemu-devel] [RFC PATCH 06/17] block: use bdrv_{co, aio}_discard for write_zeroes operations

2012-03-26 Thread Daniel P. Berrange
On Sat, Mar 24, 2012 at 04:29:26PM +0100, Christoph Hellwig wrote: > On Wed, Mar 14, 2012 at 01:01:35PM +0100, Kevin Wolf wrote: > > Paolo mentioned a use case as a fast way for guests to write zeros, but > > is it really faster than a normal write when we have to emulate it by a > > bdrv_write wit

Re: [Qemu-devel] [PATCH] fix usb hid usage id table

2012-03-26 Thread Daniel P. Berrange
On Mon, Mar 26, 2012 at 09:54:39AM +, 홍도형 wrote: You appear to have mistakenly sent an HTML email to the list. You will probably want to resend this message in *plain text* format to ensure it gets attention from the QEMU maintainers. Regards, Daniel -- |: http://berrange.com -o-ht

Re: [Qemu-devel] [PATCH] RFC: options parse in vl.c should be moduled

2012-03-30 Thread Daniel P. Berrange
On Fri, Mar 30, 2012 at 08:36:43PM +0800, Wanpeng Li wrote: > Consider of the options parse process in main function of vl.c is too > long.It should be module into single function to clear ideas, strengthen > the source code management, and increase code readability.So I module the > process of op

Re: [Qemu-devel] Bug(?): Can't unset vnc password (v1.0)

2012-03-30 Thread Daniel P. Berrange
On Fri, Mar 30, 2012 at 03:57:15PM +0200, Reeted wrote: > In qemu-kvm 1.0 (from ubuntu Precise) I don't seem to be able to > UNSET the vnc password once it has been set via qemu monitor. > I can set it to "" which is empty password, but a VNC client > connecting still asks to enter a password. It d

Re: [Qemu-devel] [PATCH] Add support for fd: protocol

2011-05-23 Thread Daniel P. Berrange
On Fri, May 20, 2011 at 02:48:23PM -0400, Corey Bryant wrote: > sVirt provides SELinux MAC isolation for Qemu guest processes and their > corresponding resources (image files). sVirt provides this support > by labeling guests and resources with security labels that are stored > in file system exten

Re: [Qemu-devel] [PATCH] Add support for fd: protocol

2011-05-23 Thread Daniel P. Berrange
On Fri, May 20, 2011 at 02:48:23PM -0400, Corey Bryant wrote: > sVirt provides SELinux MAC isolation for Qemu guest processes and their > corresponding resources (image files). sVirt provides this support > by labeling guests and resources with security labels that are stored > in file system exten

Re: [Qemu-devel] [PATCH] Add support for fd: protocol

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 11:19:15AM +0100, Stefan Hajnoczi wrote: > On Mon, May 23, 2011 at 10:45 AM, Daniel P. Berrange > wrote: > > On Fri, May 20, 2011 at 02:48:23PM -0400, Corey Bryant wrote: > >> sVirt provides SELinux MAC isolation for Qemu guest processes and the

Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000

2011-05-23 Thread Daniel P. Berrange
On Fri, May 20, 2011 at 01:11:05PM -0500, Anthony Liguori wrote: > On 05/20/2011 01:03 PM, Richard W.M. Jones wrote: > > > >There seem to be a few unsafe uses of strto* functions. This patch > >just fixes the one that affects me :-) > > Sending an integer of this size is not valid JSON. > > Your

Re: [Qemu-devel] [PATCH] Add support for fd: protocol

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 07:50:12AM -0500, Anthony Liguori wrote: > On 05/23/2011 04:45 AM, Daniel P. Berrange wrote: > >On Fri, May 20, 2011 at 02:48:23PM -0400, Corey Bryant wrote: > >>sVirt provides SELinux MAC isolation for Qemu guest processes and their > >>correspon

Re: [Qemu-devel] [PATCH] Add support for fd: protocol

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 02:26:05PM +0100, Stefan Hajnoczi wrote: > On Mon, May 23, 2011 at 2:21 PM, Anthony Liguori wrote: > > On 05/23/2011 08:09 AM, Stefan Hajnoczi wrote: > >> > >> On Mon, May 23, 2011 at 1:50 PM, Anthony Liguori > >>  wrote: > >

Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 08:50:55AM -0500, Anthony Liguori wrote: > >>The actual value of the alert will surprise you :-) > >> > >>Integers in Javascript are actually represented as doubles > >>internally which means that integer constants are only accurate up > >>to 52 bits. > >> > >>So really, we

Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 04:29:55PM +0200, Markus Armbruster wrote: > Anthony Liguori writes: > > >>> The actual value of the alert will surprise you :-) > >>> > >>> Integers in Javascript are actually represented as doubles > >>> internally which means that integer constants are only accurate up

Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 10:24:07AM -0500, Anthony Liguori wrote: > On 05/23/2011 10:19 AM, Richard W.M. Jones wrote: > >On Mon, May 23, 2011 at 10:07:21AM -0500, Anthony Liguori wrote: > >>On 05/23/2011 09:29 AM, Markus Armbruster wrote: > >>>Anthony Liguori writes: > >>> > >>>JavaScript's implem

Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000

2011-05-23 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 10:59:29AM -0500, Anthony Liguori wrote: > On 05/23/2011 10:29 AM, Richard W.M. Jones wrote: > >On Mon, May 23, 2011 at 10:24:07AM -0500, Anthony Liguori wrote: > >>On 05/23/2011 10:19 AM, Richard W.M. Jones wrote: > >>What I suggested would let us work with any JSON client,

Re: [Qemu-devel] [PATCH 5/7] cpu model bug fixes and definition corrections

2011-05-24 Thread Daniel P. Berrange
On Mon, May 23, 2011 at 05:47:19PM -0400, john cooper wrote: > This patch was intended to address the replicated feature > flags in cpuid 8000_0001:edx from cpuid _0001:edx. > This is due to AMD's definition where these flags are > mostly cloned in the 8000_0001:edx cpuid function. > qemu64 att

Re: [Qemu-devel] block bug: tray status is not updated (and/or guest ignores it)

2011-05-27 Thread Daniel P. Berrange
On Fri, May 27, 2011 at 10:39:35AM -0300, Luiz Capitulino wrote: > On Fri, 27 May 2011 18:10:08 +0530 > Amit Shah wrote: > > > On (Fri) 27 May 2011 [17:04:30], Amit Shah wrote: > > > On (Fri) 27 May 2011 [17:01:35], Amit Shah wrote: > > > > On (Thu) 26 May 2011 [15:29:29], Luiz Capitulino wrote:

Re: [Qemu-devel] block bug: tray status is not updated (and/or guest ignores it)

2011-05-27 Thread Daniel P. Berrange
On Fri, May 27, 2011 at 04:35:24PM +0200, Markus Armbruster wrote: > "Daniel P. Berrange" writes: > > > On Fri, May 27, 2011 at 10:39:35AM -0300, Luiz Capitulino wrote: > >> On Fri, 27 May 2011 18:10:08 +0530 > >> Amit Shah wrote: > [...] > >

Re: [Qemu-devel] drop -enable-nesting

2011-05-31 Thread Daniel P. Berrange
On Mon, May 30, 2011 at 06:19:14PM +0300, Avi Kivity wrote: > On 05/30/2011 06:15 PM, Jan Kiszka wrote: > >On 2011-05-30 17:10, Roedel, Joerg wrote: > >> On Mon, May 30, 2011 at 11:04:02AM -0400, Jan Kiszka wrote: > >>> On 2011-05-30 16:38, Nadav Har'El wrote: > On Mon, May 30, 2011, Jan Ki

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Daniel P. Berrange
On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote: > > Hello, all, > > > > I have prepared to work on a feature called "Disk I/O limits" for > > qemu-kvm projeect. > > This feature will enable the user to cap disk I/

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Daniel P. Berrange
On Tue, May 31, 2011 at 10:10:37AM -0400, Vivek Goyal wrote: > On Tue, May 31, 2011 at 02:56:46PM +0100, Daniel P. Berrange wrote: > > On Tue, May 31, 2011 at 09:45:37AM -0400, Vivek Goyal wrote: > > > On Mon, May 30, 2011 at 01:09:23PM +0800, Zhi Yong Wu wrote:

Re: [Qemu-devel] [PATCH 5/5] QMP: add server mode to QEMUMonitorProtocol

2011-06-02 Thread Daniel P. Berrange
On Thu, Jun 02, 2011 at 12:19:22PM +1000, Brad Hards wrote: > On Thu, 2 Jun 2011 01:54:05 AM Luiz Capitulino wrote: > > QEMU supports socket chardevs that establish connections like a server > > or a client. > Is this protocol documented anywhere? There are docs for the QMP monitor in the QMP/ su

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-02 Thread Daniel P. Berrange
On Wed, Jun 01, 2011 at 04:35:03PM -0500, Anthony Liguori wrote: > On 06/01/2011 04:12 PM, Luiz Capitulino wrote: > >Hi there, > > > >There are people who want to use QMP for thin provisioning. That's, the VM is > >started with a small storage and when a no space error is triggered, more > >space

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Thu, Jun 02, 2011 at 03:01:24PM -0300, Luiz Capitulino wrote: > On Thu, 02 Jun 2011 09:02:30 -0500 > Anthony Liguori wrote: > > > On 06/02/2011 08:24 AM, Jiri Denemark wrote: > > > On Thu, Jun 02, 2011 at 08:08:35 -0500, Anthony Liguori wrote: > > >> On 06/

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: > On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: > >On Thu, Jun 02, 2011 at 03:01:24PM -0300, Luiz Capitulino wrote: > >>On Thu, 02 Jun 2011 09:02:30 -0500 > >>Anthony Liguori wrote: > >&g

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 08:26:56AM -0500, Anthony Liguori wrote: > On 06/03/2011 07:57 AM, Daniel P. Berrange wrote: > >On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: > >>On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: > >>errors stop a guest) in

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 08:51:29AM -0500, Anthony Liguori wrote: > On 06/03/2011 08:41 AM, Jan Kiszka wrote: > >On 2011-06-03 15:26, Anthony Liguori wrote: > >>I think what we're getting at is the need for an enumeration. So let's > >>introduce one. Here's what I propose: > >> > >>SQMP > >>query-

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-06 Thread Daniel P. Berrange
On Mon, Jun 06, 2011 at 08:08:51AM -0500, Anthony Liguori wrote: > On 06/06/2011 04:25 AM, Kevin Wolf wrote: > >Am 02.06.2011 20:09, schrieb Luiz Capitulino: > I'm ok with either way. But in case you meant the second one, I guess > we should make "reason" a dictionary so that we can group r

[Qemu-devel] QEMU 9pfs intentionally returning short reads ?

2011-06-10 Thread Daniel P. Berrange
I've been doing some work trying to run QEMU guests with a root filesystem exported from the host using virtio 9pfs. One of the issues that I have discovered is that the 9p FS running on QEMU appears to cap all reads at 4096 bytes[1]. Any larger read will return only partial data for plain files.

Re: [Qemu-devel] QEMU 9pfs intentionally returning short reads ?

2011-06-10 Thread Daniel P. Berrange
On Fri, Jun 10, 2011 at 05:36:13PM +0530, Aneesh Kumar K.V wrote: > On Fri, 10 Jun 2011 11:33:05 +0100, "Daniel P. Berrange" > wrote: > > I've been doing some work trying to run QEMU guests with a root filesystem > > exported from the host using virtio 9p

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-26 Thread Daniel P. Berrange
On Mon, Jul 25, 2011 at 06:23:17PM -0500, Anthony Liguori wrote: > We also need a way to future proof ourselves. > > == What we can do == > > 1) Add migration capabilities to future proof ourselves. I think > the simplest way this would work is to have a > 'query-migration-capabilities' command

Re: [Qemu-devel] [PATCH 2/3] Introduce a 'client_add' monitor command accepting an open FD

2011-07-26 Thread Daniel P. Berrange
On Tue, Jul 26, 2011 at 05:20:16PM +0200, Fabien Chouteau wrote: > On 23/06/2011 14:31, Daniel P. Berrange wrote: > > Allow client connections for VNC and socket based character > > devices to be passed in over the monitor using SCM_RIGHTS. > > > > Hello Daniel, >

Re: [Qemu-devel] [PATCH v3] Add support for fd: protocol

2011-07-27 Thread Daniel P. Berrange
On Wed, Jul 27, 2011 at 10:11:06AM +0200, Kevin Wolf wrote: > Am 26.07.2011 18:57, schrieb Corey Bryant: > diff --git a/block/cow.c b/block/cow.c > index 4cf543c..e17f8e7 100644 > --- a/block/cow.c > +++ b/block/cow.c > @@ -82,6 +82,11 @@ static int cow_open(BlockDrive

Re: [Qemu-devel] [PATCH v3] Add support for fd: protocol

2011-07-27 Thread Daniel P. Berrange
On Wed, Jul 27, 2011 at 10:36:25AM +0200, Kevin Wolf wrote: > Am 27.07.2011 10:22, schrieb Daniel P. Berrange: > > On Wed, Jul 27, 2011 at 10:11:06AM +0200, Kevin Wolf wrote: > >> Am 26.07.2011 18:57, schrieb Corey Bryant: > >>>>>> diff --git a/block/cow.

Re: [Qemu-devel] [PATCH] MinGW compilation shouldn't include -lglib-2.0 etc.

2011-07-27 Thread Daniel P. Berrange
On Wed, Jul 27, 2011 at 08:50:23AM -0700, Kenneth Salerno wrote: > Should check first if using a mingw compiler before forcing the addition of > -lglib-2.0, -liconv, and -lintl to $LIBS of config-target.mak. > > > Signed-off-by: Kenneth Salerno > --- configure.ORIG 2011-07-27 11:28:16.8593

Re: [Qemu-devel] [RFC] Introduce vm_stop_permanent()

2011-08-02 Thread Daniel P. Berrange
On Thu, Jul 28, 2011 at 10:31:43AM -0300, Luiz Capitulino wrote: > On Thu, 28 Jul 2011 10:23:22 +0300 > Avi Kivity wrote: > > > On 07/28/2011 12:44 AM, Blue Swirl wrote: > > > On Wed, Jul 27, 2011 at 9:42 PM, Luiz Capitulino > > > wrote: > > > > This function should be used when the VM is not

Re: [Qemu-devel] [libvirt] speeding up qemu core dumps

2011-08-04 Thread Daniel P. Berrange
On Wed, Aug 03, 2011 at 09:42:23PM -0600, Jim Fehlig wrote: > Eric Blake wrote: > > On 08/03/2011 08:37 AM, Jim Fehlig wrote: > >> http://lists.nongnu.org/archive/html/qemu-devel/2011-02/msg01156.html > >> > >> I thought there were more discussions on the topic but can only find the > >> above thre

Re: [Qemu-devel] -vga qxl

2011-08-04 Thread Daniel P. Berrange
On Thu, Aug 04, 2011 at 11:03:10AM -0500, Rick Vernam wrote: > it seems that qxl is not working correctly with any of the 0.15 releases thus > far. this includes qemu and qemu-kvm. > > when I start qemu like so: > qemu-system-x86_64 -cpu host -enable-kvm -m 768 -usb -vga qxl -monitor stdio > I g

Re: [Qemu-devel] -vga qxl

2011-08-05 Thread Daniel P. Berrange
On Thu, Aug 04, 2011 at 08:15:35PM +0200, Gerd Hoffmann wrote: > Hi, > > >I recently had black screen problems with QXL in 0.14.x that turned out to > >actually be a Seabios bug due to the default 64MB vram QXL has. > > It is a seabios issue indeed. > > >I suspect > >this would hit 0.15.x buil

Re: [Qemu-devel] -vga qxl

2011-08-05 Thread Daniel P. Berrange
On Fri, Aug 05, 2011 at 11:02:00AM +0200, Gerd Hoffmann wrote: > Hi, > > >>Patches are all upstream, so just fetching the latest seabios bits > >>(git master branch) and building yourself will work too. > > > >Great, is there an intention to rebase Seabios in QEMU to pull this in > >before the r

Re: [Qemu-devel] Safely reopening image files by stashing fds

2011-08-05 Thread Daniel P. Berrange
On Fri, Aug 05, 2011 at 10:27:00AM +0100, Stefan Hajnoczi wrote: > On Fri, Aug 5, 2011 at 10:04 AM, Paolo Bonzini wrote: > > On 08/05/2011 10:40 AM, Stefan Hajnoczi wrote: > >> > >> 4. Implement bdrv_reopen() > >> > >> First call bdrv_extract_fds() to stash the file descriptors, then close > >> th

Re: [Qemu-devel] [PATCH 2/3] Introduce a 'client_add' monitor command accepting an open FD

2011-08-08 Thread Daniel P. Berrange
On Sat, Aug 06, 2011 at 09:38:03AM -0500, Anthony Liguori wrote: > On 06/23/2011 07:31 AM, Daniel P. Berrange wrote: > >Allow client connections for VNC and socket based character > >devices to be passed in over the monitor using SCM_RIGHTS. > > > >One intended usage sce

Re: [Qemu-devel] [libvirt] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-08 Thread Daniel P. Berrange
On Mon, Aug 08, 2011 at 08:29:51AM -0500, Anthony Liguori wrote: > On 08/08/2011 03:42 AM, Shribman, Aidan wrote: > >Subject: [PATCH v4] XBZRLE delta for live migration of large memory apps > >From: Aidan Shribman > > > >By using XBZRLE (Xor Binary Zero Run-Length-Encoding) we can reduce VM > >dow

Re: [Qemu-devel] [libvirt] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-11 Thread Daniel P. Berrange
On Thu, Aug 11, 2011 at 11:17:09AM +0300, Avi Kivity wrote: > On 08/10/2011 10:27 PM, Anthony Liguori wrote: > >>This may be acceptable, wait until the entire migration cluster is > >>xzbrle capable before enabling it. If not, add a monitor command. > > > > > >1) xzbrle needs to be disabled by defa

Re: [Qemu-devel] [libvirt] [PATCH v4] XBZRLE delta for live migration of large memory apps

2011-08-11 Thread Daniel P. Berrange
On Wed, Aug 10, 2011 at 02:27:41PM -0500, Anthony Liguori wrote: > On 08/10/2011 11:40 AM, Avi Kivity wrote: > Instead of teaching management tools how to deal with all of these > things, let's just fix this problem once. It just takes: > > a) A query-migration-caps command that returns a dict wi

<    1   2   3   4   5   6   7   8   9   10   >