[PATCH] Support for USB host device auto disconnect.

2008-08-01 Thread Max Krasnyansky
I got really annoyed by the fact that you have to manually do usb_del in the monitor when host device is unplugged and decided to fix it :) Basically we now automatically remove guest USB device when the actual host device is disconnected. At first I've extended set_fd_handlerX() stuff to support

[PATCH] Generic packet handler cleanup and documentation

2008-08-01 Thread Max Krasnyansky
A bit better documentation of the USB device API, namely return codes. Rewrite of usb_generic_handle_packet() to make it more reable and easier to follow. Signed-off-by: Max Krasnyansky <[EMAIL PROTECTED]> --- qemu/hw/usb.c | 265 +++-- qemu/hw

[PATCH] Extra debugging for Linux USB host.

2008-08-01 Thread Max Krasnyansky
Print details and status of the control and bulk transfers. Signed-off-by: Max Krasnyansky <[EMAIL PROTECTED]> --- qemu/usb-linux.c | 29 ++--- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/qemu/usb-linux.c b/qemu/usb-linux.c index 78f4b2a..97842c9 100

[PATCH] Support for USB host device auto connect.

2008-08-01 Thread Max Krasnyansky
QEMU can now automatically grab host USB devices that match the filter. For now I just extended 'host:X.Y' and 'host:VID:PID' syntax to handle wildcards. So for example if you do something like usb_add host:5.* QEMU will automatically grab any non-hub device with host address 5.*. Same with the

Re: Can several guests run simultaneously on KVM

2008-08-01 Thread David Mair
Stephen Liu wrote: --- David Mair <[EMAIL PROTECTED]> wrote: Stephen Liu wrote: Hi folks, Can I run serveral guests on KVM at the same time similar to VMware hypervisor? Yes. -- Hi David. Thanks for your advice. Any document for reference? Assuming you have done a configure/make

Re: Can several guests run simultaneously on KVM

