All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Xm-test fails to pass sanity checks in hvm mode
@ 2006-04-11 21:59 Li, Xin B
  2006-04-11 22:29 ` Daniel Stekloff
  0 siblings, 1 reply; 11+ messages in thread
From: Li, Xin B @ 2006-04-11 21:59 UTC (permalink / raw)
  To: Daniel Stekloff, Lynn Bendixsen; +Cc: xen-devel

>
>It won't boot an SMP kernel. I bet the default kernel you're building
>with is SMP, right? HVM doesn't support SMP yet, I believe, although
>Intel people are working on that. I haven't debugged any further but
>I've confirmed that an SMP kernel on the disk.img won't boot.

I'm not in the context, but still have some comments here :-).
Basically we *can* boot a SMP kernel in a UP VMX domain. To boot up a
SMP kernel, we need vcpus > 1, acpi = 1 and apic = 1 in the config file,
or you are just running a UP VMX domain.
Some old version Linux SMP kernel can *not* boot in a SMP VMX domain,
but the root cause is PAE support code, which is mixed with SMP code in
Linux kernel :-(, newer version Linux, like 2.6.12+, should work.
Actually we have a fix to this PAE issue, but more tests needed.

-Xin


>
>Thanks,
>
>Dan
>
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Xm-test fails to pass sanity checks in hvm mode
@ 2006-04-11 22:32 Li, Xin B
  2006-04-11 22:36 ` Daniel Stekloff
  0 siblings, 1 reply; 11+ messages in thread
From: Li, Xin B @ 2006-04-11 22:32 UTC (permalink / raw)
  To: Daniel Stekloff; +Cc: xen-devel, Lynn Bendixsen

>> I'm not in the context, but still have some comments here :-).
>> Basically we *can* boot a SMP kernel in a UP VMX domain. To boot up a
>> SMP kernel, we need vcpus > 1, acpi = 1 and apic = 1 in the 
>config file,
>> or you are just running a UP VMX domain.
>> Some old version Linux SMP kernel can *not* boot in a SMP VMX domain,
>> but the root cause is PAE support code, which is mixed with 
>SMP code in
>> Linux kernel :-(, newer version Linux, like 2.6.12+, should work.
>> Actually we have a fix to this PAE issue, but more tests needed.
>
>
>Are you using the qemu-dm that's in the xen-unstable tree? 
>
>I can't get the SMP kernel to boot. I got a 2.6.16 SMP kernel, 
>made sure
>the options were set in the config, and I get the following error
>repeatedly:
>
>"Unknown interrupt or fault at EIP 00000060 c0100295 0000294"
>

Your SMP kernel is PAE enabled, so add pae = 1 to your config file.
Or, compile a none PAE SMP kernel.
-Xin



>Either way, if you'd like to do more testing using xm-test - then it
>will need to be patched to have the correct config options.
>
>Thanks,
>
>Dan
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Xm-test fails to pass sanity checks in hvm mode
@ 2006-04-11 22:38 Li, Xin B
  2006-04-11 22:59 ` Daniel Stekloff
  0 siblings, 1 reply; 11+ messages in thread
From: Li, Xin B @ 2006-04-11 22:38 UTC (permalink / raw)
  To: Daniel Stekloff; +Cc: xen-devel, Lynn Bendixsen


>
>I do have pae=1.

Are you using 32 bit xen? We can not run a PAE SMP kernel on it.

-Xin


>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Xm-test fails to pass sanity checks in hvm mode
@ 2006-04-12  0:32 Li, Xin B
  0 siblings, 0 replies; 11+ messages in thread
From: Li, Xin B @ 2006-04-12  0:32 UTC (permalink / raw)
  To: Daniel Stekloff; +Cc: xen-devel, Lynn Bendixsen

>
>On Wed, 2006-04-12 at 06:38 +0800, Li, Xin B wrote:
>> >
>> >I do have pae=1.
>> 
>> Are you using 32 bit xen? We can not run a PAE SMP kernel on it.
>
>
>D'oh!... my bad. <grin> 
>
>I still can't get it to work - 32bit system with a 32bit 2.6.15 SMP
>kernel. This is with the xm-test disk.img.
>
>I'll need to make a new disk image (not xm-test disk.img) tomorrow with
>an SMP kernel and try again. 

You'll get blocked by a SMP bug on 32bit xen, use this patch should get
you pass.

diff -r edefe24d78bd xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Tue Apr 11 12:51:48 2006 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Wed Apr 12 06:35:11 2006 +0800
@@ -1472,7 +1472,7 @@ static int vmx_set_cr0(unsigned long val
             }
         }

-        clear_all_shadow_status(v->domain);
+        //clear_all_shadow_status(v->domain);
         if ( vmx_assist(v, VMX_ASSIST_INVOKE) ) {
             set_bit(VMX_CPU_STATE_ASSIST_ENABLED,
&v->arch.hvm_vmx.cpu_state);
             __vmread(GUEST_RIP, &eip);

Hope a better fix will be sent out soon.

-Xin

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-04-12  0:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4432C3CA.30F0.00FC.0@novell.com>
     [not found] ` <4433BACA.30F0.00FC.0@novell.com>
     [not found]   ` <443A88B5.65A5.00FC.0@novell.com>
2006-04-11 17:06     ` Xm-test fails to pass sanity checks in hvm mode Lynn Bendixsen
2006-04-11 18:21       ` Daniel Stekloff
2006-04-11 20:21         ` Lynn Bendixsen
2006-04-11 21:44           ` Daniel Stekloff
2006-04-11 21:59 Li, Xin B
2006-04-11 22:29 ` Daniel Stekloff
  -- strict thread matches above, loose matches on Subject: below --
2006-04-11 22:32 Li, Xin B
2006-04-11 22:36 ` Daniel Stekloff
2006-04-11 22:38 Li, Xin B
2006-04-11 22:59 ` Daniel Stekloff
2006-04-12  0:32 Li, Xin B

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.