[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/3] xen/ppc: Relocate kernel to physical address 0 on boot
- To: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Wed, 23 Aug 2023 08:47:09 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b/1FW8H7ts+jquUs3dV0eG6ORjyxJ5M/RQm71UlNl58=; b=bFV0NWkFPqhCe7RN4saMqGGzB6BLjTjiU5IPIV3p6vZydDIiBkc9cIY8jfAY1g/GGPFRueDyklNeFVLxu0RSrSoyNm5O6yj7BqfrHjZI6DSxzSnKY1OQ8V8aTQwg52FngrixEmDghhMdQoU8MCc+K0Coc6XDF14DHJclRIvJjTGDMU5bCB2i1dpeldVakmgAqzdNZ7VXZjX1N5X4rCBzmIMuAgSW8VewjgeB8iAoYKUz1r+jgkr8aj1VjMsX5qQLMZBEs+6Gw1yn4PRNrXSEgiwXwEm5TRpBlo4aScreTqxvfwAbNjEzrgwNaF7epjEauoo9LLjEegaCNGj/4rVygg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XZ86ozLRJiCyXNX/0T5vJ0DgWIuxLky3+bmkm2z6IClRbEkky9fRYV4fB6PL87kO07ChJYaD9FZRKTxtdba9dVZMuNfQRZ98K1iAYvuMZ8ej0e8DhEa38zLvOrhAW7sVVPyLMHk5s+FvMSFAvSJpIH/45bxp273iZnLSlKgoASLnMjEKkrOyCNojoG6272Y/74e/BZFUqxQqFRSRbchnioMEvFiwJ/R7bWE43MObEElGREHQXQP4Fs33pmUjwpwuB8q/AqOgwzpHwSR2WzgEoEM5ll4NGVogyyXXmZgsEpcGqbdU5R5sxlWf7xu+CcwGI6eVZ6vk/TNNhofSmbFmNg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Wed, 23 Aug 2023 06:47:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 23.08.2023 01:03, Shawn Anastasio wrote:
> Introduce a small assembly loop in `start` to copy the kernel to
> physical address 0 before continuing. This ensures that the physical
> address lines up with XEN_VIRT_START (0xc000000000000000) and allows us
> to identity map the kernel when the MMU is set up in the next patch.
>
> We are also able to start execution at XEN_VIRT_START after the copy
> since hardware will ignore the top 4 address bits when operating in Real
> Mode (MMU off).
>
> Signed-off-by: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|