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

Re: [Minios-devel] [UNIKRAFT PATCH 3/9] plat/kvm: change entry point for x86


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: "Haibo Xu (Arm Technology China)" <Haibo.Xu@xxxxxxx>
  • Date: Mon, 14 Oct 2019 07:59:14 +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=XYmYI1TGRr0ESWSzGfomXkNZgdw1TZD9yEGp5OwG7cw=; b=PVij1LVZBtYtloFttUHcfNUJjmVNVKXQSaC1uA56b7/loBzX6cyp+h/II1Kw+57gwNhY+FcrjBkC6kgNZEon0sdZguGK7WT9sMIcd/jQB2Sf+PTSayQ0iiYNH5JPGC+W6YdWGvh9mI6DZZPGRG8j27prBT4uI3qeBq5r+BvxpGD58AdvB8KFy88s0dm01uCCS1/dVq+9FwNnaSNSogayF4VDeOZDJRhv6oBFH3/SloYcwCXwpQaWy7M981imKrAKu3pHaLcWq0XkN14VihVexMrJic9XtEUYHNCpnOpP65y7pOhfAt90iO7ChYuNh5TjGbcTO6pg80/yMuw677+R/Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HD1mzaifs9UuKqYob65+VRRj+CyllyuSrhURwvODmh4/8dEigJQWmdcF2vYUKvr8wPGbIYCvh1h4OgKDh7dLR28I/MeyGwXXt1HPemSftntqK4/0ap/J1oGsV1SApXwcBhbUi38rXR0B21kNL9F445tPs2aGd8hNZCKcvPZSgQBhx1hCP00un32foHoPTZECt3DX5u6Sf/Ul32IAA/7oDhTEAJs2AThmtd1V0ZCPQzQF7eO7U6N7nxiI0+V6qEabnTAhAZnOjhdTyA2L8JQ6mFqICeixYBGFyh1Z4dyU4XEXbZcqv9Cspk3BFgt5Qc5HRCiZt7GXBrf57wqN/VUp5w==
  • 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 07:59:28 +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: AQHVgmVF7zlmdkdm3UybkxTk6IMNvw==
  • Thread-topic: [Minios-devel] [UNIKRAFT PATCH 3/9] plat/kvm: change entry point for x86

This patch looks good.

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

On 2019/6/3 22:56, Florian Schmidt wrote:
> The linker script set the entry point for the linked ELF to the C entry
> point. So far, this didn't matter, because QEMU boots the image via
> multiboot, ignoring the entry point information and instead searching
> for the multiboot header in the first 8k of the image. Firecracker,
> however, does not use multiboot and identifies the entry from the ELF
> header. So set the entry point to the beginning of the long-mode early
> boot sequence.
>
> Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
> ---
>  plat/kvm/Linker.uk        | 3 ++-
>  plat/kvm/x86/link64.lds.S | 2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/plat/kvm/Linker.uk b/plat/kvm/Linker.uk
> index d68f908e..9be40612 100644
> --- a/plat/kvm/Linker.uk
> +++ b/plat/kvm/Linker.uk
> @@ -28,7 +28,8 @@ $(KVM_IMAGE): $(KVM_ALIBS) $(KVM_ALIBS-y) $(KVM_OLIBS) 
> $(KVM_OLIBS-y) \
>                       -Wl$(comma)--end-group \
>                       -o $@.ld.o)
>       $(call build_cmd,OBJCOPY,,$@.o,\
> -            $(OBJCOPY) -w -G kvmos_* -G _libkvmplat_entry $@.ld.o $@.o)
> +            $(OBJCOPY) -w -G kvmos_* -G _libkvmplat_entry \
> +                     -G _libkvmplat_start64 $@.ld.o $@.o)
>  ifneq ($(filter x86_64 arm64,$(CONFIG_UK_ARCH)),)
>       $(call build_cmd,LD,,$@.dbg,\
>              $(LD) $(LDFLAGS) $(LDFLAGS-y) \
> diff --git a/plat/kvm/x86/link64.lds.S b/plat/kvm/x86/link64.lds.S
> index 362ba3e6..181ce6ae 100644
> --- a/plat/kvm/x86/link64.lds.S
> +++ b/plat/kvm/x86/link64.lds.S
> @@ -26,7 +26,7 @@
>  #include <uk/arch/limits.h> /* for __PAGE_SIZE */
>  #include <common.lds.h>
>
> -ENTRY(_libkvmplat_entry)
> +ENTRY(_libkvmplat_start64)
>  SECTIONS
>  {
>       . = 0x100000;
>
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®.