Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
kvm
kvm-kernel-cpuid4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kvm-kernel-cpuid4.patch of Package kvm
# Quick patch until proper version is upstream, but is safe. # Signed-off-by: Alex Graf - agraf@suse Index: kvm-75/kernel/x86/x86.c =================================================================== --- kvm-75.orig/kernel/x86/x86.c +++ kvm-75/kernel/x86/x86.c @@ -1260,7 +1260,7 @@ static int kvm_vcpu_ioctl_set_cpuid(stru struct kvm_cpuid *cpuid, struct kvm_cpuid_entry *entries) { - int r, i; + int r, i, n = 0; struct kvm_cpuid_entry *cpuid_entries; r = -E2BIG; @@ -1280,8 +1280,17 @@ static int kvm_vcpu_ioctl_set_cpuid(stru vcpu->arch.cpuid_entries[i].ebx = cpuid_entries[i].ebx; vcpu->arch.cpuid_entries[i].ecx = cpuid_entries[i].ecx; vcpu->arch.cpuid_entries[i].edx = cpuid_entries[i].edx; - vcpu->arch.cpuid_entries[i].index = 0; - vcpu->arch.cpuid_entries[i].flags = 0; + switch(vcpu->arch.cpuid_entries[i].function) { + case 4: + vcpu->arch.cpuid_entries[i].index = n; + vcpu->arch.cpuid_entries[i].flags = KVM_CPUID_FLAG_SIGNIFCANT_INDEX; + n++; + break; + default: + vcpu->arch.cpuid_entries[i].index = 0; + vcpu->arch.cpuid_entries[i].flags = 0; + break; + } vcpu->arch.cpuid_entries[i].padding[0] = 0; vcpu->arch.cpuid_entries[i].padding[1] = 0; vcpu->arch.cpuid_entries[i].padding[2] = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor