[PATCH] kvm: Flush coalesced MMIO buffer periodly

2010-01-24 Thread Sheng Yang
The default action of coalesced MMIO is, cache the writing in buffer, until: 1. The buffer is full. 2. Or the exit to QEmu due to other reasons. But this would result in a very late writing in some condition. 1. The each time write to MMIO content is small. 2. The writing interval is big. 3. No ne

Re: [PATCH] kvm: Flush coalesced MMIO buffer periodly

2010-01-24 Thread Sheng Yang
On Sunday 24 January 2010 15:35:58 Avi Kivity wrote: > On 01/22/2010 04:22 AM, Sheng Yang wrote: > > The default action of coalesced MMIO is, cache the writing in buffer, > > until: 1. The buffer is full. > > 2. Or the exit to QEmu due to other reasons. > > > > But this would result in a very late

[Autotest][PATCH] Correct tko_kernels and tko_patches table name in tko/compose_query.cgi

2010-01-24 Thread Feng Yang
Table name in tko database have been changed. So update table name in tko/compose_query.cgi. This patch will fix error "Table 'tko.kernels' doesn't exist:" in 'Results database' page. Signed-off-by: Feng Yang --- tko/compose_query.cgi |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [Autotest] [AUTOTEST PATCH 1/2] KVM-test: Fix a bug that about list slice in scan_results.py

2010-01-24 Thread Yolkfull Chow
On Thu, Dec 31, 2009 at 04:52:20AM -0500, Michael Goldish wrote: > GOOD/FAIL/ERROR lines are always preceded by START lines, and info_list > is appended a "" when parsing a START line, so it seems unreasonable > for info_list to be empty when parsing a GOOD/FAIL/ERROR line. > What file did you pars

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Jernej Simončič
On Sunday, January 24, 2010, 19:28:47, Jean-Philippe Menil wrote: > Maybe the same can be done with windows guest. Should work with any Windows, and verified to work with Vista x64 guest. -- < Jernej Simončič ><><><><>< http://eternallybored.org/ > It works better if you plug it in. --

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 15:27:23 -0300, Daniel Bareiro wrote: > > Does the 'system_powerdown' monitor command initiate an ACPI > > shutdown? If so, I guess you can make an rc.d script that calls it > > during shutdown? > Interesting... I didn't know this command of Qemu Monitor. > > Doing a

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Jean-Philippe Menil
Avishay Traeger a écrit : kvm-ow...@vger.kernel.org wrote on 01/24/2010 05:29:08 PM: Anthony Liguori But the origin of the question here is probably, can something automatically shut down guests when a machine shutdowns down via the normal mechanism. AFAIK, libvirt does not support this tod

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 19:41:42 +0200, Avishay Traeger wrote: > > But the origin of the question here is probably, can something > > automatically shut down guests when a machine shutdowns down via the > > normal mechanism. AFAIK, libvirt does not support this today > > although there are som

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Markus Breitländer
Hi! Does anyone have sample scripts for this job? I know you can send the 'system_powerdown' command to the qemu-monitor, this CAN work for windows guests as far as i know. What other commands could be used in shutdown scripts? Regards, Markus Am 24.01.2010 18:00, schrieb Daniel Bareiro: >

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Avishay Traeger
kvm-ow...@vger.kernel.org wrote on 01/24/2010 05:29:08 PM: > Anthony Liguori > But the origin of the question here is probably, can something > automatically shut down guests when a machine shutdowns down via the > normal mechanism. AFAIK, libvirt does not support this today although > there are

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
Hi, Anthony. On Sunday, 24 January 2010 09:29:08 -0600, Anthony Liguori wrote: > But the origin of the question here is probably, can something > automatically shut down guests when a machine shutdowns down via the > normal mechanism. AFAIK, libvirt does not support this today although > there a

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Anthony Liguori
On 01/24/2010 09:15 AM, Avi Kivity wrote: On 01/24/2010 05:11 PM, Daniel Bareiro wrote: But also it would interest to me to know if this can be done without using libvirt. Well, it can, but you get to duplicate all the libvirt code that does this. I don't think it can. The original questio

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Avi Kivity
On 01/24/2010 05:11 PM, Daniel Bareiro wrote: But also it would interest to me to know if this can be done without using libvirt. Well, it can, but you get to duplicate all the libvirt code that does this. -- error compiling committee.c: too many arguments to function -- To unsubscribe fr

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 15:33:21 +0100, André Weidemann wrote: > Hi, Hi, André. > is there a mechanism inside qemu-kvm that can shutdown the OS inside a > VM when the qemu-kvm process receives a kill signal? > I am running Windows7 Pro inside a VM and I would like kvm to shut the > Window

