Single PV startup vs multiple PV startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zachary Amsden wrote:
> Jeremy Fitzhardinge wrote:
>   
>>>   When combined with Zach's "share startup_32" patch, I
>>> think it's a no-brainer.
>>>   
>>>       
>> Actually, that's a non-starter.  It won't work if the kernel is 
>> running in ring 0.
>>     
>
>   

Doesn't this work and give a common entry point with the regular kernel, 
eliminating all the need for string processing?

--- .pc/head-S-common-entry/arch/i386/kernel/head.S     2006-07-28 
00:02:12.000000000 -0700
+++ arch/i386/kernel/head.S     2006-07-28 00:04:43.000000000 -0700
@@ -54,6 +54,12 @@
  * can.
  */
 ENTRY(startup_32)
+
+#ifdef CONFIG_PARAVIRT
+       mov %cr0, %ecx
+       test %ecx, %ecx
+       js pv_startup_32
+#endif

 /*
  * Set segments to known values.



[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux