From patchwork Thu Apr 14 00:04:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 8829871 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79512C0553 for ; Thu, 14 Apr 2016 00:07:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A1691201B9 for ; Thu, 14 Apr 2016 00:07:01 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9EA820173 for ; Thu, 14 Apr 2016 00:07:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqUmO-0007OX-68; Thu, 14 Apr 2016 00:05:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqUmM-0007O6-IX for xen-devel@lists.xensource.com; Thu, 14 Apr 2016 00:05:02 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id B0/B2-27880-DAEDE075; Thu, 14 Apr 2016 00:05:01 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeJIrShJLcpLzFFi42I5NlG2Q3ftPb5 wg7NfhC3uTXnP7sDosb1vF3sAYxRrZl5SfkUCa8aZfZtYCv6yVTzoY2tg/MXaxcjJISQwlVFi 03adLkYuIHsGk8SUgwuZuxg5ONgEdCVu3pYAqRERSJC4+/QbM0gNs8AxVol5q+aCNQsLxEls2 XSDDcRmEVCV2Du/mRHE5hWwl5i34wKYLSEgJ9HyYzdYPaeAg8SCnSugFttL9N8+AFWTITGvZw 4rhO0lsejGJShbTeLquU3MExj5FjAyrGJUL04tKkst0jXTSyrKTM8oyU3MzNE1NDDVy00tLk5 MT81JTCrWS87P3cQIDBEGINjBOLXB+RCjJAeTkiivySq+cCG+pPyUyozE4oz4otKc1OJDjDIc HEoSvOF3gXKCRanpqRVpmTnAYIVJS3DwKInwbgdJ8xYXJOYWZ6ZDpE4x6nIs+HF7LZMQS15+X qqUOO8MkCIBkKKM0jy4EbDIucQoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVh3ikgU3gy80rgNr 0COoIJ6Iiyd7wgR5QkIqSkGhjFAvTmXQ4x1XR4+elradzbxzU3OC0Zrn7jsvFhFF6u51Pcd4P z+ew1SRLuTNueb3d4sU0/7/7f4u2lUxOmyulyr6n1XPrgu0v2+r6tL/acrpTXedO68JR9UTTD dB9pk2I1E9fvSUqzwrY9XBfW1uLBvuzEZ4O4862c/y7Gn5H/mlpw2q/cMUSJpTgj0VCLuag4E QBgvpvVlwIAAA== X-Env-Sender: mcgrof@kernel.org X-Msg-Ref: server-7.tower-206.messagelabs.com!1460592300!34407292!1 X-Originating-IP: [198.145.29.136] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 50603 invoked from network); 14 Apr 2016 00:05:01 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.136) by server-7.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 14 Apr 2016 00:05:01 -0000 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E25742020F; Thu, 14 Apr 2016 00:04:58 +0000 (UTC) Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8219E20361; Thu, 14 Apr 2016 00:04:56 +0000 (UTC) From: "Luis R. Rodriguez" To: bp@alien8.de, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, rusty@rustcorp.com.au Date: Wed, 13 Apr 2016 17:04:33 -0700 Message-Id: <1460592286-300-4-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1460592286-300-1-git-send-email-mcgrof@kernel.org> References: <1460592286-300-1-git-send-email-mcgrof@kernel.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: kozerkov@parallels.com, matt@codeblueprint.co.uk, bigeasy@linutronix.de, lv.zheng@intel.com, ffainelli@freebox.fr, mbizon@freebox.fr, xen-devel@lists.xensource.com, x86@kernel.org, robert.moore@intel.com, linux-acpi@vger.kernel.org, glin@suse.com, lenb@kernel.org, julien.grall@linaro.org, josh@joshtriplett.org, george.dunlap@citrix.com, jlee@suse.com, lguest@lists.ozlabs.org, boris.ostrovsky@oracle.com, andriy.shevchenko@linux.intel.com, jgross@suse.com, toshi.kani@hp.com, andrew.cooper3@citrix.com, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, luto@amacapital.net, "Luis R. Rodriguez" , david.vrabel@citrix.com, tiwai@suse.de Subject: [Xen-devel] [PATCH v6 03/16] tools/lguest: make lguest launcher use X86_SUBARCH_LGUEST explicitly X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Be explicit and make use of X86_SUBARCH_LGUEST directly. Acked-by: Rusty Russell Signed-off-by: Luis R. Rodriguez --- tools/lguest/lguest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c index 80159e6811c2..ff0aa580c6e1 100644 --- a/tools/lguest/lguest.c +++ b/tools/lguest/lguest.c @@ -3351,8 +3351,8 @@ int main(int argc, char *argv[]) /* Boot protocol version: 2.07 supports the fields for lguest. */ boot->hdr.version = 0x207; - /* The hardware_subarch value of "1" tells the Guest it's an lguest. */ - boot->hdr.hardware_subarch = 1; + /* X86_SUBARCH_LGUEST tells the Guest it's an lguest. */ + boot->hdr.hardware_subarch = X86_SUBARCH_LGUEST; /* Tell the entry path not to try to reload segment registers. */ boot->hdr.loadflags |= KEEP_SEGMENTS;