[PATCH] KVM: Fix wrong KVM_GET_LAPIC

2008-08-17 Thread Yang, Sheng
From a8ca7dd8f5fe0125e7b7d0a21f5caddacd754911 Mon Sep 17 00:00:00 2001 From: Sheng Yang <[EMAIL PROTECTED]> Date: Mon, 18 Aug 2008 11:04:22 +0800 Subject: [PATCH] KVM: Fix wrong KVM_GET_LAPIC Which caused migration fail in recent commits. Signed-off-by: Sheng Yang <[EMAIL PROTECTED]> --- arch/x8

Re: [PATCH] kvm: bios: end AP boot code execution in rombios

2008-08-17 Thread Yang, Sheng
On Monday 18 August 2008 10:33:11 Anthony Liguori wrote: > Sebastian Herbszt wrote: > > Jump to rombios before executing the halt loop. > > Why? More importantly, why is this specific to KVM? The bios copy AP boot up code to 0x1 now in KVM, so it can be overwrite by userspace program like gr

Re: [PATCH] kvm: bios: end AP boot code execution in rombios

2008-08-17 Thread Anthony Liguori
Sebastian Herbszt wrote: Jump to rombios before executing the halt loop. Why? More importantly, why is this specific to KVM? Regards, Anthony Liguori Signed-off-by: Sebastian Herbszt <[EMAIL PROTECTED]> diff -uNrp a/bios/rombios32start.S b/bios/rombios32start.S --- a/bios/rombios32star

Re: [PATCH] kvm: qemu: Add missing DEPLIBS in Makefile.target

2008-08-17 Thread Yang, Sheng
On Wednesday 13 August 2008 11:48:02 Yang, Sheng wrote: > From 50a27ca42a565579e78e3545ca097a65a88cbadd Mon Sep 17 00:00:00 > 2001 From: Sheng Yang <[EMAIL PROTECTED]> > Date: Wed, 13 Aug 2008 11:35:17 +0800 > Subject: [PATCH] kvm: qemu: Add missing DEPLIBS in Makefile.target > > Seems this flags i

[PATCH] kvm: bios: end AP boot code execution in rombios

2008-08-17 Thread Sebastian Herbszt
Jump to rombios before executing the halt loop. Signed-off-by: Sebastian Herbszt <[EMAIL PROTECTED]> diff -uNrp a/bios/rombios32start.S b/bios/rombios32start.S --- a/bios/rombios32start.S 2008-08-17 23:30:42.0 +0200 +++ b/bios/rombios32start.S 2008-08-17 23:38:42.0 +0200 @

Re: Building and Installing everything but Modules...

2008-08-17 Thread Uri Lublin
Stuart Sheldon wrote: Another newbie question... I've looks all over the place, and just can't seem to figure this out. I want to build and install everything but the kernel modules from release source. This will allow me to test against the vanilla modules that come with the kernel source. C

Building and Installing everything but Modules...

2008-08-17 Thread Stuart Sheldon
Another newbie question... I've looks all over the place, and just can't seem to figure this out. I want to build and install everything but the kernel modules from release source. This will allow me to test against the vanilla modules that come with the kernel source. Can anyone point me in t

Re: [PATCH 01/02] Fix build issue for IA64

2008-08-17 Thread Avi Kivity
Zhang, Xiantao wrote: > Avi Kivity wrote: > >> Zhang, Xiantao wrote: >> >>> 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 IA

Re: KVM: fix i8259 reset irq acking

2008-08-17 Thread Avi Kivity
Avi Kivity wrote: > Avi Kivity wrote: >> Marcelo Tosatti wrote: >>> On Wed, Aug 13, 2008 at 01:40:34PM +0300, Avi Kivity wrote: >>> Marcelo Tosatti wrote: > The irq ack during pic reset has three problems: > > - Ignores slave/master PIC, using gsi 0-8 for both. > - Ge

Re: Un-googlable

2008-08-17 Thread john cooper
David Abrahams wrote: on Sat Aug 16 2008, "Glauber Costa" wrote: Furthermore, we're not the first word with (at least) double meaning in the world. No, but as I said, the target audience (and application area) overlaps so heavily that even adding other relevant search terms usually doesn't el

Re: [PATCH 3/4] VMX: Add invalid guest state handler

