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

--- Comment #37 from Dexuan Cui <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"[email protected]"

Reply via email to