Re: [kvm-devel] removing kvm_init()

2007-11-04 Thread Avi Kivity
Hollis Blanchard wrote: Hi Avi, I'm looking at kvm_init() right now. Since everything is driven by the arch-specific modules (svm.c and vmx.c), I think it would simplify things to fold all of kvm_init() into what is today called kvm_init_x86(). If that's done, kvm_main.c won't have any

Re: [kvm-devel] build #334 failed for 2.6.24-rc1-gec3b67c in linux/drivers/kvm/kvm_main.c

2007-11-04 Thread Avi Kivity
Toralf Förster wrote: Hello, the build with the attached .config failed, make ends with: ... CC drivers/kvm/vmx.o CC drivers/kvm/kvm_main.o drivers/kvm/kvm_main.c: In function 'kvm_flush_remote_tlbs': drivers/kvm/kvm_main.c:220: error: implicit declaration of function

Re: [kvm-devel] [PATCH] KVM: is_long_mode should check for EFER_LMA

2007-11-04 Thread Avi Kivity
Amit Shah wrote: From bfed574c93b36a19e2976ddcaae7939dd6c6fc41 Mon Sep 17 00:00:00 2001 From: Amit Shah [EMAIL PROTECTED] Date: Sat, 3 Nov 2007 02:38:00 +0530 Subject: [PATCH] KVM: is_long_mode should check for EFER_LMA is_long_mode currently checks the LongModeEnable bit in EFER instead of

Re: [kvm-devel] [kvm-ppc-devel] [PATCH 01 of 19] Move kvm_context to kvmctl.h

2007-11-04 Thread Avi Kivity
Jerone Young wrote: I'll wait awhile before sending another super patch bomb to the list. Perhaps I can add these changes afterward if need be. Please address the comments. If there is to be churn, I prefer it to be out-of-tree. Please verify that the patch set is bisectable. Note that

Re: [kvm-devel] [PATCH 01 of 19] Move kvm_context to kvmctl.h

2007-11-04 Thread Avi Kivity
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1194027872 18000 # Node ID 72c2d9f9786aea122419208189291808d56b8053 # Parent 6ce27ddeb45df182e923060ae3abe699ce704ca3 Move kvm_context to kvmctl.h This patch moves kvm_context from libkvm.c to

Re: [kvm-devel] [PATCH 07 of 19] Move kvm_create_phys_mem to libkvm-x86.c

2007-11-04 Thread Avi Kivity
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1194027872 18000 # Node ID 8e77064ea82d0b7fbd8bb77429bbfd62f99c00f6 # Parent 02f38e54018070bafd501df846147f4ae7661109 Move kvm_create_phys_mem to libkvm-x86.c This patch moves kvm_create_phys_mem to

Re: [kvm-devel] [PATCH 08 of 19] Move kvm_destroy_phys_mem to libkvm-x86.c

2007-11-04 Thread Avi Kivity
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1194027873 18000 # Node ID 098efe35de4493a3eda631cb2f9fd958ae303897 # Parent 8e77064ea82d0b7fbd8bb77429bbfd62f99c00f6 Move kvm_destroy_phys_mem to libkvm-x86.c Why? -- Any sufficiently difficult

Re: [kvm-devel] [PATCH 11 of 19] Make functions in libkvm.c nonstatic

2007-11-04 Thread Avi Kivity
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1194027873 18000 # Node ID 01b86b564fb9e751295ff8eddf5f38cfb24e1e34 # Parent 8dad7519cc92eabd7d66ea3ea20c983dade61243 Make functions in libkvm.c nonstatic. This patch makes the following functions

Re: [kvm-devel] [PATCH 15 of 19] Declare kvm_abi as a global variable in libkvm.h

2007-11-04 Thread Avi Kivity
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1194027873 18000 # Node ID df89e9282fd9f491579b42624565bac580f7db8e # Parent 68585a137682a876dd438782147445f4484146ce Declare kvm_abi as a global variable in libkvm.h That number can never change, we

Re: [kvm-devel] [BUG] 2.6.23.1 host freezes when running kvm

2007-11-04 Thread Avi Kivity
Bart Trojanowski wrote: * Avi Kivity [EMAIL PROTECTED] [071023 10:21]: Thanks, that will be most helpful. If userspace won't compile against some intermediate version, let me know the commit hash and I'll add a fixup. A bisect didn't find anything between 2.6.22 and 2.6.23. Which

Re: [kvm-devel] [PATCH 00 of 27] Refactor libkvm code Phase 1

2007-11-04 Thread Avi Kivity
Jerone Young wrote: Hmm, The problem here is in the case of kvm_create_phys_mem kvm_create_default_phys_mem, most archs from now on should always be allocating guest memory from userspace (at least I think this correct). Now if this is not the case then really adding an

Re: [kvm-devel] [PATCH] KVM: VMX: Fix repeatly calling alloc_apic_access_page()

2007-11-04 Thread Avi Kivity
Sheng Yang wrote: From 00a52112d813af983dd4d34cb7dc701f6fe88829 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Fri, 2 Nov 2007 11:56:17 +0800 Subject: [PATCH] KVM: VMX: Fix repeatly calling alloc_apic_access_page() For SMP guest, alloc_apic_access_page() would be called

Re: [kvm-devel] [ANNOUNCE] kvm-49 release