2008-08-17 Thread Mohammed Gamal
[Adding missing sign-offs] This adds the invalid guest state handler function which invokes the x86 emulator until getting the guest to a VMX-friendly state. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> Signed-off-by: Guillaume Thouvenin <[EMAIL PROTECTED]> Signed-off-by: Mohammed Gamal <[EM

[PATCH 4/4] VMX: Modify mode switching and vmentry functions

2008-08-17 Thread Mohammed Gamal
This patch modifies mode switching and vmentry function in order to drive invalid guest state emulation. Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> --- arch/x86/kvm/vmx.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/

[PATCH 3/4] VMX: Add invalid guest state handler

2008-08-17 Thread Mohammed Gamal
This adds the invalid guest state handler function which invokes the x86 emulator until getting the guest to a VMX-friendly state. Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> --- arch/x86/kvm/vmx.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) di

[PATCH 2/4] VMX: Add module parameter and emulation flag.

2008-08-17 Thread Mohammed Gamal
The patch adds the module parameter required to enable emulating invalid guest state, as well as the emulation_required flag used to drive emulation whenever needed. Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> --- arch/x86/kvm/vmx.c |4 1 files changed, 4 insertions(+), 0 deletions

[PATCH 1/4] VMX: Add Guest State Validity Checks

2008-08-17 Thread Mohammed Gamal
This patch adds functions to check whether guest state is VMX compliant. Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> --- arch/x86/kvm/vmx.c | 180 1 files changed, 180 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch

[PATCH 0/4] VMX: Invalid guest state emulation

2008-08-17 Thread Mohammed Gamal
The patch series adds invalid guest state emulation for VMX hosts, which is needed in order to properly support real mode guests. Usually, a guest would be in an VMX-invalid state during mode switches from real to protected mode or vice versa. We handle this invalid state by using the x86 emulato

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

2008-08-17 Thread Avi Kivity
Mohammed Gamal wrote: On Sun, Aug 17, 2008 at 10:38 AM, Avi Kivity <[EMAIL PROTECTED]> wrote: Mohammed Gamal wrote: [Updated to take coding style and emulation loop issues in consideration] Applied, thanks. Would it be a problem if I re-send this patch as a patch serie

RE: [PATCH 01/02] Fix build issue for IA64

2008-08-17 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> 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

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

2008-08-17 Thread Mohammed Gamal
On Sun, Aug 17, 2008 at 10:38 AM, Avi Kivity <[EMAIL PROTECTED]> wrote: > Mohammed Gamal wrote: >> >> [Updated to take coding style and emulation loop issues in consideration] >> >> > > Applied, thanks. > Would it be a problem if I re-send this patch as a patch series of smaller chunks? -- To unsu

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

2008-08-17 Thread Avi Kivity
Max Krasnyansky wrote: btw Interface to HAL might still be useful in general to monitor other device classes that we may want to automatically assign to the VMs. So I'll play around with that too (some day :)). Assign to which VMs? Interfacing with HAL is definitely the management layer's t

Re: Un-googlable

2008-08-17 Thread Avi Kivity
David Abrahams wrote: Serious question: has anyone considered changing the name of this project? Yes. Finding information about kvm on the web is extremely frustrating due to the enormous number of pages related to KVM switches and the heavily overlapping target audience (people who want to

Re: KVM: fix i8259 reset irq acking

2008-08-17 Thread Avi Kivity
Avi Kivity wrote: Marcelo Tosatti wrote: On Wed, Aug 13, 2008 at 01:40:34PM +0300, Avi Kivity wrote: Marcelo Tosatti wrote: The irq ack during pic reset has three problems: - Ignores slave/master PIC, using gsi 0-8 for both. - Generates an ACK even if the APIC is in control. - Depends u

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

2008-08-17 Thread Avi Kivity
Avi Kivity wrote: Marcelo Tosatti wrote: KVM: x86: do not execute halted vcpus Alright, need_resched was actually checked in vcpu_enter_guest, so this checks signal_pending too: Offline or uninitialized vcpu's can be executed if requested to perform userspace work. Follow Avi's suggestion to h

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

2008-08-17 Thread Avi Kivity
Mohammed Gamal wrote: [Updated to take coding style and emulation loop issues in consideration] Applied, thanks. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the bo

Re: [PATCH 01/02] Fix build issue for IA64

2008-08-17 Thread Avi Kivity
Zhang, Xiantao wrote: 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. Applied

Re: Which SCSI controller is emulated in KVM guests?

2008-08-17 Thread Evert Meulie
James Walker clear.net.nz> writes: > > > On 17/08/2008, at 4:50 PM, Evert Meulie wrote: > > > Hi all, > > > > I must be missing it somehow, but I can't find any mention in the > > KVM man page > > on which SCSI controller is emulated in its guests...? > > > > Regards, > > Evert > > > > -- >