Received: from eggs.gnu.org ([2001:4830:134:3::10]:59200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsyGQ-0006yf-GQ for qemu-devel@nongnu.org; Thu, 14 May 2015 14:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsyGN-00087y-48 for qemu-devel@nongnu.org; Thu, 14 May 2015 14:53:46 -0400 From: Eduardo Habkost Date: Thu, 14 May 2015 15:53:05 -0300 Message-Id: <1431629590-25181-9-git-send-email-ehabkost@redhat.com> In-Reply-To: <1431629590-25181-1-git-send-email-ehabkost@redhat.com> References: <1431629590-25181-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v2 08/13] spapr: define SPAPR_COMPAT_2_3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , jasowang@redhat.com, Alexander Graf , qemu-ppc@nongnu.org, pbonzini@redhat.com, rth@twiddle.net Don't add the pseries-2.3 machine yet, but define the corresponding SPAPR_COMPAT macro to make sure both pseries-2.2 and pseries-2.1 will inherit HW_COMPAT_2_3. Signed-off-by: Eduardo Habkost --- hw/ppc/spapr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index de1b740..a15fa3c 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1815,7 +1815,11 @@ static const TypeInfo spapr_machine_info = { }, }; +#define SPAPR_COMPAT_2_3 \ + HW_COMPAT_2_3 + #define SPAPR_COMPAT_2_2 \ + SPAPR_COMPAT_2_3 \ HW_COMPAT_2_2 \ {\ .driver = TYPE_SPAPR_PCI_HOST_BRIDGE,\ -- 2.1.0