2008-08-01 Thread Stephen Liu
--- David Mair <[EMAIL PROTECTED]> wrote: > Stephen Liu wrote: > > Hi folks, > > > > > > Can I run serveral guests on KVM at the same time similar to VMware > > hypervisor? > > Yes. > > -- Hi David. Thanks for your advice. Any document for reference? On googling I only found; Re: [

[RFC][PATCH] Add HPET emulation to qemu (v2)

2008-08-01 Thread Beth Kon
Major changes: - Rebased to register-based operations for ease of save/restore. - Looked through Xen's hpet implementation and picked up a bunch of things, though not quite everything yet. Thanks! - PIT and RTC are entirely disabled in legacy mode, not just their interrupts. There is still

Re: Can several guests run simultaneously on KVM

2008-08-01 Thread David Mair
Stephen Liu wrote: Hi folks, Can I run serveral guests on KVM at the same time similar to VMware hypervisor? Yes. -- David. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

Can several guests run simultaneously on KVM

2008-08-01 Thread Stephen Liu
Hi folks, Can I run serveral guests on KVM at the same time similar to VMware hypervisor? Thanks B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PRO

Re: How to connect USB enclosue to guest

2008-08-01 Thread Stephen Liu
--- Javier Guerra <[EMAIL PROTECTED]> wrote: > On Fri, Aug 1, 2008 at 10:41 AM, Stephen Liu <[EMAIL PROTECTED]> > wrote: > > Hi folks, > > > > > > Ubuntu 8.04 server amd64 - host > > Ubuntu 6.06 server amd64 - guest > > KVM 1:62+dfsq > > UBS enclosure > > > > > > Please advise how to mount the US

Re: [PATCH]: pointer to vmcs getting lost

2008-08-01 Thread Jesse
Thanks for the feedback. Comments inline. Marcelo Tosatti wrote: Hi Jesse, On Fri, Aug 01, 2008 at 03:18:52PM -0700, Jesse wrote: Greetings, I noticed a race condition when running two guests simultaneously and debugging both guests (on 64-bit intel cpus). Periodically I would get erro

[RFC][PATCH] Add HPET emulation to qemu (v2)

2008-08-01 Thread Beth Kon
Major changes: - Rebased to register-based operations for ease of save/restore. - Looked through Xen's hpet implementation and picked up a bunch of things, though not quite everything yet. Thanks! - PIT and RTC are entirely disabled in legacy mode, not just their interrupts. There is still

Re: [PATCH]: pointer to vmcs getting lost

2008-08-01 Thread Marcelo Tosatti
Hi Jesse, On Fri, Aug 01, 2008 at 03:18:52PM -0700, Jesse wrote: > Greetings, > > I noticed a race condition when running two guests simultaneously and > debugging both guests (on 64-bit intel cpus). Periodically I would get > errors from the vmread, vmwrite, or vmresume instructions. Some res

[patch 2/2] KVM: x86: do not execute halted vcpus (v2)

2008-08-01 Thread Marcelo Tosatti
Offline or uninitialized vcpu's can be executed if requested to perform userspace work. Follow Avi's suggestion to handle halted vcpu's in the main loop, simplifying kvm_emulate_halt(). Introduce a new vcpu->requests bit to indicate events that promote state from halted to running. Also standard

[patch 0/2] do not run halted vcpu's

2008-08-01 Thread Marcelo Tosatti
Avi Kivity wrote: > Any reason this is not in __vcpu_run()? > > Our main loop could look like > > while (no reason to stop) > if (runnable) >enter guest > else >block > deal with aftermath > > kvm_emulate_halt would then simply modify the mp state. Like t

[patch 1/2] KVM: x86: set debug registers after "schedulable" section

2008-08-01 Thread Marcelo Tosatti
The vcpu thread can be preempted after the guest_debug_pre() callback, resulting in invalid debug registers on the new vcpu. Move it inside the non-preemptable section. Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: kvm/arch/x86/kvm/x86.c ==

[PATCH]: pointer to vmcs getting lost

2008-08-01 Thread Jesse
Greetings, I noticed a race condition when running two guests simultaneously and debugging both guests (on 64-bit intel cpus). Periodically I would get errors from the vmread, vmwrite, or vmresume instructions. Some research revealed that these errors were being caused by having an invalid vmc

Re: Balloon device in qemu?

2008-08-01 Thread Anthony Liguori
Marcelo Tosatti wrote: On Thu, Jul 31, 2008 at 04:01:54PM +0300, Avi Kivity wrote: Marcelo, the balloon was last seen drifting over your territory. Care to brush it up and send it over? Anthony rewrote the backend, I think this is the latest version: http://www.archivum.info/[EMAIL

Re: Balloon device in qemu?

2008-08-01 Thread Marcelo Tosatti
On Thu, Jul 31, 2008 at 04:01:54PM +0300, Avi Kivity wrote: > Marcelo, the balloon was last seen drifting over your territory. Care > to brush it up and send it over? Anthony rewrote the backend, I think this is the latest version: http://www.archivum.info/[EMAIL PROTECTED]/2008-04/msg00080.ht

kvm-72 rhel4 (2.6.9-derived) i386 guest - rtl8139 stalling; lost interrupts?

2008-08-01 Thread Charles Duffy
I have observed downloads to stall on an RHEL4 i386 guest (on an x86_64 host), such that creating additional network traffic (ie. pinging the virtual host in question) will "unstick" the download. This does not happen to a RHEL5 x86_64 guest on the same host, and is quite reliably reproducible

Re: [PATCH] kvm: bios: Put AP boot up code to 0x1000

2008-08-01 Thread H. Peter Anvin
Avi Kivity wrote: IIRC the rombios32.c writes to the memory it is in, so it expects RAM, not ROM. kvm doesn't support ROM, so it would work. Qemu doesn't, so it would fail. You can specify either RAM or ROM in Qemu, but you have to edit the C code. If you need RAM in the low 640K, your c

Re: How to connect USB enclosue to guest

2008-08-01 Thread Javier Guerra
On Fri, Aug 1, 2008 at 10:41 AM, Stephen Liu <[EMAIL PROTECTED]> wrote: > Hi folks, > > > Ubuntu 8.04 server amd64 - host > Ubuntu 6.06 server amd64 - guest > KVM 1:62+dfsq > UBS enclosure > > > Please advise how to mount the USB enclosure to guest. It can be > mounted on host. Pointer would be a

How to connect USB enclosue to guest

2008-08-01 Thread Stephen Liu
Hi folks, Ubuntu 8.04 server amd64 - host Ubuntu 6.06 server amd64 - guest KVM 1:62+dfsq UBS enclosure Please advise how to mount the USB enclosure to guest. It can be mounted on host. Pointer would be appreciated. TIA B.R. Stephen L Send instant messages to your online friends http://uk.

Weekly KVM Test report, kernel 771310c .. userspace 5c646ce7

2008-08-01 Thread Xu, Jiajun
Hi All, This is our Weekly KVM Testing Report against lastest kvm.git 771310c770214cd879d30d0825fb5e140cd74866 and kvm-userspace.git 5c646ce7bfb0eb0a108a09f08a3854a27c11cdaf. There is no new issue found this week. Two Old Issues: 1. 32bits Rhel5/F

Re: [PATCH] Save 64-bit of the IA-32e capable sysenter MSRs

2008-08-01 Thread Alexander Graf
On Jul 31, 2008, at 12:07 PM, Avi Kivity wrote: Alexander Graf wrote: Hi, When transitioning from KVM to the qemu userspace, we try to get and push a whole bunch of MSR values, including the SYSENTER ones. While this is basically a good idea, qemu doesn't know anything about SYSENTER on

Re: KVM compile fails on s390x

2008-08-01 Thread Robin Atwood
On Friday 01 Aug 2008, Christian Borntraeger wrote: > Am Freitag, 1. August 2008 schrieb Daniel P. Berrange: > > What are your intentions for this part longer term. Are you planning to > > create a QEMU target for s390 so we can use real QEMU binaries instead > > of emulating a subset of its featur

Re: KVM compile fails on s390x

2008-08-01 Thread Christian Borntraeger
Am Freitag, 1. August 2008 schrieb Daniel P. Berrange: > What are your intentions for this part longer term. Are you planning to > create a QEMU target for s390 so we can use real QEMU binaries instead > of emulating a subset of its features. If s390 userspace were QEMU based > them you'd be able t

Re: KVM compile fails on s390x

2008-08-01 Thread Daniel P. Berrange
On Fri, Aug 01, 2008 at 02:09:02PM +0200, Christian Borntraeger wrote: > Am Donnerstag, 31. Juli 2008 schrieb Robin Atwood: > > I guess I am doing something very dumb, but when I try to compile kvm-72 on > > z900 architecture (actually Hercules) I immediately get a compile error: > > > > zgentoo

Re: KVM compile fails on s390x

2008-08-01 Thread Christian Borntraeger
Am Donnerstag, 31. Juli 2008 schrieb Robin Atwood: > I guess I am doing something very dumb, but when I try to compile kvm-72 on > z900 architecture (actually Hercules) I immediately get a compile error: > > zgentoo kvm-72 # ./configure --disable-gfx-check --disable-sdl Your userspace headers do

Re: [PATCH 3/5] KVM: pci device assignment

2008-08-01 Thread Amit Shah
* On Wednesday 30 Jul 2008 17:28:01 Ben-Ami Yassour wrote: > On Wed, 2008-07-30 at 11:33 +0530, Amit Shah wrote: > > * On Tuesday 29 July 2008 15:08:27 Ben-Ami Yassour wrote: > > > On Tue, 2008-07-29 at 14:49 +0530, Amit Shah wrote: > > > > * On Monday 28 Jul 2008 21:56:26 Ben-Ami Yassour wrote: >

Re: [PATCH]: Add a "migrate_incoming" monitor option

2008-08-01 Thread Chris Lalancette
Daniel P. Berrange wrote: >> @@ -9673,11 +9675,16 @@ int main(int argc, char **argv) >> if (incoming) { >> int rc; >> >> -rc = migrate_incoming(incoming); >> -if (rc != 0) { >> -fprintf(stderr, "Migration failed rc=%d\n", rc); >> -exit(rc); >>

[PATCH]: Implement tcp "nowait" option for migration

2008-08-01 Thread Chris Lalancette
Sometimes you want to be able to start up the receiving side of a live migration and actually be able to run monitor commands before you do the migration. Libvirt, in particular, wants to do this for setting up the migration. This patch implements a "nowait" option to the receiving side so that yo

Re: [PATCH]: Add a "migrate_incoming" monitor option

2008-08-01 Thread Chris Lalancette
Daniel P. Berrange wrote: > An accept trick only handles the TCP case though. I know this was Chris' > example that we're currently using, but we intend to switch to passing > an open file descriptor instead, and proxying the data via a secure > channel instead of the plain tcp, or builtin SSH tu

Re: [PATCH]: Add a "migrate_incoming" monitor option

2008-08-01 Thread Daniel P. Berrange
On Thu, Jul 31, 2008 at 12:27:43PM -0500, Anthony Liguori wrote: > Chris Lalancette wrote: > >We've been trying to plumb libvirt to do KVM migration. One of the > >stumbling > >blocks we are running into, however, is that libvirt expects to be able to > >use > >the Qemu monitor both before and a