[PATCH] kvm: external module: move Kbuild to x86 directory

2008-07-30 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Moving x86's Kbuild to x86. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/Kbuild b/kernel/Kbuild dissimilarity index 100% index cb63582..7019ca0 100644 --- a/kernel/Kbuild +++ b/kernel/Kbuild

[PATCH] kvm: external module: workqueue compatibility

2008-07-30 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h index f5169b8..be5c6b7 100644 --- a/kernel/external-module-compat-comm.h +++ b/kernel/external-module-compat-comm.h @@ -495,3

Re: [PATCH 3/5] KVM: pci device assignment

2008-07-30 Thread Amit Shah
* On Tuesday 29 July 2008 15:08:27 Ben-Ami Yassour wrote: On Tue, 2008-07-29 at 14:49 +0530, Amit Shah wrote: * On Monday 28 Jul 2008 21:56:26 Ben-Ami Yassour wrote: +static int kvm_vm_ioctl_assign_device(struct kvm *kvm, + struct kvm_assigned_pci_dev

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread Amit Shah
* On Tuesday 29 July 2008 18:47:35 Andi Kleen wrote: I'm not so interested to go there right now, because while this code is useful right now because the majority of systems out there lacks VT-d/iommu, I suspect this code could be nuked in the long run when all systems will ship with that,

Re: Live Migration fails

2008-07-30 Thread Chris Lalancette
Daniel Hasler wrote: After a while, on host B (the target), I see the following error: migration: wait_for_go: read error len=0 (Interrupted system call) Migration failed rc=210 while on host A, I read following error message: WAIT FOR ACK: timeout reached Migration failed! ret=0

Re: Fresh install of Windows XP hangs early in boot?

2008-07-30 Thread Chris Lalancette
Roland Dreier wrote: BTW I tried using if=ide to install Windows XP and got a blue screen during the installer. What are people doing to run XP in a kvm guest? Hm, your comment later on makes me think you tried this on AMD. If so, I have also run into a similar problem with Windows guests

Re: [PATCH] autoport overrides actual VNC port number in dump-xml

2008-07-30 Thread Daniel P. Berrange
On Wed, Jul 30, 2008 at 12:32:57AM -0500, Charles Duffy wrote: Per subject; if autoport is in use for a host, the current virDomainGraphicsDefFormat code always emits port=-1, even if a port is assigned to the host; this leaves no way for a client to find the VNC port assigned to the host

kvm72: configure script mangles --audio-drv-list and --audio-card-list and blocks them from --help

2008-07-30 Thread TJ
The ./configure script, whilst trying to be clever in passing options to qemu/configure, mangles the --audio-*-list options. It also prevents the audio-*-list options showing up as a result of --help. Here's the output with additional logging echos to show what it and qemu/configure actually see:

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread Andi Kleen
On Wed, Jul 30, 2008 at 11:50:43AM +0530, Amit Shah wrote: * On Tuesday 29 July 2008 18:47:35 Andi Kleen wrote: I'm not so interested to go there right now, because while this code is useful right now because the majority of systems out there lacks VT-d/iommu, I suspect this code could

[PATCH] kvm-s390: Fix facility bits for guest

2008-07-30 Thread Christian Borntraeger
Am Dienstag, 29. Juli 2008 schrieb Christian Borntraeger: @@ -158,6 +158,7 @@ static int handle_stfl(struct kvm_vcpu * vcpu-stat.instruction_stfl++; facility_list = ~(1UL24); /* no stfle */ + facility_list = ~(1UL23); /* no large pages */ rc = copy_to_guest(vcpu,

[PATCH] KVM: Fix exiting from HLT emulation with MP_STATE_HALTED

2008-07-30 Thread Yang, Sheng
From 8019bdd0c7e2933a4d6f7e046d1cc2ded221784e Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 30 Jul 2008 21:45:58 +0800 Subject: [PATCH] KVM: Fix exiting from HLT emulation with MP_STATE_HALTED VCPU can be forced exit from HLT emulation without setting mp_state to

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread Andrea Arcangeli
On Wed, Jul 30, 2008 at 11:50:43AM +0530, Amit Shah wrote: * On Tuesday 29 July 2008 18:47:35 Andi Kleen wrote: I'm not so interested to go there right now, because while this code is useful right now because the majority of systems out there lacks VT-d/iommu, I suspect this code could

Re: [PATCH 01/04]Create x86 directory to hold x86-specific files.

2008-07-30 Thread Avi Kivity
Zhang, Xiantao wrote: Avi Kivity wrote: Zhang, Xiantao wrote: From c8c8c5a6b3ff943cb645f9ac4ef169490f14cd08 Mon Sep 17 00:00:00 2001 From: Zhang Xiantao [EMAIL PROTECTED] Date: Fri, 25 Jul 2008 16:50:30 +0800 Subject: [PATCH] KVM: external module: Moving x86-speicif files to x86

Re: [patch 0/3] fix PIT injection

2008-07-30 Thread Marcelo Tosatti
Hi Dor, On Wed, Jul 30, 2008 at 12:50:06AM +0300, Dor Laor wrote: Marcelo Tosatti wrote: The in-kernel PIT emulation can either inject too many or too few interrupts. While it's an improvement, the in-kernel pit is still not perfect. For example, on pit frequency changes the pending

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread Dor Laor
Andrea Arcangeli wrote: On Wed, Jul 30, 2008 at 11:50:43AM +0530, Amit Shah wrote: * On Tuesday 29 July 2008 18:47:35 Andi Kleen wrote: I'm not so interested to go there right now, because while this code is useful right now because the majority of systems out there lacks VT-d/iommu, I

Re: [PATH] kvm-72 - fix compilation on 2.6.26 (anon_inode_getfd flag)

2008-07-30 Thread Avi Kivity
Nikola Ciprich wrote: Should that be = for future use? nope, newer versions have also the flag parameter (see 2.6.27-rcX), so this is intended only for 2.6.26 Please resend the patch as I don't have it in my mailbox. -- error compiling committee.c: too many arguments to function

Re: Live Migration fails

2008-07-30 Thread Anthony Liguori
Chris Lalancette wrote: Daniel Hasler wrote: After a while, on host B (the target), I see the following error: migration: wait_for_go: read error len=0 (Interrupted system call) Migration failed rc=210 while on host A, I read following error message: WAIT FOR ACK: timeout reached

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread Andrea Arcangeli
On Wed, Jul 30, 2008 at 05:16:06PM +0300, Dor Laor wrote: In addition KVM is used in embedded too and things are slower there, we know of a specific use case (production) that demands 1:1 mapping and can't use VT-d Since you mentioned this ;), I take opportunity to add that those embedded

Re: [PATCH] reserved-ram for pci-passthrough without VT-d capable hardware

2008-07-30 Thread FUJITA Tomonori
On Wed, 30 Jul 2008 15:58:46 +0200 Andrea Arcangeli [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 11:50:43AM +0530, Amit Shah wrote: * On Tuesday 29 July 2008 18:47:35 Andi Kleen wrote: I'm not so interested to go there right now, because while this code is useful right now because

Re: [patch 0/3] fix PIT injection

2008-07-30 Thread Sheng Yang
(Sorry, forgot to switch to plain text in Gmail, rejected by vger.kernel.org...) On Wed, Jul 30, 2008 at 10:15 PM, Marcelo Tosatti [EMAIL PROTECTED] wrote: Hi Dor, On Wed, Jul 30, 2008 at 12:50:06AM +0300, Dor Laor wrote: Marcelo Tosatti wrote: The in-kernel PIT emulation can either inject

Re: Fresh install of Windows XP hangs early in boot?

2008-07-30 Thread Roland Dreier
Hm, your comment later on makes me think you tried this on AMD. If so, I have also run into a similar problem with Windows guests under AMD. After installing WinDbg, it told me that it was a Paging Request in Non-Paged memory related to the Video memory area. Does yours look

Re: Device assignemnt: updated patches

2008-07-30 Thread Avi Kivity
Ben-Ami Yassour wrote: Following are the device assignment patches with the fixes of the comments that were sent for the previous version. Applied 1 and 3, thanks. I already got irq ack notifiers from Marcelo. 4/5 need to be updated to compile when VT-d is not built into the kernel,

Re: [PATH] kvm-72 - fix compilation on 2.6.26 (anon_inode_getfd flag)

2008-07-30 Thread Nikola Ciprich
Hi, sure. hope it's OK n. PS: I mean't PATCH, not PATH of course. Although it was quite a long path to patch :) On Wed, Jul 30, 2008 at 05:34:14PM +0300, Avi Kivity wrote: Nikola Ciprich wrote: Should that be = for future use? nope, newer versions have also the flag parameter (see

Re: kvm72: configure script mangles --audio-drv-list and --audio-card-list and blocks them from --help

2008-07-30 Thread Carlo Marcelo Arenas Belon
On Wed, Jul 30, 2008 at 12:13:10PM +0100, TJ wrote: The ./configure script, whilst trying to be clever in passing options to qemu/configure, mangles the --audio-*-list options. It also prevents the audio-*-list options showing up as a result of --help. this sounds like the problem that was

[RESEND][PATCH 0/2] configure: add support for audio-{drv,card}-list

2008-07-30 Thread Carlo Marcelo Arenas Belon
This is a rebased version of the original patch series presented to fix issues to configure the different audio options in kvm and that is still present in kvm-72 as shown by recent reports. The following series adds support for the audio option lists from qemu's configure that were added in

[PATCH 1/2] configure: include audio list options for --help output

2008-07-30 Thread Carlo Marcelo Arenas Belon
Reflects in kvm's configure the qemu options used to enable support for the different libraries used for audio support propagation and the list of audio devices emulated. This list of options replaces the individual options that were used before kvm-71 with a functional equivalent feature but

[PATCH 2/2] configure: passthrough for audio-{drv,card} and logic cleanup

2008-07-30 Thread Carlo Marcelo Arenas Belon
Avoids reformatting for the options that are send verbatim to qemu's configure and add a passthrough for qemu options that use a space separated list of options like the list for audio drivers enabled or the list for audio devices emulated. Signed-off-by: Carlo Marcelo Arenas Belon [EMAIL

[PATCH] x86 emulator: Emulate cld and std instructions

2008-07-30 Thread Mohammed Gamal
This patch adds instructions 'cld' and 'std' to the emulator. Signed-off-by: Mohammed Gamal [EMAIL PROTECTED] --- From 23c0868c6a48a5e75693bd4552255a89cf26bdc8 Mon Sep 17 00:00:00 2001 From: Mohammed Gamal [EMAIL PROTECTED](none) Date: Thu, 31 Jul 2008 00:04:34 +0300 Subject: [PATCH] Emulate cld

Re: [PATCH] x86 emulator: Emulate cld and std instructions

2008-07-30 Thread Mohammed Gamal
On Thu, Jul 31, 2008 at 12:08 AM, Mohammed Gamal [EMAIL PROTECTED] wrote: This patch adds instructions 'cld' and 'std' to the emulator. Signed-off-by: Mohammed Gamal [EMAIL PROTECTED] --- From 23c0868c6a48a5e75693bd4552255a89cf26bdc8 Mon Sep 17 00:00:00 2001 From: Mohammed Gamal [EMAIL

[PATCH][RESEND] x86_emulator: Emulate cld and std instruction

2008-07-30 Thread Mohammed Gamal
This patch adds 'cld' and 'std' instructions to the emulator Signed-off-by: Mohammed Gamal [EMAIL PROTECTED] --- arch/x86/kvm/x86_emulate.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index

linux-next: ia64 allmodconfig

2008-07-30 Thread Andrew Morton
arch/ia64/kvm/../../../virt/kvm/ioapic.c:42:17: irq.h: No such file or directory arch/ia64/kvm/../../../virt/kvm/ioapic.c: In function `__kvm_ioapic_update_eoi': arch/ia64/kvm/../../../virt/kvm/ioapic.c:296: error: implicit declaration of function `kvm_notify_acked_irq'

[PATCH] kvm: bios: Put AP boot up code to 0x1000

2008-07-30 Thread Yang, Sheng
From ba05b3c821400127074f65ee4d172fabbe3524cd Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Thu, 31 Jul 2008 10:39:24 +0800 Subject: [PATCH] kvm: bios: Put AP boot up code to 0x1000 Rather than 0x1, which can be overrided by userspace program like grub. Signed-off-by:

Re: [PATCH 01/04]Create x86 directory to hold x86-specific files.

2008-07-30 Thread Yang, Sheng
On Sunday 27 July 2008 17:46:26 Zhang, Xiantao wrote: Avi Kivity wrote: Zhang, Xiantao wrote: From c8c8c5a6b3ff943cb645f9ac4ef169490f14cd08 Mon Sep 17 00:00:00 2001 From: Zhang Xiantao [EMAIL PROTECTED] Date: Fri, 25 Jul 2008 16:50:30 +0800 Subject: [PATCH] KVM: external module: Moving

Re: [PATCH 2/2] configure: passthrough for audio-{drv,card} and logic cleanup

2008-07-30 Thread TJ
This patch fails to achieve the intended aim since the values assigned to audio-*-list are hard-reset in several places in qemu/configure, both for initial variable 'declaration' and when setting sane defaults in the absence of command-line over-rides. If qemu/configure is to be left alone

RE: [PATCH 01/04]Create x86 directory to hold x86-specific files.

2008-07-30 Thread Zhang, Xiantao
Yang, Sheng wrote: On Sunday 27 July 2008 17:46:26 Zhang, Xiantao wrote: Avi Kivity wrote: Zhang, Xiantao wrote: From c8c8c5a6b3ff943cb645f9ac4ef169490f14cd08 Mon Sep 17 00:00:00 2001 From: Zhang Xiantao [EMAIL PROTECTED] Date: Fri, 25 Jul 2008 16:50:30 +0800 Subject: [PATCH] KVM: external

Re: [PATCH] KVM: Fix exiting from HLT emulation with MP_STATE_HALTED

2008-07-30 Thread Yang, Sheng
On Wednesday 30 July 2008 21:55:19 Yang, Sheng wrote: From 8019bdd0c7e2933a4d6f7e046d1cc2ded221784e Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 30 Jul 2008 21:45:58 +0800 Subject: [PATCH] KVM: Fix exiting from HLT emulation with MP_STATE_HALTED Recall this patch,

[ kvm-Bugs-2025527 ] kvm-71 crash (oops) in kvm_mmu_slot_remove_write_access

2008-07-30 Thread SourceForge.net
Bugs item #2025527, was opened at 2008-07-23 09:39 Message generated for change (Comment added) made by jlokier You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025527group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2001452 ] Restarted Windows 2003 Server guests have disk corruption

2008-07-30 Thread SourceForge.net
Bugs item #2001452, was opened at 2008-06-24 06:27 Message generated for change (Comment added) made by jlokier You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2001452group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2025527 ] kvm-71 crash (oops) in kvm_mmu_slot_remove_write_access

2008-07-30 Thread SourceForge.net
Bugs item #2025527, was opened at 2008-07-23 09:39 Message generated for change (Comment added) made by jlokier You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025527group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2025527 ] kvm-71 crash (oops) in kvm_mmu_slot_remove_write_access

2008-07-30 Thread SourceForge.net
Bugs item #2025527, was opened at 2008-07-23 09:39 Message generated for change (Comment added) made by jlokier You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025527group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2025527 ] kvm-71 crash (oops) in kvm_mmu_slot_remove_write_access

2008-07-30 Thread SourceForge.net
Bugs item #2025527, was opened at 2008-07-23 09:39 Message generated for change (Comment added) made by jlokier You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025527group_id=180599 Please note that this message will contain a full copy of the comment

[PATCH] KVM: Fix QEmu interrupted HLT emulation

2008-07-30 Thread Yang, Sheng
From: Sheng Yang [EMAIL PROTECTED] Date: Thu, 31 Jul 2008 13:43:58 +0800 Subject: [PATCH] KVM: Fix QEmu interrupted HLT emulation QEmu can interrupt VCPU from HLT emulation without setting mp_state to MP_STATE_RUNNABLE, when it kick vcpus which are doing HLT emulation to do something like stop