From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8SBq-0000uD-0I for qemu-devel@nongnu.org; Fri, 05 Oct 2018 11:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8S1g-0001k7-HW for qemu-devel@nongnu.org; Fri, 05 Oct 2018 11:28:28 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8S1e-0001iC-G4 for qemu-devel@nongnu.org; Fri, 05 Oct 2018 11:28:24 -0400 Received: by mail-wm1-f65.google.com with SMTP id a8-v6so2307849wmf.1 for ; Fri, 05 Oct 2018 08:28:22 -0700 (PDT) References: <20181004151429.7232-1-crosa@redhat.com> <20181004151429.7232-4-crosa@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <770ad896-2fb5-64fb-1867-3973850dc009@redhat.com> Date: Fri, 5 Oct 2018 17:28:16 +0200 MIME-Version: 1.0 In-Reply-To: <20181004151429.7232-4-crosa@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 3/7] scripts/qemu.py: add method and private attribute for arch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cleber Rosa , qemu-devel@nongnu.org Cc: Caio Carrara , Eduardo Habkost , =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Laszlo Ersek , Stefan Hajnoczi , Fam Zheng On 04/10/2018 17:14, Cleber Rosa wrote: > Because some sane defaults may require the knowledge of the arch, > let's give the QEMUMachine the opportunity to hold that information. > > Signed-off-by: Cleber Rosa Reviewed-by: Philippe Mathieu-Daudé > --- > scripts/qemu.py | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/scripts/qemu.py b/scripts/qemu.py > index f099ce7278..d9e24a0c1a 100644 > --- a/scripts/qemu.py > +++ b/scripts/qemu.py > @@ -113,6 +113,7 @@ class QEMUMachine(object): > self._test_dir = test_dir > self._temp_dir = None > self._launched = False > + self._arch = None > self._machine = None > self._console_device_type = None > self._console_address = None > @@ -406,6 +407,12 @@ class QEMUMachine(object): > ''' > self._args.extend(args) > > + def set_arch(self, arch): > + """ > + Sets the architecture of this machine > + """ > + self._arch = arch > + > def set_machine(self, machine_type): > ''' > Sets the machine type >