Page MenuHomeFreeBSD

Update the Xen headers from Xen 4.2 to Xen 4.6
ClosedPublic

Authored by julien.grall_citrix.com on Oct 4 2015, 8:11 PM.
Tags
None
Referenced Files
F106663975: D3805.diff
Fri, Jan 3, 2:27 PM
Unknown Object (File)
Dec 3 2024, 2:06 PM
Unknown Object (File)
Dec 1 2024, 9:38 AM
Unknown Object (File)
Dec 1 2024, 1:00 AM
Unknown Object (File)
Nov 25 2024, 11:49 AM
Unknown Object (File)
Nov 24 2024, 1:18 PM
Unknown Object (File)
Nov 23 2024, 5:57 AM
Unknown Object (File)
Nov 22 2024, 3:44 PM
Subscribers

Details

Reviewers
royger
Summary

Pull the latest headers for Xen which allow us to add support for ARM and
use new features in FreeBSD.

This is a verbatim copy of the xen/include/public so every headers which don't
exits anymore in the Xen repositories have been dropped.

Note the interface version hasn't been bumped, it will be done in a follow-up.
Although, it requires fix in the code to get it compiled:

  • sys/xen/xen_intr.h: evtchn_port_t is already defined in the headers so drop it.
  • {amd64,i386}/include/intr_machdep.h: NR_EVENT_CHANNELS now depends

on xen/interface/event_channel.h. So include it

  • {amd64,i386}/{amd64,i386}/support.S: It's not neccessary to include

machine/intr_machdep.h. This is also fixing build compilation with
the new headers

  • dev/xen/blkfront/blkfront.c: The typedef for blkif_request_segment

has been dropped. So directly use struct blkif_request_segment

Finally, modify xen/interface/xen-compat.h to throw a preprocessing error if
XEN_INTERFACE_VERSION is not set. This is allow us to catch any file where
xen/xen-os.h is not correctly included.

Test Plan

It has been build tested on amd64. I wasn't been to build i386 due to others
error in the code (maybe because I'm using the wrong runes?).

I also rebase my ARM series on top of it and check that everything is still
working.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningsys/xen/interface/memory.h:523SPELL1Possible Spelling Mistake
Unit
No Test Coverage
Build Status
Buildable 675
Build 675: arc lint + arc unit

Event Timeline

julien.grall_citrix.com retitled this revision from to Update the Xen headers from Xen 4.2 to Xen 4.6.
julien.grall_citrix.com updated this object.
julien.grall_citrix.com edited the test plan for this revision. (Show Details)
julien.grall_citrix.com added a reviewer: royger.
royger edited edge metadata.
This revision is now accepted and ready to land.Oct 6 2015, 11:18 AM