From patchwork Tue Oct 8 13:49:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PranavkumarSawargaonkar X-Patchwork-Id: 20899 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C69524697 for ; Tue, 8 Oct 2013 13:49:53 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id ia6sf7419542vcb.3 for ; Tue, 08 Oct 2013 06:49:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=dsTnR3bX6uMk5woh9OE25FHcc/ylc0hlC9e2xe9kVPc=; b=LkGVhf4I6iXaPq0CWCv3WbhpU8qrXnHs0iibj6WWePx2uLXued7HjBFa5IwCvlssqe uB66mx9O0pQgGLUYak0waivCxSSINFYwilx2xH5x89lVixl2nu1dzC4HL1O658WoxC0A E0evRluiHhAp356JvH2gZ+5Mrg6Uqxh/z9iRHBibaMSds6GZNdCm9DBjEhvd2SCtAOgL z4s1jKdlR3J3jxvslPIxxOk0K/M6GonhGP6Aa7KqMbz1YdElRzVEdPrAcO6aHdmE2ruT Wj4EZoJqfPIF+qPLQX7dZuE2vgN6ApbalMk0C96NCCSq1Rk+sAwJh7vWFzDSCD6Okf5d HnrQ== X-Received: by 10.236.209.202 with SMTP id s50mr1516012yho.40.1381240192983; Tue, 08 Oct 2013 06:49:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.164 with SMTP id ll4ls266040qeb.17.gmail; Tue, 08 Oct 2013 06:49:52 -0700 (PDT) X-Received: by 10.52.240.198 with SMTP id wc6mr234168vdc.54.1381240192900; Tue, 08 Oct 2013 06:49:52 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id rp4si9563525vcb.36.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 06:49:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id w16so4175129vbb.36 for ; Tue, 08 Oct 2013 06:49:52 -0700 (PDT) X-Gm-Message-State: ALoCoQkCzZR4a3Z3ZDVJUWd55njrWdlV/n0TsDZcB3sne+9bCPbKxcAG9MBQMM5sQMUa7lOo2P1K X-Received: by 10.220.169.203 with SMTP id a11mr1159714vcz.26.1381240192799; Tue, 08 Oct 2013 06:49:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp206683vcz; Tue, 8 Oct 2013 06:49:52 -0700 (PDT) X-Received: by 10.66.146.42 with SMTP id sz10mr3847143pab.100.1381240191973; Tue, 08 Oct 2013 06:49:51 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id gg2si27396578pac.72.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 06:49:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of pranavkumar@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj1so8922676pad.14 for ; Tue, 08 Oct 2013 06:49:51 -0700 (PDT) X-Received: by 10.68.6.170 with SMTP id c10mr2073729pba.101.1381240191319; Tue, 08 Oct 2013 06:49:51 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id ha10sm40234559pbc.23.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 06:49:50 -0700 (PDT) From: Pranavkumar Sawargaonkar To: libvirt-list@redhat.com Cc: patches@linaro.org, crobinso@redhat.com, berrange@redhat.com, anup.patel@linaro.com, Pranavkumar Sawargaonkar , Anup Patel Subject: [PATCH 5/6] Add parsing of AArch64 qemu capabilities. Date: Tue, 8 Oct 2013 19:19:10 +0530 Message-Id: <1381240151-15060-6-git-send-email-pranavkumar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381240151-15060-1-git-send-email-pranavkumar@linaro.org> References: <1381240151-15060-1-git-send-email-pranavkumar@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pranavkumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Parse qemu capabilities AArch64 just like arm 32bit. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- src/qemu/qemu_capabilities.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 7c39c1c..1eae4ba 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -300,6 +300,8 @@ static virArch virQEMUCapsArchFromString(const char *arch) return VIR_ARCH_I686; if (STREQ(arch, "arm")) return VIR_ARCH_ARMV7L; + if (STREQ(arch, "aarch64")) + return VIR_ARCH_AARCH64; return virArchFromString(arch); } @@ -311,6 +313,8 @@ static const char *virQEMUCapsArchToString(virArch arch) return "i386"; else if (arch == VIR_ARCH_ARMV7L) return "arm"; + else if (arch == VIR_ARCH_AARCH64) + return "aarch64"; return virArchToString(arch); }