Red Hat Bugzilla – Bug 859314
kvm.modules and udev rules for kvm should not be installed only on x86
Last modified: 2013-01-09 07:08:37 EST
Description of problem:
The qemu srpm includes sample sysconfig and udev rules files to automatically load the kvm module and handle the /dev/kvm device node. However these files are only installed in the x86-only "qemu-kvm" subpackage. These files should also be installed on other kvm capable subpackages, such as qemu-system-ppc when built for a ppc host.
The "qemu-kvm" subpackage is not intended to be x86-only. It should pull in whichever arch-depedant system package contains the KVM binaries. It is x86-only currently because historically no other arches built KVM support.
Ok, in that case it needs to not include the 'qemu-kvm' binary which is x86 only and hopefully to disappear in the not too distant future.
Do I need to file another bug about that package being x86 only, or can this one be repurposed.
Created attachment 620602 [details]
modules file updated to support ppc64 kvm
In addition the current kvm.modules file is based on x86 only assumptions. I've attached an updated version which should cover both x86 and ppc64 kvm cases.
Thanks, I applied a similar patch to the kvm.modules script. To support PPC builds with KVM support I had to do a relatively large restructuring of the spec file.
I removed the x86only knob and replaced it with a kvmonly knob that is closer to what the RHEL build actually wants. http://koji.fedoraproject.org/koji/taskinfo?taskID=4583786 is a sample x86 kvmonly build, while the non-kvmonly build (http://koji.fedoraproject.org/koji/taskinfo?taskID=4583778) is the same as before.
Ah, also all settings for KVM arches are at the top of the spec, so that adding s390 and in the future ARM support should be quite easy.