2007-11-04 Thread Avi Kivity
Zhao, Yunfeng wrote: Save/restore still fails in today's testing. kvm_get_mem_map failed: Unknown error 18446744073709551594 Izik/Uri, did I miss a patch? I did a save/restore previously and it worked, but perhaps something else is broken. -- Any sufficiently difficult bug is

Re: [kvm-devel] [PATCH] Fix writing back APIC reset to inkernel APIC

2007-11-04 Thread Avi Kivity
Dong, Eddie wrote: Yes, when reseting, we need to reset both APIC/PIC/IOAPIC and pv driver in future, and also VCPU. But isn't apic_reset a pure user level APIC thing? The reset callbacks are still called, so the userspace apic is still reset. BTW I posted a patch to support kernel device

Re: [kvm-devel] [ANNOUNCE] kvm-49 release

2007-11-04 Thread Izik Eidus
On Sun, 2007-11-04 at 09:47 +0200, Avi Kivity wrote: Zhao, Yunfeng wrote: Save/restore still fails in today's testing. kvm_get_mem_map failed: Unknown error 18446744073709551594 Izik/Uri, did I miss a patch? I did a save/restore previously and it worked, but perhaps something

Re: [kvm-devel] [PATCH] [v2] Move x86 vcpu ioctl handlers to x86.c

2007-11-04 Thread Avi Kivity
Hollis Blanchard wrote: 3 files changed, 450 insertions(+), 442 deletions(-) drivers/kvm/kvm.h | 10 + drivers/kvm/kvm_main.c | 448 drivers/kvm/x86.c | 434 ++ Signed-off-by: Hollis

Re: [kvm-devel] [PATCH] KVM: is_long_mode should check for EFER_LMA

2007-11-04 Thread Amit Shah
On Sunday 04 November 2007 12:47:32 Avi Kivity wrote: Amit Shah wrote: From bfed574c93b36a19e2976ddcaae7939dd6c6fc41 Mon Sep 17 00:00:00 2001 From: Amit Shah [EMAIL PROTECTED] Date: Sat, 3 Nov 2007 02:38:00 +0530 Subject: [PATCH] KVM: is_long_mode should check for EFER_LMA

Re: [kvm-devel] [PATCH] KVM: is_long_mode should check for EFER_LMA

2007-11-04 Thread Avi Kivity
Amit Shah wrote: On Sunday 04 November 2007 12:47:32 Avi Kivity wrote: Amit Shah wrote: From bfed574c93b36a19e2976ddcaae7939dd6c6fc41 Mon Sep 17 00:00:00 2001 From: Amit Shah [EMAIL PROTECTED] Date: Sat, 3 Nov 2007 02:38:00 +0530 Subject: [PATCH] KVM: is_long_mode should check for

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-04 Thread Dor Laor
Cam Macdonell wrote: Dor Laor wrote: Cam Macdonell wrote: Hi, I'm running an AMD vendor_id : AuthenticAMD cpu family : 15 model : 75 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ with 4GB of RAM and Scientific Linux 5.0. I've compiled kvm-48 on

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-04 Thread Alexey Eremenko
Cam: KVM-AMD is unstable now, unless you're a developer, I would suggest you to downgrade to KVM-36, which was the latest AMD-friendly version. We're working on a fix. Dor: kvm-amd crashes host, without leaving any netconsole messages. -Alexey

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-04 Thread Andrea Arcangeli
On Sun, Nov 04, 2007 at 08:15:26AM -0800, Alexey Eremenko wrote: Cam: KVM-AMD is unstable now, unless you're a developer, I would suggest you to downgrade to KVM-36, which was the latest AMD-friendly version. We're working on a fix. Dor: kvm-amd crashes host, without leaving any

Re: [kvm-devel] [PATCH 00 of 27] Refactor libkvm code Phase 1

2007-11-04 Thread Zhang, Xiantao
Avi Kivity wrote: Jerone Young wrote: Hmm, The problem here is in the case of kvm_create_phys_mem kvm_create_default_phys_mem, most archs from now on should always be allocating guest memory from userspace (at least I think this correct). Now if this is not the case then

Re: [kvm-devel] [PATCH] KVM: VMX: Fix repeatly calling alloc_apic_access_page ()

2007-11-04 Thread Sheng Yang
On Sunday 04 November 2007 15:46:18 Avi Kivity wrote: Sheng Yang wrote: From 00a52112d813af983dd4d34cb7dc701f6fe88829 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Fri, 2 Nov 2007 11:56:17 +0800 Subject: [PATCH] KVM: VMX: Fix repeatly calling alloc_apic_access_page()

[kvm-devel] [ kvm-Bugs-1825874 ] Host crashes when creating guest

2007-11-04 Thread SourceForge.net
Bugs item #1825874, was opened at 2007-11-05 15:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1825874group_id=180599 Please note that this message will contain a full copy of

[kvm-devel] Host crashes when creating guest

2007-11-04 Thread Zhao, Yunfeng
Against latest commits, creating guests will cause host to crash. Here is the serial output when the error happens. vt-sa2 login: Unable to handle kernel paging request3audit: *NO* da it_pid=2268 at 0002aaab

Re: [kvm-devel] Host crashes when creating guest

2007-11-04 Thread Izik Eidus
On Mon, 2007-11-05 at 15:27 +0800, Zhao, Yunfeng wrote: Against latest commits, creating guests will cause host to crash. Here is the serial output when the error happens. can you please tell me what was the guest you used, and what was the latest commit you remember it worked for you?