[openstack-dev] [Nova] Libvirt driver platform support

Daniel P. Berrange berrange at redhat.com
Tue Jan 21 13:31:12 UTC 2014


On Tue, Jan 21, 2014 at 01:19:32PM +0000, Balaji.P at freescale.com wrote:
> Hi,
> 
> Libvert driver has the below code snippet, where it assumes that the Host platform supports "pit" etc when libvirt is configured for KVM.
> 
> For PowerPC [Freescale] platform below code is causing issues.
> 
> Code snippet from driver.py:
> 
> if CONF.libvirt_type == "kvm":
>             # TODO(berrange) One day this should be per-guest
>             # OS type configurable
>             tmpit = vconfig.LibvirtConfigGuestTimer()
>             tmpit.name = "pit"
>             tmpit.tickpolicy = "delay"
> 
>             tmrtc = vconfig.LibvirtConfigGuestTimer()
>             tmrtc.name = "rtc"
> 
> Is there any way where we can do the below in more generic way
> or is it mandatory that platform supporting KVM must support "pit" as well.

Just adjust the logic to take account of PPC architecture skipping
the pit in that case.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



More information about the OpenStack-dev mailing list