[PATCH] KVM: VMX: Use interrupt queue for !irqchip_in_kernel

2008-08-14 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 337670b..8693fb5 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2173,7 +2173,7 @@ static void kvm_do_inject_irq(struct kvm_vcpu *vcpu)

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

2008-08-14 Thread Avi Kivity
Sebastian Herbszt wrote: Avi Kivity wrote: The AP enters HALT state with IF=0. What can make it resume at the following jmp 1b? NMI? SMI? Yes, but also INIT. Are you sure the AP will continue after the hlt instruction on INIT? I think it will start to execute code from the reset vector

Re: SR-IOV: patches are available for Linux kernel [4/4]

2008-08-14 Thread Greg KH
On Thu, Aug 14, 2008 at 03:50:26PM +0800, Zhao, Yu wrote: On Thursday, August 14, 2008 7:46 AM, Greg KH mailto:[EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 01:09:16PM -0700, Randy Dunlap wrote: On Tue, 12 Aug 2008 16:46:39 +0800 Zhao, Yu wrote: [PATCH 4/4] PCI: document SR-IOV

Re: [PATCH 2/5] husb: support for USB host device auto connect.

2008-08-14 Thread Anthony Liguori
Max Krasnyansky wrote: Anyway, it's implemented using a periodic timer that scans host devices and grabs those that match the filter. Timer is started when the first filter is added. Again, there has to be a way to get notified of usb device add/remove in Linux. +static USBHostDevice

Re: [PATCH 0/5] Various USB fixes and improvements

2008-08-14 Thread Anthony Liguori
Max Krasnyansky wrote: This patch series started when I tried to share USB ports between four instances of Windows XP running on the same Linux box (under KVM). I quickly realized that current USB support is not very flexible. We do not handle devices disconnects, there is not way to assign

Re: [RFC][PATCH v2] VMX: Invalid guest state emulation

2008-08-14 Thread Mohammed Gamal
[Updated to take coding style and emulation loop issues in consideration] Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Guillaume Thouvenin [EMAIL PROTECTED] Signed-off-by: Mohammed Gamal [EMAIL PROTECTED] --- arch/x86/kvm/vmx.c | 235

Re: [PATCH 1/5] husb: support for USB host device auto disconnect.

2008-08-14 Thread Max Krasnyansky
Anthony Liguori wrote: Max Krasnyansky wrote: 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 :) Yes, I've felt the same annoyance. Basically we now automatically remove guest USB device when

Re: [PATCH 4/5] uhci: rewrite UHCI emulator, fully async operation with multiple outstanding transactions

2008-08-14 Thread Max Krasnyansky
Anthony Liguori wrote: Max Krasnyansky wrote: +static UHCIAsync *uhci_async_alloc(UHCIState *s) +{ +UHCIAsync *async = qemu_malloc(sizeof(UHCIAsync)); +if (async) { +memset(async-packet, 0, sizeof(async-packet)); You can use qemu_mallocz() here. The reasons I

Re: [PATCH 2/5] husb: support for USB host device auto connect.

2008-08-14 Thread Max Krasnyansky
Anthony Liguori wrote: Max Krasnyansky wrote: Anthony Liguori wrote: Max Krasnyansky wrote: Anyway, it's implemented using a periodic timer that scans host devices and grabs those that match the filter. Timer is started when the first filter is added. Again, there has to

[PATCH] husb: remove disconnect detection timer

2008-08-14 Thread Max Krasnyansky
On top of my previous USB patchset. Async completion handler can detect device disconnects without polling. We do not need the timer anymore. Signed-off-by: Max Krasnyansky [EMAIL PROTECTED] --- usb-linux.c | 37 ++--- 1 files changed, 6 insertions(+), 31

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

2008-08-14 Thread Marcelo Tosatti
On Wed, Aug 13, 2008 at 01:44:33PM +0300, Avi Kivity wrote: Marcelo Tosatti wrote: 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

[PATCH 01/02] Fix build issue for IA64

2008-08-14 Thread Zhang, Xiantao
From 40df689b23263ffe2f2efed9950700d42f985b29 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Tue, 12 Aug 2008 08:15:10 +0800 Subject: [PATCH] KVM:Userspace: Fix build issue for IA64. Generating asm-offset.h @ build time with host kernel. Signed-off-by: Xiantao Zhang [EMAIL

[PATCH 4/8] uhci: rewrite UHCI emulator, fully async operation with multiple outstanding transactions

2008-08-14 Thread Max Krasnyansky
This is esentially a re-write of the QEMU UHCI layer. My initial goal was to support fully async operation with multiple outstanding async transactions. Along the way I realized that I can greatly simplify and cleanup the overall logic. There was a lot of duplicate and confusing code in the UHCI

[PATCH 5/8] husb: rewrite Linux host USB layer, fully async operation

2008-08-14 Thread Max Krasnyansky
This is a follow up to the async UHCI patch. Both BULK and ISOC transactions are now fully asynchrounous. I left CONTROL synchronous for now, ideally we want it to be async too and it should not be that hard to do now. This patch obviously requires UHCI patch. The combo has been tested with

[PATCH 6/8] husb: remove disconnect detection timer

2008-08-14 Thread Max Krasnyansky
On top of my previous USB patchset. Async completion handler can detect device disconnects without polling. We do not need the timer anymore. Signed-off-by: Max Krasnyansky [EMAIL PROTECTED] --- usb-linux.c | 37 ++--- 1 files changed, 6 insertions(+), 31

[PATCH 8/8] uhci: fixes for save/load-vm

2008-08-14 Thread Max Krasnyansky
For some reason we were not registering save/load-vm handler for piix3 flavor of UHCI and hence save/load was broken. Async transactions need to be canceled when we save the VM because there is no way we can save/restore all that state. Since we do not mess the original TD/QH the driver will