Re: cpu hotplug

2010-09-21 Thread Gleb Natapov
On Mon, Sep 20, 2010 at 09:07:16PM -0400, Kevin O'Connor wrote: On Mon, Sep 20, 2010 at 08:50:17AM +0200, Gleb Natapov wrote: On Sun, Sep 19, 2010 at 06:03:31PM -0400, Kevin O'Connor wrote: I was wrong. The cpu_set x offline does send an event to the guest OS. SeaBIOS even forwards the

Re: [PATCHv2] vhost-net: add dhclient work-around from userspace

2010-09-21 Thread xming
Newer versions of dhclient should also be OK: they detect that checksum is missing in the packet. Try it e.g. with a recent fedora guest as a client. I don't have fedora, but with the latest release (4.1.1-P1) on isc.org it still behaves the same (see output at the bottom). To solve the

Re: KVM call agenda for Sept 21

2010-09-21 Thread Avi Kivity
On 09/21/2010 05:37 AM, Nakajima, Jun wrote: Avi Kivity wrote on Mon, 20 Sep 2010 at 09:50:55: On 09/20/2010 06:44 PM, Chris Wright wrote: Please send in any agenda items you are interested in covering. nested vmx: the resurrection. Nice to see it progressing again, but there's

Re: [PATCH 3/4] KVM: VMX: Emulated real mode interrupt injection

