Re: [PATCH 1/1] virtinst: Set default value of machine type as pseries on ppc64

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

 



On 08/24/2012 12:47 AM, Li Zhang wrote:
> The default value is None on ppc64, but pseries is prefered
> on ppc64. So this patch is to set the default value.
> 
> Signed-off-by: Li Zhang <zhlcindy@xxxxxxxxxxxxxxxxxx>
> ---
>  virtinst/Guest.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/virtinst/Guest.py b/virtinst/Guest.py
> index 23b4946..22eac45 100644
> --- a/virtinst/Guest.py
> +++ b/virtinst/Guest.py
> @@ -1435,6 +1435,9 @@ class Guest(XMLBuilderDomain.XMLBuilderDomain):
>          if features["pae"] is None and self._get_caps():
>              features["pae"] = self._get_caps().support_pae()
>  
> +        if (self.installer.machine == None and
> +            self._get_caps().host.arch == "ppc64"):
> +            self.installer.machine = "pseries"
>  
>      def _set_pv_defaults(self, devlist_func, remove_func):
>          # Default file backed PV guests to tap driver
> 

Thanks, pushed now.

- Cole


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [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]     [Video 4 Linux]

  Powered by Linux