From owner-freebsd-xen@freebsd.org Thu Apr 22 02:32:31 2021 Return-Path: Delivered-To: freebsd-xen@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA95C5FBFFB for ; Thu, 22 Apr 2021 02:32:31 +0000 (UTC) (envelope-from sww1235@gmail.com) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FQhKC0tBVz4m9r for ; Thu, 22 Apr 2021 02:32:30 +0000 (UTC) (envelope-from sww1235@gmail.com) Received: by mail-il1-x12f.google.com with SMTP id v13so128226ilj.8 for ; Wed, 21 Apr 2021 19:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=r+acg4xZbbOoYqr+7UDbmRWl/+iPxjLMMP5sqcfQIrs=; b=CtXZneR6oTVwzeBmz2bhrUcpV5nvNkdSL9Bsqzj7fIgRoahXsIiGWLw2XmcnH2r5jH 3i6bsHCV9Vc8xjLWrIpqTrtsIRm7OlgG7jeGkR4nMuPoIKL+Ywxfvix+rmfiSXL9vIez qseEwAebi2k7p19pFgWti0Oe3yCZZDUI+Ry7CKdQIeYvN/zUtAdBVLWeJrZuqZpVVsJ/ NucIF6unM/Bzstq8cowkPvqQE3W/8uLPG7vnxQbh3zdI2j28sFrAPD8pVlqFRh3HqQzc Ca/Pvi8U09WBe4aqLGQ8edTkfHJ158f0c2rJipSXeJfseKzzqaoOLIouB6hZ++8Zouxc 4Z9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r+acg4xZbbOoYqr+7UDbmRWl/+iPxjLMMP5sqcfQIrs=; b=AYI6X0p4uAqCgXq57ymSIIb5Xv2VAe9f7rOGOV/0+nq3Em3CWGkvJUDXZ8DEvkPjrR 6f4WxoPG/EA9GZRIX9iyip1j1c76MdQ/PTx/t/O7AxKzTEF7DkxGdzqYc3q2uoxSPMkv 84wFZG+XzINBBR7hWs1mSpd52VBIPptgxQBcYxc8H/430HsOpz3noufakozQjNjymWQR V4KKM+V46mc+fyIw+U9hS+AKm3TmfNOUdczxxi3EWEaNY3EnpVlymIEVA46s8Rx3guBP iMyRfHZEXugB1IyoqeFmaknAX+YEfrfoG6p+3NAk0vxvxsVkL15Mb7rPpxYByiDYhkSb ekgw== X-Gm-Message-State: AOAM5339PIn0Jha8vRhJAFQ0FnQzEHAdjQr25dvT1Nf702GF9EAP8gW4 n1n0w4SYgIorSt/Cuve06j+uwupEHpWM+kjZTdob3Vm1auU= X-Google-Smtp-Source: ABdhPJxVJFk+KCuhfG25T1OtBAoN8qeCt2ZfvURI2l+dPEy5tfsRZJcCFrYvBaLcOh1Z7J02QH6PhTPr82Wqvli/Ps0= X-Received: by 2002:a05:6e02:1a49:: with SMTP id u9mr898552ilv.306.1619058749753; Wed, 21 Apr 2021 19:32:29 -0700 (PDT) MIME-Version: 1.0 From: Stephen Walker-Weinshenker Date: Wed, 21 Apr 2021 20:32:18 -0600 Message-ID: Subject: Re: HEADS UP: FreeBSD/Xen dom0 UEFI support To: freebsd-xen@freebsd.org X-Rspamd-Queue-Id: 4FQhKC0tBVz4m9r X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CtXZneR6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sww1235@gmail.com designates 2607:f8b0:4864:20::12f as permitted sender) smtp.mailfrom=sww1235@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::12f:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-xen@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::12f:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12f:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-xen] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 02:32:31 -0000 Hello Roger: Thank you for your work on this. I am new to Xen and FreeBSD but am willing to help test this and get it in a release version. I have 3 Intel NUC 8v5PNK that I am planning on using for Xen hosts, but they can only boot in UEFI mode (intel disabled BIOS booting per their official documentation even though it is still an option in the BIOS /shrug). Until this patch came along I could not get any Xen distribution to boot since they all require BIOS mode. I have 2 of the 3 NUCS running 14.0-CURRENT at git commit 55fc118be8f0cd20e2123cfd2728c5f32317a9fa (after your patch was merged) and I have attempted to follow the instructions at https://docs.freebsd.org/en_US.ISO8859-1/books/handbook/virtualization-host-xen.html in order to get the Xen kernel booting. Unfortunately, when I rebooted after making the changes, I get an error saying: >Loading Xen kernel... >Failed to load Xen kernel '/boot/xen' >can't load 'kernel' > >can't load 'kernel' See screenshot at the link https://imgur.com/a/65LltnZ. If I unload the kernel, unset xen_kernel and boot /boot/kernel/kernel I can get back into normal freebsd and login normally. Looking at the output of file, it appears that the xen kernel is a 32-bit executable while kernel/kernel is 64-bit. I have 4.14.1_1 of the xen kernel installed from pkgs. Please let me know if you need any additional information or want me to test something. As you can see, i am invested in this solution and would love to get xen and UEFI and FreeBSD working seamlessly. Thank you again -- Stephen Walker-Weinshenker sww1235@gmail.com