2010-09-21 Thread Avi Kivity
On 09/20/2010 07:30 PM, Marcelo Tosatti wrote: static void __vmx_complete_interrupts(struct vcpu_vmx *vmx, u32 idt_vectoring_info, int instr_len_field, @@ -3864,9 +3814,6 @@ static void __vmx_complete_interrupts(struct vcpu_vmx *vmx,

[PATCH] support piix PAM registers in KVM

2010-09-21 Thread Gleb Natapov
Without this BIOS fails to remap 0xf memory from ROM to RAM so writes to F-segment modify ROM content instead of memory copy. Since QEMU does not reloads ROMs during reset on next boot modified copy of BIOS is used. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/hw/piix_pci.c

Re: Tracing KVM with Systemtap

2010-09-21 Thread Rayson Ho
On Mon, 2010-09-20 at 14:36 +0100, Stefan Hajnoczi wrote: Right now there are few pre-defined probes (trace events in QEMU tracing speak). As I develop I try to be mindful of new ones I create and whether they would be generally useful. I intend to contribute more probes and hope others will

Re: [RFC PATCH v9 12/16] Add mp(mediate passthru) device.

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 09:39:31AM +0800, Xin, Xiaohui wrote: From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Monday, September 20, 2010 7:37 PM To: Xin, Xiaohui Cc: net...@vger.kernel.org; kvm@vger.kernel.org; linux-ker...@vger.kernel.org; mi...@elte.hu; da...@davemloft.net;

Re: Tracing KVM with Systemtap

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 1:58 PM, Rayson Ho r...@redhat.com wrote: On Mon, 2010-09-20 at 14:36 +0100, Stefan Hajnoczi wrote: Right now there are few pre-defined probes (trace events in QEMU tracing speak).  As I develop I try to be mindful of new ones I create and whether they would be

how CPU hot-plug is suppose to work on Linux?

2010-09-21 Thread Gleb Natapov
Hello, We are trying to add CPU hot-plug/unplug capability to KVM. We want to be able to initiate hot-plug/unplug from a host. Our current schema works like this: We have Processor object in DSDT for each potentially available CPU. Each Processor object has _MAD, _STA, _EJ0. _MAD of present CPU

Re: [PATCH] device-assignment: register a reset function

2010-09-21 Thread Bernhard Kohl
Am 17.09.2010 18:16, schrieb ext Alex Williamson: On Fri, 2010-09-17 at 17:27 +0200, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostlerthomas.ost...@nsn.com

Re: [PATCH] KVM: x86: mmu: fix counting of rmap entries in rmap_add()

2010-09-21 Thread Marcelo Tosatti
On Sat, Sep 18, 2010 at 08:41:02AM +0800, Hillf Danton wrote: It seems that rmap entries are under counted. Signed-off-by: Hillf Danton dhi...@gmail.com --- Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

Re: [PATCH 3/4] KVM: VMX: Emulated real mode interrupt injection

2010-09-21 Thread Marcelo Tosatti
On Tue, Sep 21, 2010 at 01:56:50PM +0200, Avi Kivity wrote: On 09/20/2010 07:30 PM, Marcelo Tosatti wrote: static void __vmx_complete_interrupts(struct vcpu_vmx *vmx, u32 idt_vectoring_info, int instr_len_field, @@ -3864,9 +3814,6

Re: [PATCH 3/4] KVM: VMX: Emulated real mode interrupt injection

2010-09-21 Thread Avi Kivity
On 09/21/2010 05:36 PM, Marcelo Tosatti wrote: On Tue, Sep 21, 2010 at 01:56:50PM +0200, Avi Kivity wrote: On 09/20/2010 07:30 PM, Marcelo Tosatti wrote: static void __vmx_complete_interrupts(struct vcpu_vmx *vmx, u32 idt_vectoring_info,

Re: [PATCH 4/9] msix: move definitions from msix.c to msix.h

2010-09-21 Thread Avi Kivity
On 09/20/2010 06:56 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 05:06:45PM +0200, Avi Kivity wrote: This allows us to reuse them from the kvm support code. Signed-off-by: Avi Kivitya...@redhat.com I would rather all dealings with MSI-X table stayed in one place. All we need is

Re: [PATCH 8/9] Protect qemu-kvm.h declarations with NEED_CPU_H

2010-09-21 Thread Avi Kivity
On 09/20/2010 07:05 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 05:06:49PM +0200, Avi Kivity wrote: Target-specific definitions need to be qualified with NEED_CPU_H so kvm.h can be included from non-target-specific files. Signed-off-by: Avi Kivitya...@redhat.com Long term,

Re: [PATCH 0/9] msix/kvm integration cleanups

2010-09-21 Thread Avi Kivity
On 09/20/2010 07:02 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 05:06:41PM +0200, Avi Kivity wrote: This cleans up msix/kvm integration a bit. The really important patch is the last one, which allows msix.o to be part of non-target-specific build. I actually thoought this later

kvm networking todo wiki

2010-09-21 Thread Michael S. Tsirkin
I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication, but also in the hope to draw attention to what I think we should try addressing in KVM: http://www.linux-kvm.org/page/NetworkingTodo This page could cover all networking related activity in KVM,

Re: [PATCH 0/9] msix/kvm integration cleanups

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 06:05:10PM +0200, Avi Kivity wrote: On 09/20/2010 07:02 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 05:06:41PM +0200, Avi Kivity wrote: This cleans up msix/kvm integration a bit. The really important patch is the last one, which allows msix.o to be

[PATCH 2/2] KVM: cpu_relax() during spin waiting for reboot

2010-09-21 Thread Avi Kivity
It doesn't really matter, but if we spin, we should spin in a more relaxed manner. This way, if something goes wrong at least it won't contribute to global warming. Signed-off-by: Avi Kivity a...@redhat.com --- virt/kvm/kvm_main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH 0/2] Fix reboot on Intel hosts

2010-09-21 Thread Avi Kivity
For a while (how long?) reboots with active guests are broken on Intel hosts. This patch set fixes the problem. Avi Kivity (2): KVM: Fix reboot on Intel hosts KVM: cpu_relax() during spin waiting for reboot virt/kvm/kvm_main.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-)

[PATCH 1/2] KVM: Fix reboot on Intel hosts

2010-09-21 Thread Avi Kivity
When we reboot, we disable vmx extensions or otherwise INIT gets blocked. If a task on another cpu hits a vmx instruction, it will fault if vmx is disabled. We trap that to avoid a nasty oops and spin until the reboot completes. Problem is, we sleep with interrupts disabled. This blocks

KVM call minutes for Sept 21

2010-09-21 Thread Chris Wright
Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small things at this point - need some correctness

Re: [KVM timekeeping fixes 4/4] TSC catchup mode

2010-09-21 Thread Marcelo Tosatti
On Mon, Sep 20, 2010 at 03:11:30PM -1000, Zachary Amsden wrote: On 09/20/2010 05:38 AM, Marcelo Tosatti wrote: On Sat, Sep 18, 2010 at 02:38:15PM -1000, Zachary Amsden wrote: Negate the effects of AN TYM spell while kvm thread is preempted by tracking conversion factor to the highest TSC rate

Re: KVM call minutes for Sept 21

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:05 PM, Chris Wright wrote: Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small

Re: [PATCH] virtio-blk: put request that was created to retrieve the device id

2010-09-21 Thread Christoph Hellwig
On Fri, Sep 17, 2010 at 09:58:48AM -0500, Ryan Harper wrote: Since __bio_map_kern() sets up bio-bi_end_io = bio_map_kern_endio (which does a bio_put(bio)) doesn't that ensure we don't leak? Indeed, that should take care of it. -- To unsubscribe from this list: send the line unsubscribe kvm in

USB Host Passthrough BSOD on Windows XP

2010-09-21 Thread mattia.martine...@gmail.com
Hi. I installed a KVM virtual machine with Windows XP SP3 installed on it with all updates from Windows Update. I setted up an USB device from the host machine to be used on the virtual machine with the command qm set 107 -hostusb 2040:7070 The USB device is an Hauppauge WinTV Nova-T Stick DVB-T

Re: KVM call minutes for Sept 21

2010-09-21 Thread Nadav Har'El
Hi, thanks for the summary. I also listened-in on the call. I'm glad these issues are being discussed. On Tue, Sep 21, 2010, Chris Wright wrote about KVM call minutes for Sept 21: Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams I'll be very

buildbot failure in qemu-kvm on default_i386_debian_5_0

2010-09-21 Thread qemu-kvm
The Buildbot has detected a new failure of default_i386_debian_5_0 on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0/builds/573 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_2

buildbot failure in qemu-kvm on default_i386_out_of_tree

2010-09-21 Thread qemu-kvm
The Buildbot has detected a new failure of default_i386_out_of_tree on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_out_of_tree/builds/510 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_2

Re: KVM call minutes for Sept 21

2010-09-21 Thread Chris Wright
* Nadav Har'El (n...@math.technion.ac.il) wrote: On Tue, Sep 21, 2010, Chris Wright wrote about KVM call minutes for Sept 21: Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams I'll be very happy if anyone, be it from Intel or somewhere