Page MenuHomeFreeBSD

xen/console: add support for HVM and ARM console
AbandonedPublic

Authored by ehem_freebsd_m5p.com on Apr 6 2021, 1:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 7:38 AM
Unknown Object (File)
Oct 3 2024, 12:27 AM
Unknown Object (File)
Oct 1 2024, 10:24 AM
Unknown Object (File)
Sep 27 2024, 4:55 PM
Unknown Object (File)
Sep 27 2024, 9:46 AM
Unknown Object (File)
Sep 23 2024, 8:44 AM
Unknown Object (File)
Sep 20 2024, 3:44 AM
Unknown Object (File)
Sep 9 2024, 1:16 AM

Details

Reviewers
royger
mhorne
Summary

This should be improving the console on ARM devices. I'm unsure of the
magnitude of improvement, but it does get a very early console
functioning on ARM devices.

Submitted by: Elliott Mitchell <ehem+freebsd@m5p.com>
Original implementation: Julien Grall <julien@xen.org>, 2015-09-19 10:15:40

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38346
Build 35235: arc lint + arc unit

Event Timeline

I think the comment about pmap not being initialized for HVM needs some clarification.

sys/dev/xen/console/xen_console.c
279

I'm lost here, both HVM and PVH use exactly the same pmap init code, so I'm not sure why pmap_mapdev_attr would work in one case and not the other?

Is maybe something else that's missing, and not pmap initialization?

This one needs @julien_xen.org to comment. So far none of my successful builds lacked this, but a build without it might work.

As such I believe the dependency markings reflect the current situation. I don't know D30950 actually depends on D29597, even though I suspect D30950 depends on D29597.

This one needs @julien_xen.org to comment. So far none of my successful builds lacked this, but a build without it might work.

As such I believe the dependency markings reflect the current situation. I don't know D30950 actually depends on D29597, even though I suspect D30950 depends on D29597.

I can't remember why I wrote this patch. If Arm guests are treated as HVM guests, then the behavior doesn't look to change for the initialization.

Can you drop the patch and try to boot?

sys/dev/xen/console/xen_console.c
300

AFAICT, after with the change in xencons_early_init_ring() , cons->evtchn and cons->intf will not be set for PV but HVM domain.

sys/dev/xen/console/xen_console.c
281

I am not sure to understand how the code match the comment. The function will skip the initialisation for non-HVM domain... IOW after this patch, the function will still initialise the ring for HVM domain.

Can you drop the patch and try to boot?

I don't know whether my build/test setup is worse than others', but I really dislike that test approach as my builds take a while. This though is the test and quite effective. Appears this is no longer necessary, so dropping this. (latest build looked okay in regards to this, even though -CURRENT has some troubles right now)