[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH 7/9] plat/kvm: update page table for Firecracker


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: "Haibo Xu (Arm Technology China)" <Haibo.Xu@xxxxxxx>
  • Date: Mon, 14 Oct 2019 08:05:31 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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-SenderADCheck; bh=lyuBJn8DC2cESgKiVVUbriXjhoZ/iOPW659DCtJU+BI=; b=XiSbeBMVd1mu8xMNDlLuhiTK5pKBZXqaZE4ndc9PxfBxMQgo1WN28BLBY/bGD6RGUGTUx6ywOPfoYo0h60N+X/fssAMeUgkYkfcV7/T+4jbdu8aEhltmRrTyNzC+hrBNF7VISxoPBNbJnW3VhlRqgyocbcZN5DR+KHsh6ho/5A626j2ccZm4VblTt3UwS0fcXBo4425frc6egXrmdVfdjwr+FuPzQcjQE709MqKWCOIUWrQ7KqFjBUcj4cntLaxGBPPtaKpLS5JP7VBLnncYxNPsLegIUYezlp+Rty2DzghgvTpE7B62yzazVA7RVH0bJ7ozpHAqfYgfgGG5iPLWdA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nss/jBDLr9JgThUpGDVG18uBhH41v4fIABQzpw/B3P5FFP4s+WFAxNh5lxUOIUBYCwMfTSsRG5rdjHJJNfPoPEDRHdtRm0I/wtEf5hqClpR7yAuVznUV5ThT77loXR7XXnOgVuSR9mNaNw3D/uEZgWFSscgKy1E1X+V2o2EMprEx5eELCo2VzuBMitnzYeFLgfOC8YsP7/IaZ/hJ9fI+fUvP4eIOytM4xw9xjLD7oYkDE6OlODBWQnaNNs1g4zYB3v4KwtFDZ9n2565ArPijYgVPivQHKj6epCGVMWSYJgxqZq59hwnkWw6HXvS3i0hgUuWHm/PvNgYv7ZpstHpbJA==
  • Authentication-results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.xen.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.xen.org; dmarc=none action=none header.from=arm.com;
  • Authentication-results-original: spf=none (sender IP is ) smtp.mailfrom=Haibo.Xu@xxxxxxx;
  • Cc: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • Delivery-date: Mon, 14 Oct 2019 08:05:46 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Haibo.Xu@xxxxxxx;
  • Thread-index: AQHVgmYm/8aj87Ybrkm1JI1d/ZOnyg==
  • Thread-topic: [Minios-devel] [UNIKRAFT PATCH 7/9] plat/kvm: update page table for Firecracker

This patch looks good.

Reviewed-by: Haibo Xu <haibo.xu@xxxxxxx>

On 2019/6/3 22:56, Florian Schmidt wrote:
> Firecracker needs other low memory addresses to access information
> passed in by the hypervisor.
>
> Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
> ---
>  plat/kvm/x86/pagetable.S | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/plat/kvm/x86/pagetable.S b/plat/kvm/x86/pagetable.S
> index d200a13a..4693690d 100644
> --- a/plat/kvm/x86/pagetable.S
> +++ b/plat/kvm/x86/pagetable.S
> @@ -38,12 +38,24 @@
>  .align 0x1000
>  cpu_zeropt:
>       /* the first 1M is inaccessible, except for:
> -        0x09000 - 0x09fff -> multiboot info @ 0x09500 (read-only)
> +        0x07000 - 0x07fff -> bootparams info (RO, Firecracker)
> +        0x09000 - 0x09fff -> multiboot info @ 0x09500 (RO, QEMU)
> +        0x20000 - 0x20fff -> bootparams cmdline (RO, Firecracker)
>          0xb8000 - 0xbffff -> VGA buffer (read+write)
>        */
> +#if KVMQPLAT
>       .fill 0x9, 0x8, 0x0
>       .quad 0x0000000000009000 + PAGETABLE_RO
>       .fill 0xae, 0x8, 0x0
> +#elif KVMFCPLAT
> +     .fill 0x7, 0x8, 0x0
> +     .quad 0x0000000000007000 + PAGETABLE_RO
> +     .fill 0x18, 0x8, 0x0
> +     .quad 0x0000000000020000 + PAGETABLE_RO
> +     .fill 0x97, 0x8, 0x0
> +#else
> +     .fill 0xb8, 0x8, 0x0
> +#endif /* first area until 0xb7fff */
>       .quad 0x00000000000b8000 + PAGETABLE_RW
>       .quad 0x00000000000b9000 + PAGETABLE_RW
>       .quad 0x00000000000ba000 + PAGETABLE_RW
>
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.