How to properly turn off guest VM on server shutdown?

2010-01-24 Thread André Weidemann
Hi, is there a mechanism inside qemu-kvm that can shutdown the OS inside a VM when the qemu-kvm process receives a kill signal? I am running Windows7 Pro inside a VM and I would like kvm to shut the Windows system down before the process is killed. I know that VMware can shut down the guest OS w

Re: [PATCH] KVM: VMX: Pass cr0.mp through to the guest when the fpu is active

2010-01-24 Thread Avi Kivity
On 01/24/2010 04:26 PM, Avi Kivity wrote: When cr0.mp is clear, the guest doesn't expect a #NM in response to a WAIT instruction. Because we always keep cr0.mp set, it will get a #NM, and potentially be confused. Fix by keeping cr0.mp set only when the fpu is inactive, and passing it through wh

[PATCH] KVM: VMX: Pass cr0.mp through to the guest when the fpu is active

2010-01-24 Thread Avi Kivity
When cr0.mp is clear, the guest doesn't expect a #NM in response to a WAIT instruction. Because we always keep cr0.mp set, it will get a #NM, and potentially be confused. Fix by keeping cr0.mp set only when the fpu is inactive, and passing it through when inactive. Reported-by: Lorenzo Martignon

[ kvm-Bugs-2932002 ] Blue screen BAD_POOL_HEADER windows 2k8 over kvm

2010-01-24 Thread SourceForge.net
Bugs item #2932002, was opened at 2010-01-14 14:10 Message generated for change (Settings changed) made by avik You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2932002&group_id=180599 Please note that this message will contain a full copy of the comment t

Re: repeatable hang with loop mount and heavy IO in guest [NOT SOLVED]

2010-01-24 Thread Antoine Martin
On 01/23/2010 02:15 AM, Antoine Martin wrote: On 01/23/2010 01:28 AM, Antoine Martin wrote: On 01/22/2010 02:57 PM, Michael Tokarev wrote: Antoine Martin wrote: I've tried various guests, including most recent Fedora12 kernels, custom 2.6.32.x All of them hang around the same point (~1GB writt

Re: [PATCHv2 1/3] eventfd: allow atomic read and waitqueue remove

2010-01-24 Thread Avi Kivity
On 01/21/2010 08:02 PM, Michael S. Tsirkin wrote: On Thu, Jan 21, 2010 at 07:57:22PM +0200, Avi Kivity wrote: On 01/21/2010 07:56 PM, Avi Kivity wrote: On 01/21/2010 07:45 PM, Michael S. Tsirkin wrote: But you're in process context. An eventfd never blocks.

Re: Best strategy for use of swap?

2010-01-24 Thread Michael Tokarev
Kenni Lund wrote: > Hi > > I was wondering; Does it make any sense to use swap inside guests? > Wouldn't it give better performance to just skip swap entirely in the > guest, assign it more memory and then increase the swap size on the > host? The Gold Rule: do not swap guests. If a guest does no

Best strategy for use of swap?

2010-01-24 Thread Kenni Lund
Hi I was wondering; Does it make any sense to use swap inside guests? Wouldn't it give better performance to just skip swap entirely in the guest, assign it more memory and then increase the swap size on the host? Writing to swap on the host side doesn't have the overhead of the virtio layer, Qco

[PATCH] KVM: VMX: Fix clts

2010-01-24 Thread Avi Kivity
The simplistic clts implementation has a couple of flaws: - kvm_read_cr0_bits() is temporarily unsynchronized when vcpu->arch.cr0 changes - if the fpu is active, we need to clear GUEST_CR0.TS, not just CR_READ_SHADOW.TS, so that we don't send the guest an unexpected #NM. Fix by replacing custom

Re: vga stad / vga vmware leads to KVM internal error. Suberror: 1

2010-01-24 Thread Dominik Brodowski
On Sun, Jan 24, 2010 at 09:27:44AM +0200, Avi Kivity wrote: > On 01/22/2010 03:52 PM, Dominik Brodowski wrote: > > > >>So it seems from the Xorg log. Boot a Ubuntu 9.10 cdrom, on > >>qemu-kvm-0.11 it boots fine and fast, on 0.12 it fails on emulation > >>(unless you apply my patchset, in which cas