Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Jorge Lucángeli Obes
On 8/14/07, Anthony Liguori <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-08-13 at 20:39 +0100, Thiemo Seufer wrote: > > Jorge Lucángeli Obes wrote: > > [snip] > > > When I read Avi's TODO, I basically thought about getting rid of the > > > long command lines I had to store in scripts. I wanted to wr

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Anthony Liguori
On Mon, 2007-08-13 at 20:39 +0100, Thiemo Seufer wrote: > Jorge Lucángeli Obes wrote: > [snip] > > When I read Avi's TODO, I basically thought about getting rid of the > > long command lines I had to store in scripts. I wanted to write that > > command line once, and then forgetting about it, unti

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Thiemo Seufer
Philip Boulain wrote: > On 13 Aug 2007, at 20:39, Thiemo Seufer wrote: >> Instead of inventing great and wonderfully complicated schemes, the >> most sensible way I can think of is to recycle a feature which is now >> implemented in the GNU toolchain, and apparently stems from Windows: >> qemu @q

[Qemu-devel] Incorrect handling of interrupted syscalls

2007-08-13 Thread Florian Zumbiehl
Hi, when trying to write a driver that provides a ppdev-compatible API but forwards the data written to the parport to a userspace program, I noticed that Qemu (0.8.2-4etch1 from Debian Etch, but the changelog of 0.9.0 doesn't look like it has been fixed there) doesn't handle interrupted system ca

Re: [Qemu-devel] Re: [kvm-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Thiemo Seufer
Luca Tettamanti wrote: [snip] > I've implemented some of my suggestions in the following patch - rebased > to kvm-userspace current git since it's easier to test (...ok, I'm lazy - > but you get the idea): > > > diff --git a/qemu/configure b/qemu/configure > index 365b7fb..38373db 100755 > --- a/

[Qemu-devel] Re: [kvm-devel] Storing command line options in images

2007-08-13 Thread Jernej Simončič
On Tuesday, August 14, 2007, 0:21:42, Philip Boulain wrote: >> qemu @qemu.cfg > I'm not familiar with that. Is it just GNU bash shorthand for qemu > `cat qemu.cfg` ? GNU bash does not have that shorthand, but @file is very similar to `cat file` (the practice was born in DOS days, because the

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Philip Boulain
On 13 Aug 2007, at 20:39, Thiemo Seufer wrote: Instead of inventing great and wonderfully complicated schemes, the most sensible way I can think of is to recycle a feature which is now implemented in the GNU toolchain, and apparently stems from Windows: qemu @qemu.cfg I'm not familiar with th

[Qemu-devel] Re: [kvm-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Luca Tettamanti
Il Mon, Aug 13, 2007 at 05:42:55PM +0300, Dan Kenigsberg ha scritto: > "Dynamic ticks" in Qemu: have a SIGALRM generated only when it is > needed, instead of every 1 millisecond. This patch requires that the > host supports high resolution timers, since it arms a POSIX timer to the > nearest Qemu

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Christian MICHON
On 8/13/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: > Instead of inventing great and wonderfully complicated schemes, the > most sensible way I can think of is to recycle a feature which is now > implemented in the GNU toolchain, and apparently stems from Windows: > > qemu @qemu.cfg > > where qem

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Thiemo Seufer
Jorge Lucángeli Obes wrote: [snip] > When I read Avi's TODO, I basically thought about getting rid of the > long command lines I had to store in scripts. I wanted to write that > command line once, and then forgetting about it, until I needed to > change it. Instead of inventing great and wonderfu

Re: [Qemu-devel] PATCH 8/8: document all VNC authentication options

2007-08-13 Thread Daniel P. Berrange
This patch updates the user documentation to detail the new syntax options for VNC server configuration. It moves all the display related options into a combined logical section for clarity. It documents the different deployment secenarios possible with the new VNC server capabilities and their sec

Re: [Qemu-devel] PATCH 7/8: custom location for x509 cert paths

2007-08-13 Thread Daniel P. Berrange
This final code patch extends the VNC server config syntax so that the x509 and x509verify flags both use a path following them. This path is then used to determine the filenames for the CA certificate & revocation list, and the server certificate & private key. If the path containing the certifica

Re: [Qemu-devel] PATCH 6/8: x509 client certificate verification

2007-08-13 Thread Daniel P. Berrange
This patch adds support for requesting and validating client certificates. In effect the client certificates are being used as the authentication mechansim, making VNC passwords unccessary, though using a combination of both is also possible. Example usage of just certificate verification qemu

Re: [Qemu-devel] PATCH 5/8: x509 certificate for server

2007-08-13 Thread Daniel P. Berrange
This patch adds support for using x509 certificates on the server end. The server needs a CA certificate, and its own certificate and private key. A CA revocation list is optional. This this patch the file names are hardcoded. The next-but-one patch will make them configurable. The use of x509 cer

Re: [Qemu-devel] PATCH 4/8: VeNCrypt basic TLS support

2007-08-13 Thread Daniel P. Berrange
This patch introduces minimal support for the VeNCrypt protocol extension. This layers use of TLS (aka SSL) into the VNC data stream, providing session encryption. This patch is the bare minimum protocol support. It is enabled by using the 'tls' option flag eg "-vnc :1,tls' This is not secure on it

Re: [Qemu-devel] PATCH 3/8: VNC password authentication

2007-08-13 Thread Daniel P. Berrange
This patch introduces support for VNC protocols upto 3.8 and with it, support for password based authentication. VNC's password based authentication is not entirely secure, but it is a standard and the RFB spec requires that all clients support it. The password can be provided by using the monitor

Re: [Qemu-devel] PATCH 2/8: Extend monitor 'change' command for VNC

2007-08-13 Thread Daniel P. Berrange
This patch extends the QEMU monitor 'change' command so that it can be used to change the configuration of the VNC server. On the command line the user can use -vnc none, and then issue the 'change vnc :1' command later from the monitor. This is utilized in the next patch to let the monitor fetch a

Re: [Qemu-devel] PATCH 1/8: Refactor VNC server setup API

2007-08-13 Thread Daniel P. Berrange
This patch splits the vnc_display_init function into two parts, the resulting vnc_display_init function merely initializes a little state. The new vnc_display_open function is responsible for starting the server. This refactoring is in preparation for the next patch. Signed-off-by: Daniel P. Be

[Qemu-devel] PATCH 0/8: Authentication support for the VNC server

2007-08-13 Thread Daniel P. Berrange
The current VNC server implementation does not have support for the authentication of incoming client connections. The following series of patches provide support for a number of alternatives, all compliant with the VNC protocol spec. The simplest mechanism (and the weakest) is the traditional VNC

[Qemu-devel] PATCH: Avoid SEGV in IOHandler dispatch

2007-08-13 Thread Daniel P. Berrange
The code in main_loop_wait() which handles dispatching of IOHandlers only checks the 'deleted' flag once per iteration. If a handler was registered for both read & write events initially, and the read callback removes the handler, then the write callback will be set to NULL. If select() reported th

[Qemu-devel] [PATCH] qemu: reset buffer pointers after CR/LF

2007-08-13 Thread Jim Paris
If readline_handle_byte() is sent both a CR and LF, and readline_start() is not called after the first CR, then the LF will cause the same command to be executed a second time. Fix this by explicitly resetting the buffer pointers when it is processed. Signed-off-by: Jim Paris <[EMAIL PROTECTED]>

[Qemu-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Dan Kenigsberg
"Dynamic ticks" in Qemu: have a SIGALRM generated only when it is needed, instead of every 1 millisecond. This patch requires that the host supports high resolution timers, since it arms a POSIX timer to the nearest Qemu timer's expiry time (which might be rather near). I tried to send a previous

[Qemu-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Dan Kenigsberg
"Dynamic ticks" in qemu: have a SIGALRM generated only when it is needed, instead of every 1 millisecond. This patch requires that the host supports high resolution timers, since it arms a POSIX timer to the nearest Qemu timer's expiry time (which might be rather near). Note that I raise a flag ca

[Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Luca
On 8/13/07, Daniel P. Berrange <[EMAIL PROTECTED]> wrote: > On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote: > > Luca Tettamanti wrote: > > Something like: > > > > - try to use HPET (unless -no-rtc selected) > > - try to use RTC (unless -no-rtc selected) > > - fallback to normal unix fa

[Qemu-devel] [PATCH] Set apic instance number for savevm

2007-08-13 Thread Avi Kivity
This allows save/restore (and live migration on kvm) of smp guests. Index: hw/apic.c === RCS file: /sources/qemu/qemu/hw/apic.c,v retrieving revision 1.13 diff -u -r1.13 apic.c --- hw/apic.c 3 Apr 2007 16:38:34 - 1.13 +++

Re: [kvm-devel] [Qemu-devel] [PATCH 4/4][RFC] Add logic to QEMU to read command line options from qcow2 images

2007-08-13 Thread Anthony Liguori
On Mon, 2007-08-13 at 02:34 -0300, Jorge Lucángeli Obes wrote: > On 8/11/07, Anthony Liguori <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-11 at 22:28 +0100, Philip Boulain wrote: > > > This works, so long as qemu disregards "-read-args-from-image" unless it's > > > being called as an interpreter

[Qemu-devel] CASIMIR is out :)

2007-08-13 Thread GUERRAZ Francois
Hello everybody ! I'm sorry to use this list to do some "advertising" but it is closely related to Qemu :) I've developing web-based hypervisor for Qemu/KVM for my company. It is released under the GPLv2 and available in alpha version here : http://www.fgv6.net/spip.php?nid=3&article17 ATM instr

[Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Daniel P. Berrange
On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote: > Luca Tettamanti wrote: > > Linux operates the HPET timer in legacy replacement mode, which means that > > the > > periodic interrupt of the CMOS RTC is not delivered (qemu won't be able to > > use > > /dev/rtc). Add support for HPET (/

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Christian MICHON
On 8/13/07, Laurent Vivier <[EMAIL PROTECTED]> wrote: > I know we are not in democracy, but if I can vote I'd like to vote to the idea > of Christian Brunschen... > > We can modify qemu to test if the argument is a directory, if yes, it reads > args > from file args in this directory and for secur

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: > Jorge Lucángeli Obes wrote: My feeling is that config files are outdated. When used with a gui, you end up writing silly parsers and stuff and still wrecking things horribly when the the gui writer's expectations don't match reality. When used without a gui,

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Avi Kivity
Jorge Lucángeli Obes wrote: My feeling is that config files are outdated. When used with a gui, you end up writing silly parsers and stuff and still wrecking things horribly when the the gui writer's expectations don't match reality. When used without a gui, they increase the amount of details o

[Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Avi Kivity
Luca Tettamanti wrote: Linux operates the HPET timer in legacy replacement mode, which means that the periodic interrupt of the CMOS RTC is not delivered (qemu won't be able to use /dev/rtc). Add support for HPET (/dev/hpet) as a replacement for the RTC; the periodic interrupt is delivered via SI