From patchwork Thu Jul 28 10:50:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9251115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A188E60757 for ; Thu, 28 Jul 2016 11:19:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91A9926D17 for ; Thu, 28 Jul 2016 11:19:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 864CE2723E; Thu, 28 Jul 2016 11:19:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 81F93271BC for ; Thu, 28 Jul 2016 11:19: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 1bSjJ0-0001sc-G0; Thu, 28 Jul 2016 11:16:46 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSjIy-0001rp-U8 for xen-devel@lists.xen.org; Thu, 28 Jul 2016 11:16:45 +0000 Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id 3F/1F-12460-C99E9975; Thu, 28 Jul 2016 11:16:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDve7slzP DDT5cNLVY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDN6dl9gK5jAX3FtUUED4xOuLkZODgkBf4mN T6+zg9hsAgYSK6ZfZQSxRQRkJVZ3zQGKc3EwC8xglni7ZhITSEJYIEHi688jYEUsAqoSL+ZMZ waxeQXsJc79vc0GMVROouH8fbA4J1B85eH7YAuEBOwkDm1cyAxhq0ncWLiMBaJXUOLkzCdgNr OAhMTBFy+AajiA5nBL/O22n8DINwtJ1SwkVQsYmVYxahSnFpWlFukaGuslFWWmZ5TkJmbm6Bo amOrlphYXJ6an5iQmFesl5+duYgSGFAMQ7GD8t83zEKMkB5OSKG9Y6MxwIb6k/JTKjMTijPii 0pzU4kOMMhwcShK8Ai+AcoJFqempFWmZOcDghklLcPAoifA+fg6U5i0uSMwtzkyHSJ1iVJQS5 5UH6RMASWSU5sG1wSLqEqOslDAvI9AhQjwFqUW5mSWo8q8YxTkYlYR5TUCm8GTmlcBNfwW0mA locXHsDJDFJYkIKakGRoYpmc/2zL2w/rM4Y1zTk4l16lsZ9BVvn16/+8XPJjc5NTbVA1quZke CV55/8547U9Ywc/rJMjWhjKvOF28IroosYr7rH3pxCsOf/OCdR9gEmD653e6Onb8mVCz9h+61 2d/Ne5IS+fx8/07oOLjtYN4T6Q38pybxsqRdub5IPmB3rXjS5drtH5VYijMSDbWYi4oTAcwmj OOjAgAA X-Env-Sender: prvs=0100a76d6=anthony.perard@citrix.com X-Msg-Ref: server-9.tower-206.messagelabs.com!1469704602!51885319!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 38444 invoked from network); 28 Jul 2016 11:16:43 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2016 11:16:43 -0000 X-IronPort-AV: E=Sophos;i="5.28,433,1464652800"; d="scan'208";a="375974193" From: Anthony PERARD To: Date: Thu, 28 Jul 2016 11:50:13 +0100 Message-ID: <20160728105013.22310-16-anthony.perard@citrix.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160728105013.22310-1-anthony.perard@citrix.com> References: <20160728105013.22310-1-anthony.perard@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich , Anthony PERARD , Roger Pau Monne Subject: [Xen-devel] [PATCH v7 15/15] docs/misc/hvmlite: Point to the canonical definition of hvm_start_info 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: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The C struct in the document is no more in sync with the actual definition of the PVHv2 boot start info. Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- CC: Roger Pau Monne New patch in V7. --- docs/misc/hvmlite.markdown | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/docs/misc/hvmlite.markdown b/docs/misc/hvmlite.markdown index c1b75c6..69d90fe 100644 --- a/docs/misc/hvmlite.markdown +++ b/docs/misc/hvmlite.markdown @@ -37,24 +37,8 @@ following machine state: All other processor registers and flag bits are unspecified. The OS is in charge of setting up it's own stack, GDT and IDT. -The format of the boot start info structure is the following (pointed to -be %ebx): - - struct hvm_start_info { - #define HVM_START_MAGIC_VALUE 0x336ec578 - uint32_t magic; /* Contains the magic value 0x336ec578 */ - /* ("xEn3" with the 0x80 bit of the "E" set).*/ - uint32_t flags; /* SIF_xxx flags. */ - uint32_t cmdline_paddr; /* Physical address of the command line. */ - uint32_t nr_modules; /* Number of modules passed to the kernel. */ - uint32_t modlist_paddr; /* Physical address of an array of */ - /* hvm_modlist_entry. */ - }; - - struct hvm_modlist_entry { - uint32_t paddr; /* Physical address of the module. */ - uint32_t size; /* Size of the module in bytes. */ - }; +The format of the boot start info structure (pointed to by %ebx) can be found +in xen/include/public/arch-x86/hvm/start_info.h Other relevant information needed in order to boot a guest kernel (console page address, xenstore event channel...) can be obtained