Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752968AbcDVJvT (ORCPT ); Fri, 22 Apr 2016 05:51:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37134 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781AbcDVJvQ (ORCPT ); Fri, 22 Apr 2016 05:51:16 -0400 Date: Fri, 22 Apr 2016 02:49:53 -0700 From: "tip-bot for Luis R. Rodriguez" Message-ID: Cc: dvlasenk@redhat.com, rusty@rustcorp.com.au, peterz@infradead.org, tglx@linutronix.de, brgerst@gmail.com, mcgrof@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, bp@alien8.de, luto@amacapital.net, hpa@zytor.com, mingo@kernel.org Reply-To: hpa@zytor.com, mingo@kernel.org, mcgrof@kernel.org, brgerst@gmail.com, bp@alien8.de, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, luto@amacapital.net, peterz@infradead.org, tglx@linutronix.de, dvlasenk@redhat.com, rusty@rustcorp.com.au In-Reply-To: <1460592286-300-4-git-send-email-mcgrof@kernel.org> References: <1460592286-300-4-git-send-email-mcgrof@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] tools/lguest: Make lguest launcher use X86_SUBARCH_LGUEST explicitly Git-Commit-ID: 907bb655797427cc6498045d6977e77f8363fff7 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2354 Lines: 67 Commit-ID: 907bb655797427cc6498045d6977e77f8363fff7 Gitweb: http://git.kernel.org/tip/907bb655797427cc6498045d6977e77f8363fff7 Author: Luis R. Rodriguez AuthorDate: Wed, 13 Apr 2016 17:04:33 -0700 Committer: Ingo Molnar CommitDate: Fri, 22 Apr 2016 10:29:00 +0200 tools/lguest: Make lguest launcher use X86_SUBARCH_LGUEST explicitly Be explicit and make use of X86_SUBARCH_LGUEST directly. Signed-off-by: Luis R. Rodriguez Acked-by: Rusty Russell Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: andrew.cooper3@citrix.com Cc: andriy.shevchenko@linux.intel.com Cc: bigeasy@linutronix.de Cc: boris.ostrovsky@oracle.com Cc: david.vrabel@citrix.com Cc: ffainelli@freebox.fr Cc: george.dunlap@citrix.com Cc: glin@suse.com Cc: jgross@suse.com Cc: jlee@suse.com Cc: josh@joshtriplett.org Cc: julien.grall@linaro.org Cc: konrad.wilk@oracle.com Cc: kozerkov@parallels.com Cc: lenb@kernel.org Cc: lguest@lists.ozlabs.org Cc: linux-acpi@vger.kernel.org Cc: lv.zheng@intel.com Cc: matt@codeblueprint.co.uk Cc: mbizon@freebox.fr Cc: rjw@rjwysocki.net Cc: robert.moore@intel.com Cc: tiwai@suse.de Cc: toshi.kani@hp.com Cc: xen-devel@lists.xensource.com Link: http://lkml.kernel.org/r/1460592286-300-4-git-send-email-mcgrof@kernel.org Signed-off-by: Ingo Molnar --- 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 80159e6..ff0aa580 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;