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
F82102454: D3805.id9144.diff
Thu, Apr 25, 1:36 PM
F82043113: D3805.diff
Wed, Apr 24, 10:31 PM
Unknown Object (File)
Feb 1 2024, 8:13 PM
Unknown Object (File)
Dec 22 2023, 9:20 PM
Unknown Object (File)
Nov 28 2023, 1:05 PM
Unknown Object (File)
Nov 24 2023, 6:27 AM
Unknown Object (File)
Nov 24 2023, 6:11 AM
Unknown Object (File)
Nov 9 2023, 10:46 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