[Bug 222996] FreeBSD 11.1-12 on Hyper-V with PCI Express Pass Through

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 16 07:32:24 UTC 2020


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

--- Comment #37 from Dexuan Cui <decui at 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.


More information about the freebsd-virtualization mailing list