Re: compilation on ubuntu 32 bit host?

Avi Kivity
2006-11-14T14:32:42Z

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Gildas wrote:
>
> I'll test it happily

attached.

--
error compiling committee.c: too many arguments to function

[-- Attachment #2: kvm-test-bios-vmx-on-all-cpus.patch --]
[-- Type: text/x-patch, Size: 749 bytes --]

Index: kvm_main.c
===================================================================
--- kvm_main.c (revision 3648)
+++ kvm_main.c (working copy)
@@ -555,14 +555,26 @@
return 0;
}

-static __init int vmx_disabled_by_bios(void)
+static int vmx_disabled;
+
+static __init void __vmx_disabled_by_bios(void *garbage)
{
u64 msr;

rdmsrl(MSR_IA32_FEATURE_CONTROL, msr);
- return (msr & 5) == 1; /* locked but not enabled */
+ if ((msr & 5) == 1) { /* locked but not enabled */
+ vmx_disabled = 1;
+ smp_wmb();
+ }
}

+static __init int vmx_disabled_by_bios(void)
+{
+ on_each_cpu(__vmx_disabled_by_bios, 0, 0, 1);
+ smp_rmb();
+ return vmx_disabled;
+}
+
static __init void kvm_enable(void *garbage)
{
int cpu = raw_smp_processor_id();

[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org