[virt-tools-list] [PATCH 1/1] virtinst: Set default value of machine type as pseries on ppc64
Cole Robinson
crobinso at redhat.com
Thu Sep 6 15:39:04 UTC 2012
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 at linux.vnet.ibm.com>
> ---
> 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
More information about the virt-tools-list
mailing list