Re: [kvm-devel] [PATCH] SMP: Setup multiple tss for real mode emulation

2007-07-12 Thread Avi Kivity
He, Qing wrote: This patch sets up multiple TSS for real mode emulation on Intel vmx, one for each vcpu. This is a preparation patch for full SMP real mode support. Why are separate tss's needed? Can't all vcpus use the same tss? Signed-off-by: Qing He [EMAIL PROTECTED] kvm.h |

[kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread David Shwatrz
Hello, I have kvm on FC7. I had installed an FC6 guest on it according to the kvm howto. I can launch the FC6 guest (using kvm) perfectly ok. During installation, I set the IP address of the guest to be 192.168.0.11/24 and defualt gw to 192.168.0.1. These definitions are OK (I simply run

Re: [kvm-devel] [PATCH] SMP: Setup multiple tss for real mode emulation

2007-07-12 Thread He, Qing
-Original Message- From: Avi Kivity [mailto:[EMAIL PROTECTED] Sent: 2007年7月12日 16:16 To: He, Qing Cc: kvm-devel Subject: Re: [kvm-devel] [PATCH] SMP: Setup multiple tss for real mode emulation He, Qing wrote: This patch sets up multiple TSS for real mode emulation on Intel vmx, one

[kvm-devel] [PATCH][RESEND] SMP: add vcpu_id field in struct vcpu

2007-07-12 Thread He, Qing
This patch adds a `vcpu_id' field in `struct vcpu', so we can differentiate BSP and APs without pointer comparison or arithmetic. Signed-off-by: Qing He [EMAIL PROTECTED] diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 65ab268..0f7a4d9 100644 --- a/drivers/kvm/kvm.h +++

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Gregory Haskins
On Thu, 2007-07-12 at 13:33 +0800, Dong, Eddie wrote: Here is the update with adding HLT cap. Thats a good start, but you probably need to make the decision to use the halt predicated on a halt-specific boolean set by userspace in order to actually function as we've discussed. This is in

Re: [kvm-devel] [PATCH][RESEND] SMP: add vcpu_id field in struct vcpu

2007-07-12 Thread Avi Kivity
He, Qing wrote: This patch adds a `vcpu_id' field in `struct vcpu', so we can differentiate BSP and APs without pointer comparison or arithmetic. Applied, thanks. -- error compiling committee.c: too many arguments to function

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Avi Kivity
Dong, Eddie wrote: Here is the update with adding HLT cap. diff --git a/drivers/kvm/i8259.c b/drivers/kvm/i8259.c index f4ae5f7..e84e665 100644 --- a/drivers/kvm/i8259.c +++ b/drivers/kvm/i8259.c @@ -411,8 +411,13 @@ static void picdev_read(struct kvm_io_device *this, static void

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Avi Kivity
Gregory Haskins wrote: On Thu, 2007-07-12 at 13:33 +0800, Dong, Eddie wrote: Here is the update with adding HLT cap. Thats a good start, but you probably need to make the decision to use the halt predicated on a halt-specific boolean set by userspace in order to actually function

[kvm-devel] [ANNOUNCE] kvm-29 release

2007-07-12 Thread Avi Kivity
Well, I really wanted to have guest smp in the release, but alas, it was not to be. It still doesn't like starting X, for example. Note: on i386 the qemu binary is now named qemu-system-x86_64. This is to allow migration from 32-bit hosts to 64-bit hosts, and to allow 32-bit userspace on a

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread Luca
On 7/12/07, David Shwatrz [EMAIL PROTECTED] wrote: I have kvm on FC7. I had installed an FC6 guest on it according to the kvm howto. I can launch the FC6 guest (using kvm) perfectly ok. During installation, I set the IP address of the guest to be 192.168.0.11/24 and defualt gw to 192.168.0.1.

Re: [kvm-devel] kvm-29 not compiling

2007-07-12 Thread Avi Kivity
Adrian Lambeck wrote: I just tried out the latest release but it won't compile. The compiler complains first: WARNING: sigprocmask [/root/kvm/kvm-29/kernel/kvm.ko] undefined! What kernel are you compiling against? -- error compiling committee.c: too many arguments to function

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread David Shwatrz
Thanks; I am not sure I got you ! running ifconfig -a on the host shows the following: eth0 Link encap:Ethernet HWaddr 00:1B:24:1D:EC:C0 inet addr:192.168.0.31 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::21b:24ff:fe1d:ecc0/64 Scope:Link UP

Re: [kvm-devel] Framebuffer error

2007-07-12 Thread Víctor Abeytua García
Thanks a lot, I was looking at the wrong place. I was trying to launch the installation as root after sudoing. And as root I didn't have the DISPLAY variable. Now the installation is proceeding smoothly. Best regards, Víctor Thu, Jul 12, 2007 at 03:03:05PM +0300, Avi

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread David Shwatrz
Hello, And I just want to add some info : running : brctl show gives: bridge name bridge id STP enabled interfaces virbr0 8000. no which means that there is no interface enslaved to this bridge. Regards, DS On 7/12/07, David Shwatrz [EMAIL

Re: [kvm-devel] Framebuffer error

2007-07-12 Thread Benjamin Budts
I had the same problem, I missed couple of SDL packages... here is my package list under debian : ii libsdl1.2-dev 1.2.11-8Simple DirectMedia Layer development files ii libsdl1.2debian 1.2.11-8

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Dong, Eddie
Avi Kivity wrote: Dong, Eddie wrote: Here is the update with adding HLT cap. diff --git a/drivers/kvm/i8259.c b/drivers/kvm/i8259.c index f4ae5f7..e84e665 100644 --- a/drivers/kvm/i8259.c +++ b/drivers/kvm/i8259.c @@ -411,8 +411,13 @@ static void picdev_read(struct kvm_io_device *this,

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Gregory Haskins
On Thu, 2007-07-12 at 22:20 +0800, Dong, Eddie wrote: Apply to current kvm.git? Then we need to define false for irqchip_in_kernel() which makes the patch quit stranger. I think what Avi is saying is this can be generalized as a separate feature independent of in-kernel-PIC. Since Avi and I

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Avi Kivity
Dong, Eddie wrote: Gregory Haskins wrote: On Thu, 2007-07-12 at 22:20 +0800, Dong, Eddie wrote: Apply to current kvm.git? Then we need to define false for irqchip_in_kernel() which makes the patch quit stranger. I think what Avi is saying is this can be generalized as a

[kvm-devel] [PATCH] KVM-USER: Fix for CPU interrupts in QEMU

2007-07-12 Thread Gregory Haskins
QEMU-KVM has a bug where the interruptibility of the CPU is predicated on pending interrupts. If the reason that a CPU is interrupted is because we need to inject interrupts, the current code will just keep looping and miss the event window. This doesnt seem to cause problems with in-trunk KVM.

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Dong, Eddie
Gregory Haskins wrote: On Thu, 2007-07-12 at 22:20 +0800, Dong, Eddie wrote: Apply to current kvm.git? Then we need to define false for irqchip_in_kernel() which makes the patch quit stranger. I think what Avi is saying is this can be generalized as a separate feature independent of

Re: [kvm-devel] rebase hlt emulation

2007-07-12 Thread Dong, Eddie
Avi Kivity wrote: Dong, Eddie wrote: Gregory Haskins wrote: On Thu, 2007-07-12 at 22:20 +0800, Dong, Eddie wrote: Apply to current kvm.git? Then we need to define false for irqchip_in_kernel() which makes the patch quit stranger. I think what Avi is saying is this can be

Re: [kvm-devel] [PATCH] KVM-USER: Fix for CPU interrupts in QEMU

2007-07-12 Thread Dong, Eddie
Gregory Haskins wrote: On Thu, 2007-07-12 at 23:39 +0800, Dong, Eddie wrote: Greg: I think you need to do the whole patch for this including kernel side. Will u ? Ya, I can do that. But I probably wont be able to look at it until this RT stuff I am working on is done. Then, Avi:

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-12 Thread Dave Hansen
On Thu, 2007-07-12 at 08:37 +0300, Avi Kivity wrote: Can you confirm it by backing out that one patch? Do you know the git commit id by chance? -- Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread Luca Tettamanti
(don't top post) Il Thu, Jul 12, 2007 at 03:56:07PM +0300, David Shwatrz ha scritto: Hello, And I just want to add some info : running : brctl show gives: bridge name bridge id STP enabled interfaces virbr0 8000. no which means that

[kvm-devel] questions about ack_intr_on_exit and preemption hooks

2007-07-12 Thread Stephane Eranian
Avi, A couple of months back, we had a discussion about PMU virtualization and the difficulty I encountered trying to catch the PMU interrupt vector in kvm on VM-exit. KVM does not set ack_intr_on_intr. Would you mind reminding me of the reason for this? On the topic of scheduler hooks for use

Re: [kvm-devel] kvm-29 not compiling

2007-07-12 Thread Adrian Lambeck
The same error happens on linux-2.6.21.4: I am using the same config as on 2.6.20 which worked well with kvm-28... # Output when compiling: WARNING: sigprocmask [/root/kvm/kvm-29/kernel/kvm.ko] undefined! WARNING: kmem_cache_destroy

Re: [kvm-devel] questions about ack_intr_on_exit and preemption hooks

2007-07-12 Thread Dong, Eddie
[EMAIL PROTECTED] wrote: Avi, A couple of months back, we had a discussion about PMU virtualization and the difficulty I encountered trying to catch the PMU interrupt vector in kvm on VM-exit. KVM does not set ack_intr_on_intr. Would you mind reminding me of the reason for this? On the

Re: [kvm-devel] [kvm-commits] kvm: external module: rename original kernel's modules when installing

2007-07-12 Thread Nguyen Anh Quynh
On 7/12/07, Avi Kivity [EMAIL PROTECTED] wrote: repository: /home/avi/kvm branch: master commit ebad9f20e60405fbf01beea7521c8a764391dece Author: Avi Kivity [EMAIL PROTECTED] Date: Thu Jul 12 13:20:47 2007 +0300 kvm: external module: rename original kernel's modules when installing

Re: [kvm-devel] questions about ack_intr_on_exit and preemption hooks

2007-07-12 Thread Stephane Eranian
Eddie, On Fri, Jul 13, 2007 at 08:46:06AM +0800, Dong, Eddie wrote: [EMAIL PROTECTED] wrote: Avi, A couple of months back, we had a discussion about PMU virtualization and the difficulty I encountered trying to catch the PMU interrupt vector in kvm on VM-exit. KVM does not set