Warning: E-mail viruses detected

2010-10-18 Thread Email Virus Scanner
Our virus detector has just been triggered by a message you sent:- To: go...@erg.abdn.ac.uk Subject: Mail System Error - Returned Mail Date: Mon Oct 18 07:27:58 2010 One or more of the attachments are on the list of unacceptable attachments for this site and will not have been delivered to

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Jan Kiszka
Am 18.10.2010 06:43, Dave Young wrote: On Sun, Oct 17, 2010 at 8:15 PM, Avi Kivity a...@redhat.com wrote: On 10/17/2010 12:14 PM, Dave Young wrote: On Sun, Oct 17, 2010 at 5:34 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 10:54 AM, Dave Young wrote: linux guest can not startup

Re: [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-10-18 Thread Roedel, Joerg
(Sorry for the late reply) On Thu, Oct 07, 2010 at 08:48:06AM -0400, Anthony Liguori wrote: On 10/07/2010 03:42 AM, Roedel, Joerg wrote: On Wed, Oct 06, 2010 at 03:24:59PM -0400, Anthony Liguori wrote: +qemu_compat_version = machine-compat_version; + if (display_type ==

RE: [PATCH v12 12/17] Add mp(mediate passthru) device.

2010-10-18 Thread Xin, Xiaohui
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Sunday, October 03, 2010 9:13 PM To: Xin, Xiaohui Cc: net...@vger.kernel.org; kvm@vger.kernel.org; linux-ker...@vger.kernel.org; mi...@elte.hu; da...@davemloft.net; herb...@gondor.hengli.com.au;

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 09:14 AM, Jan Kiszka wrote: Am 18.10.2010 06:43, Dave Young wrote: On Sun, Oct 17, 2010 at 8:15 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 12:14 PM, Dave Young wrote: On Sun, Oct 17, 2010 at 5:34 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 10:54 AM,

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 10:55 AM, Avi Kivity wrote: On 10/18/2010 09:14 AM, Jan Kiszka wrote: Am 18.10.2010 06:43, Dave Young wrote: On Sun, Oct 17, 2010 at 8:15 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 12:14 PM, Dave Young wrote: On Sun, Oct 17, 2010 at 5:34 PM, Avi

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 09:14 AM, Jan Kiszka wrote: Am 18.10.2010 06:43, Dave Young wrote: On Sun, Oct 17, 2010 at 8:15 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 12:14 PM, Dave Young wrote: On Sun, Oct 17, 2010 at 5:34 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 10:54 AM,

Re: [PATCH 0/3] Launch other test during migration

2010-10-18 Thread pradeep
On Mon, 18 Oct 2010 00:59:20 -0400 (EDT) Jason Wang jasow...@redhat.com wrote: Hello guys: Any further suggestion which I need to improve those patches? I agree that there's no much tests need to be run is this way except for migration. In order to validate the function of migration, many

Re: TODO item: guest programmable mac/vlan filtering with macvtap

2010-10-18 Thread Arnd Bergmann
On Friday 15 October 2010, Michael S. Tsirkin wrote: On Thu, Oct 14, 2010 at 11:40:52PM +0200, Dragos Tatulea wrote: Hi, I'm starting a thread related to the TODO item mentioned in the subject. Currently still gathering info and trying to make kvm macvtap play nicely together. I

Re: [PATCH 2/3] QMPMonitor: Introduce the send() method and wrappers

2010-10-18 Thread Lucas Meneghel Rodrigues
On Fri, 2010-10-15 at 17:52 -0300, Luiz Capitulino wrote: This method directly sends data to the QMP monitor and returns its response, without any kind of special treatment or sanity checking. Two simple wrappers are also introduced: cmd_obj() and cmd_qmp(), they provide some level of

Re: [PATCH 3/3] Introduce QMP basic test-suite

2010-10-18 Thread Lucas Meneghel Rodrigues
On Fri, 2010-10-15 at 17:52 -0300, Luiz Capitulino wrote: This commit introduces a suite which checks that QMP conforms to its specification (which is file QMP/qmp-spec.txt in QEMU's source tree). It's important to note that this suite does _not_ do command or asynchronous messages testing,

Re: Frame buffer corruptions with KVM = 2.6.36

2010-10-18 Thread Takuya Yoshikawa
(2010/10/15 15:41), Takuya Yoshikawa wrote: (2010/10/14 21:38), Avi Kivity wrote: On 10/14/2010 02:36 PM, Jan Kiszka wrote: and this commit just makes the corruptions more likely. This may even be a QEMU issue in the cirrus/vga model (both qemu-kvm and upstream show the effect). What

Re: Frame buffer corruptions with KVM = 2.6.36

2010-10-18 Thread Jan Kiszka
Am 18.10.2010 14:14, Takuya Yoshikawa wrote: (2010/10/15 15:41), Takuya Yoshikawa wrote: (2010/10/14 21:38), Avi Kivity wrote: On 10/14/2010 02:36 PM, Jan Kiszka wrote: and this commit just makes the corruptions more likely. This may even be a QEMU issue in the cirrus/vga model (both

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Steven Rostedt
On Mon, 2010-10-18 at 10:58 +0200, Avi Kivity wrote: Doesn't parse here. I get a bus error. Steven, is trace.dat meant to be transportable? What does it depend on? Jan, can you upload your parsed data somewhere? I want to have a look as well. Never mind, user error here.

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 02:26 PM, Steven Rostedt wrote: On Mon, 2010-10-18 at 10:58 +0200, Avi Kivity wrote: Doesn't parse here. I get a bus error. Steven, is trace.dat meant to be transportable? What does it depend on? Jan, can you upload your parsed data somewhere? I want to

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 11:15:51AM +0200, Avi Kivity wrote: On 10/18/2010 09:14 AM, Jan Kiszka wrote: Am 18.10.2010 06:43, Dave Young wrote: On Sun, Oct 17, 2010 at 8:15 PM, Avi Kivitya...@redhat.com wrote: On 10/17/2010 12:14 PM, Dave Young wrote: On Sun, Oct 17, 2010 at 5:34 PM,

Re: [PATCH] KVM: Fix signature of kvm_iommu_map_pages stub

2010-10-18 Thread Marcelo Tosatti
On Thu, Oct 14, 2010 at 02:43:51PM +0200, Jan Kiszka wrote: Am 14.10.2010 13:59, Jan Kiszka wrote: Breaks otherwise if CONFIG_IOMMU_API is not set. Actually, it only broke a special local version. It doesn't break with current KVM due to [__kvm_set_memory_region:] #ifdef CONFIG_DMAR

Re: [PATCH] KVM: Fix signature of kvm_iommu_map_pages stub

2010-10-18 Thread Jan Kiszka
Am 18.10.2010 15:04, Marcelo Tosatti wrote: On Thu, Oct 14, 2010 at 02:43:51PM +0200, Jan Kiszka wrote: Am 14.10.2010 13:59, Jan Kiszka wrote: Breaks otherwise if CONFIG_IOMMU_API is not set. Actually, it only broke a special local version. It doesn't break with current KVM due to

[KVM-AUTOTEST PATCH] KVM test: kvm_subprocess.py: reset _thread_kill_requested in kill_tail_threads()

2010-10-18 Thread Michael Goldish
Reset the flag only after all relevant child threads have been joined. Resetting the flag in one of the child threads causes a race condition, where the other child threads will not detect that the flag was set and will therefore not terminate. Signed-off-by: Michael Goldish mgold...@redhat.com

[KVM-AUTOTEST PATCH] KVM test: whql_client_install: fix retrieval of server_dns_suffix

2010-10-18 Thread Michael Goldish
Currently REG_SZ is incorrectly used if no dns suffix is set. Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/tests/whql_client_install.py |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/tests/whql_client_install.py

[KVM-AUTOTEST PATCH] [RFC] KVM test: kvm_monitor.py: refactor _get_command_output()

2010-10-18 Thread Michael Goldish
Instead of _get_command_output() and friends, introduce the following methods: * QMP: - _send(): send raw data without waiting for a response - _get_response(): get the response to a previously sent command - cmd(): send a command with arguments, return response, raise an exception

[KVM-AUTOTEST PATCH] KVM test: kvm_monitor.py: add __str__() method to QMPCmdError exception

2010-10-18 Thread Michael Goldish
Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/kvm_monitor.py | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/tests/kvm/kvm_monitor.py b/client/tests/kvm/kvm_monitor.py index b887060..40be77d 100644 ---

Re: [PATCH v7 04/12] Add memory slot versioning and use it to provide fast guest write interface

2010-10-18 Thread Gleb Natapov
Keep track of memslots changes by keeping generation number in memslots structure. Provide kvm_write_guest_cached() function that skips gfn_to_hva() translation if memslots was not changed since previous invocation. Acked-by: Rik van Riel r...@redhat.com Signed-off-by: Gleb Natapov

[PATCH] Add support for async page fault to qemu

2010-10-18 Thread Gleb Natapov
Add save/restore of MSR for migration and cpuid bit. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index bb09fd8..5d8c428 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -678,6 +678,9 @@ static int get_msr_entry(struct kvm_msr_entry *entry, CPUState

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling efer.sce and efer.nx. Dave, please post your /proc/cpuinfo. Is your host running with NX disabled? I see nx bit in /proc/cpuinfo, Actually I don't know how to disable it. Strange. Please patch

[PATCH] KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages

2010-10-18 Thread Jan Kiszka
We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop the dependency on Intel IOMMU, kvm_iommu_map_pages will be a nop anyway if CONFIG_IOMMU_API is not defined. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- virt/kvm/kvm_main.c |2 -- 1 files changed, 0 insertions(+),

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling efer.sce and efer.nx. Dave, please post your /proc/cpuinfo. Is your host running with NX disabled? I see nx bit in /proc/cpuinfo, Actually I

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 03:45 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling efer.sce and efer.nx. Dave, please post your /proc/cpuinfo. Is your host running with NX

Re: [PATCH] KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages

2010-10-18 Thread Roedel, Joerg
On Mon, Oct 18, 2010 at 09:38:40AM -0400, Jan Kiszka wrote: We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop the dependency on Intel IOMMU, kvm_iommu_map_pages will be a nop anyway if CONFIG_IOMMU_API is not defined. Signed-off-by: Jan Kiszka jan.kis...@siemens.com

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 03:46 PM, Avi Kivity wrote: On 10/18/2010 03:45 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling efer.sce and efer.nx. Dave, please post your

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 03:46:17PM +0200, Avi Kivity wrote: On 10/18/2010 03:45 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling efer.sce and efer.nx. Dave,

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 03:50:15PM +0200, Avi Kivity wrote: On 10/18/2010 03:46 PM, Avi Kivity wrote: On 10/18/2010 03:45 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 03:26:30PM +0200, Avi Kivity wrote: On 10/18/2010 02:58 PM, Dave Young wrote: It's secondary_startup_64 enabling

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 03:58 PM, Dave Young wrote: Please patch hardware_setup() to show the value of boot_cpu_has(X86_FEATURE_NX). It's 0 Well, that's ridiculous. Looking back at your /proc/cpuinfo: processor : 0 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivity a...@redhat.com wrote:  On 10/18/2010 03:58 PM, Dave Young wrote:  Please patch hardware_setup() to show the value of  boot_cpu_has(X86_FEATURE_NX). It's 0 Please wait, I reply too quick, actually it boots two times fine then one time fail.

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 04:11 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivitya...@redhat.com wrote: On 10/18/2010 03:58 PM, Dave Young wrote: Please patch hardware_setup() to show the value of boot_cpu_has(X86_FEATURE_NX). It's 0 Please wait, I reply too quick,

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 10:13 PM, Avi Kivity a...@redhat.com wrote:  On 10/18/2010 04:11 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivitya...@redhat.com  wrote:    On 10/18/2010 03:58 PM, Dave Young wrote:        Please patch hardware_setup() to show the value of    

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 10:15 PM, Dave Young hidave.darks...@gmail.com wrote: On Mon, Oct 18, 2010 at 10:13 PM, Avi Kivity a...@redhat.com wrote:  On 10/18/2010 04:11 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivitya...@redhat.com  wrote:    On 10/18/2010 03:58 PM, Dave

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 04:15 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:13 PM, Avi Kivitya...@redhat.com wrote: On 10/18/2010 04:11 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivitya...@redhat.comwrote: On 10/18/2010 03:58 PM, Dave Young wrote:

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Mon, Oct 18, 2010 at 10:19 PM, Avi Kivity a...@redhat.com wrote:  On 10/18/2010 04:15 PM, Dave Young wrote: On Mon, Oct 18, 2010 at 10:13 PM, Avi Kivitya...@redhat.com  wrote:    On 10/18/2010 04:11 PM, Dave Young wrote:  On Mon, Oct 18, 2010 at 10:06 PM, Avi Kivitya...@redhat.com    

Re: [PATCH 2/3] QMPMonitor: Introduce the send() method and wrappers

2010-10-18 Thread Luiz Capitulino
On Mon, 18 Oct 2010 09:42:44 -0200 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Fri, 2010-10-15 at 17:52 -0300, Luiz Capitulino wrote: This method directly sends data to the QMP monitor and returns its response, without any kind of special treatment or sanity checking. Two simple

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Avi Kivity
On 10/18/2010 04:25 PM, Dave Young wrote: That makes some sort of wierd sense. First kvm samples X86_FEATURE_NX, sees that it has the feature, reports it to qemu, qemu runs the guest, NX gets disabled in between, the guest tries to enable NX, kvm kills it. Second time round, kvm

Re: [PATCH] KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages

2010-10-18 Thread Jan Kiszka
Am 18.10.2010 15:48, Roedel, Joerg wrote: On Mon, Oct 18, 2010 at 09:38:40AM -0400, Jan Kiszka wrote: We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop the dependency on Intel IOMMU, kvm_iommu_map_pages will be a nop anyway if CONFIG_IOMMU_API is not defined.

Re: [PATCH 3/3] Introduce QMP basic test-suite

2010-10-18 Thread Luiz Capitulino
On Mon, 18 Oct 2010 09:42:47 -0200 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Fri, 2010-10-15 at 17:52 -0300, Luiz Capitulino wrote: This commit introduces a suite which checks that QMP conforms to its specification (which is file QMP/qmp-spec.txt in QEMU's source tree). It's

Re: [PATCH] KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages

2010-10-18 Thread Roedel, Joerg
On Mon, Oct 18, 2010 at 10:34:01AM -0400, Jan Kiszka wrote: Am 18.10.2010 15:48, Roedel, Joerg wrote: On Mon, Oct 18, 2010 at 09:38:40AM -0400, Jan Kiszka wrote: We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop the dependency on Intel IOMMU, kvm_iommu_map_pages will be

Re: [PATCH 3/3] Introduce QMP basic test-suite

2010-10-18 Thread Lucas Meneghel Rodrigues
On Mon, 2010-10-18 at 12:55 -0200, Luiz Capitulino wrote: On Mon, 18 Oct 2010 09:42:47 -0200 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Fri, 2010-10-15 at 17:52 -0300, Luiz Capitulino wrote: This commit introduces a suite which checks that QMP conforms to its specification

KVM call agenda for Oct 19

2010-10-18 Thread Juan Quintela
Please send in any agenda items you are interested in covering. thanks, Juan. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Add support for async page fault to qemu

2010-10-18 Thread Juan Quintela
Gleb Natapov g...@redhat.com wrote: Add save/restore of MSR for migration and cpuid bit. It is there a way to test if async page faults are in use? if so, we can add a subsection instead of changing the cpuversion. I think that at some point we are going to need a bitmap that indicates what

Re: [PATCH] Add support for async page fault to qemu

2010-10-18 Thread Avi Kivity
On 10/18/2010 05:48 PM, Juan Quintela wrote: Gleb Natapovg...@redhat.com wrote: Add save/restore of MSR for migration and cpuid bit. It is there a way to test if async page faults are in use? Yes, msr != 0 - need a subsection. Good idea. if so, we can add a subsection instead of

qemu-kvm: drop kvm-tpr-opt BIOS region hack

2010-10-18 Thread Marcelo Tosatti
Commit c2333d898b52 changed kvm-tpr-opt.c to use cpu_physical_memory_write_rom for BIOS patching. BIOS map at 0xf can now be registered as IO_MEM_ROM. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/hw/pc.c b/hw/pc.c index 9c08573..b624873 100644 --- a/hw/pc.c +++

Re: [PATCH v7 00/12] KVM: Add host swap event notifications for PV guest

2010-10-18 Thread Marcelo Tosatti
On Thu, Oct 14, 2010 at 11:22:44AM +0200, Gleb Natapov wrote: KVM virtualizes guest memory by means of shadow pages or HW assistance like NPT/EPT. Not all memory used by a guest is mapped into the guest address space or even present in a host memory at any given time. When vcpu tries to access

Re: [Autotest] [KVM-AUTOTEST PATCH] [RFC] KVM test: kvm_monitor.py: refactor _get_command_output()

2010-10-18 Thread Lucas Meneghel Rodrigues
On Mon, 2010-10-18 at 15:13 +0200, Michael Goldish wrote: Instead of _get_command_output() and friends, introduce the following methods: * QMP: - _send(): send raw data without waiting for a response - _get_response(): get the response to a previously sent command - cmd(): send a

Re: [PATCH] Add support for async page fault to qemu

2010-10-18 Thread Gleb Natapov
On Mon, Oct 18, 2010 at 05:48:16PM +0200, Juan Quintela wrote: Gleb Natapov g...@redhat.com wrote: Add save/restore of MSR for migration and cpuid bit. It is there a way to test if async page faults are in use? if so, we can add a subsection instead of changing the cpuversion. Yeah. Good

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Christoph Lameter
On Sat, 16 Oct 2010, Dave Young wrote: Add vzalloc for convinience of vmalloc-then-memset-zero case Reviewed-by: Christoph Lameter c...@linux.com Wish we would also have vzalloc_node() but I guess that can wait. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

Re: [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-10-18 Thread Anthony Liguori
On 10/18/2010 03:22 AM, Roedel, Joerg wrote: (Sorry for the late reply) On Thu, Oct 07, 2010 at 08:48:06AM -0400, Anthony Liguori wrote: On 10/07/2010 03:42 AM, Roedel, Joerg wrote: On Wed, Oct 06, 2010 at 03:24:59PM -0400, Anthony Liguori wrote: +qemu_compat_version =

Re: [Autotest] [KVM-AUTOTEST PATCH] [RFC] KVM test: kvm_monitor.py: refactor _get_command_output()

2010-10-18 Thread Luiz Capitulino
On Mon, 18 Oct 2010 14:28:44 -0200 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Mon, 2010-10-18 at 15:13 +0200, Michael Goldish wrote: Instead of _get_command_output() and friends, introduce the following methods: * QMP: - _send(): send raw data without waiting for a response

Re: [Autotest] [KVM-AUTOTEST PATCH] [RFC] KVM test: kvm_monitor.py: refactor _get_command_output()

2010-10-18 Thread Luiz Capitulino
On Mon, 18 Oct 2010 15:13:39 +0200 Michael Goldish mgold...@redhat.com wrote: Instead of _get_command_output() and friends, introduce the following methods: * QMP: - _send(): send raw data without waiting for a response - _get_response(): get the response to a previously sent command

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread H. Peter Anvin
On 10/18/2010 07:06 AM, Avi Kivity wrote: On 10/18/2010 03:58 PM, Dave Young wrote: Please patch hardware_setup() to show the value of boot_cpu_has(X86_FEATURE_NX). It's 0 Well, that's ridiculous. Looking back at your /proc/cpuinfo: processor: 0 flags: fpu vme

Re: [Qemu-devel] Hitting 29 NIC limit

2010-10-18 Thread H. Peter Anvin
On 10/14/2010 05:57 AM, Anthony Liguori wrote: I've always been sceptical of this. When physical systems have a large number of NICs, it's via multiple functions, not a bunch of PCI bridges. Actually a lot of multiport PCI cards are in fact single or dual NICs behind PCI bridges.

Re: Using 1920x1080 resolution with kvm

2010-10-18 Thread H. Peter Anvin
On 10/11/2010 10:17 AM, Kenni Lund wrote: 2010/10/10 Aniruddha mailingdotl...@gmail.com: I would like to use a resolution 1920x1080 for my Windows XP Guest. Leave KVM at the default resolution (eg. don't specify any resolution), activate remote desktop in Windows XP and connect with

Re: [PATCH] PPC: KVM: Book E doesn't have __end_interrupts.

2010-10-18 Thread Alexander Graf
On 19.10.2010, at 00:35, Scott Wood wrote: Fix an unresolved symbol with CONFIG_KVM_GUEST plus CONFIG_RELOCATABLE on Book E. Thanks, applied to the kvm-ppc-next tree. Avi, could you please pull my tree asap? That breakage is pretty bad and all my fault :(. It might be good if we could have

Re: [Autotest] [KVM-AUTOTEST PATCH] [RFC] KVM test: kvm_monitor.py: refactor _get_command_output()

2010-10-18 Thread Lucas Meneghel Rodrigues
On Mon, 2010-10-18 at 16:25 -0200, Luiz Capitulino wrote: On Mon, 18 Oct 2010 14:28:44 -0200 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Mon, 2010-10-18 at 15:13 +0200, Michael Goldish wrote: Instead of _get_command_output() and friends, introduce the following methods:

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Andrew Morton
On Sat, 16 Oct 2010 12:33:31 +0800 Dave Young hidave.darks...@gmail.com wrote: Add vzalloc for convinience of vmalloc-then-memset-zero case Use __GFP_ZERO in vzalloc to zero fill the allocated memory. Signed-off-by: Dave Young hidave.darks...@gmail.com --- include/linux/vmalloc.h |

KVM: attempt async pf only if address is contained in vma

2010-10-18 Thread Marcelo Tosatti
Only attempt async pagefault if address is contained within vma. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5d57ec9..a9cfbd2 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -996,8 +996,9 @@ static pfn_t

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread Dave Young
On Tue, Oct 19, 2010 at 2:47 AM, H. Peter Anvin h...@zytor.com wrote: On 10/18/2010 07:06 AM, Avi Kivity wrote:   On 10/18/2010 03:58 PM, Dave Young wrote:  Please patch hardware_setup() to show the value of  boot_cpu_has(X86_FEATURE_NX). It's 0 Well, that's ridiculous.  Looking back at

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Dave Young
On Tue, Oct 19, 2010 at 7:46 AM, Andrew Morton a...@linux-foundation.org wrote: On Sat, 16 Oct 2010 12:33:31 +0800 Dave Young hidave.darks...@gmail.com wrote: Add vzalloc for convinience of vmalloc-then-memset-zero case Use __GFP_ZERO in vzalloc to zero fill the allocated memory.

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Dave Young
On Tue, Oct 19, 2010 at 9:27 AM, Dave Young hidave.darks...@gmail.com wrote: On Tue, Oct 19, 2010 at 7:46 AM, Andrew Morton a...@linux-foundation.org wrote: On Sat, 16 Oct 2010 12:33:31 +0800 Dave Young hidave.darks...@gmail.com wrote: Add vzalloc for convinience of vmalloc-then-memset-zero

Re: [Qemu-devel] Re: [PATCH 11/11] kvm, x86: broadcast mce depending on the cpu version

2010-10-18 Thread Hidetoshi Seto
(2010/10/15 22:30), Marcelo Tosatti wrote: On Fri, Oct 15, 2010 at 10:52:05AM +0900, Hidetoshi Seto wrote: (2010/10/15 10:06), Marcelo Tosatti wrote: On Thu, Oct 14, 2010 at 05:55:28PM +0900, Jin Dongming wrote: There is no reason why SRAO event received by the main thread is the only one

[PATCH uq/master 1/2] kvm, x86: ignore SRAO only when MCG_SER_P is available

2010-10-18 Thread Hidetoshi Seto
And restruct this block to call kvm_mce_in_exception() only when it is required. Signed-off-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com --- target-i386/kvm.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index

[PATCH uq/master 2/2] kvm, x86: broadcast mce depending on the cpu version

2010-10-18 Thread Hidetoshi Seto
There is no reason why SRAO event received by the main thread is the only one that being broadcasted. According to the x86 ASDM vol.3A 15.10.4.1, MCE signal is broadcast on processor version 06H_EH or later. This change is required to handle SRAR in smp guests. Signed-off-by: Hidetoshi Seto

Re: KVM call agenda for Oct 19

2010-10-18 Thread Chris Wright
* Juan Quintela (quint...@redhat.com) wrote: Please send in any agenda items you are interested in covering. - 0.13.X -stable handoff - 0.14 planning - threadlet work - virtfs proposals -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Andrew Morton
On Tue, 19 Oct 2010 09:55:17 +0800 Dave Young hidave.darks...@gmail.com wrote: On Tue, Oct 19, 2010 at 9:27 AM, Dave Young hidave.darks...@gmail.com wrote: On Tue, Oct 19, 2010 at 7:46 AM, Andrew Morton Also, a slightly better implementation would be static inline void *

Re: [PATCH 1/2] Add vzalloc shortcut

2010-10-18 Thread Dave Young
On Tue, Oct 19, 2010 at 10:18 AM, Andrew Morton a...@linux-foundation.org wrote: On Tue, 19 Oct 2010 09:55:17 +0800 Dave Young hidave.darks...@gmail.com wrote: On Tue, Oct 19, 2010 at 9:27 AM, Dave Young hidave.darks...@gmail.com wrote: On Tue, Oct 19, 2010 at 7:46 AM, Andrew Morton

Re: [BUG] kvm: guest can not startup due to triple fault

2010-10-18 Thread H. Peter Anvin
On 10/18/2010 06:19 PM, Dave Young wrote: On Tue, Oct 19, 2010 at 2:47 AM, H. Peter Anvin h...@zytor.com wrote: On 10/18/2010 07:06 AM, Avi Kivity wrote: On 10/18/2010 03:58 PM, Dave Young wrote: Please patch hardware_setup() to show the value of boot_cpu_has(X86_FEATURE_NX). It's 0

CD-ROM size not updated when switching CD-ROM images.

2010-10-18 Thread Alex Davis
Steps to reproduce: ) Download the first two Slackware-13.1 32-bit CD-ROM ISO images. ) Start KVM with the following command qemu-system-x86_64 -m 1024M \ -cdrom full path of 1st install disk \ -boot d ) Hit return when prompted for extra boot parameters. ) Hit return when asked to

[PATCH] PPC: KVM: Book E doesn't have __end_interrupts.

2010-10-18 Thread Scott Wood
Fix an unresolved symbol with CONFIG_KVM_GUEST plus CONFIG_RELOCATABLE on Book E. Signed-off-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kernel/kvm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/kvm.c b/arch/powerpc/kernel/kvm.c index

Re: [PATCH] PPC: KVM: Book E doesn't have __end_interrupts.

2010-10-18 Thread Alexander Graf
On 19.10.2010, at 00:35, Scott Wood wrote: Fix an unresolved symbol with CONFIG_KVM_GUEST plus CONFIG_RELOCATABLE on Book E. Thanks, applied to the kvm-ppc-next tree. Avi, could you please pull my tree asap? That breakage is pretty bad and all my fault :(. It might be good if we could have