Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2020 07:32:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 222996] FreeBSD 11.1-12 on Hyper-V with PCI Express Pass Through
Message-ID:  <bug-222996-27103-Ec0uH3pwgE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222996-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-222996-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222996

--- Comment #37 from Dexuan Cui <decui@microsoft.com> ---
(In reply to Wei Hu from comment #36)

It looks the EFI FB's MMIO base/size come from sys/dev/vt/hw/efifb/efifb.c:
static int
vt_efifb_init(struct vt_device *vd)
{
...
        kmdp = preload_search_by_type("elf kernel");
        if (kmdp == NULL)
                kmdp = preload_search_by_type("elf64 kernel");
        efifb = (struct efi_fb *)preload_search_info(kmdp,
            MODINFO_METADATA | MODINFOMD_EFI_FB);
...
        info->fb_size = info->fb_height * info->fb_stride;
        info->fb_pbase = efifb->fb_addr;

If this is the case, I guess hyperv vmbus/pcib can copy the same logic to get
the base/size. :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222996-27103-Ec0uH3pwgE>