xen: lay down detection basic infrastructure

Operating Systems / OSv - Glauber Costa [cloudius-systems.com] - 25 June 2013 07:05 UTC

Xen's information can be in a variety of MSRs. We need to test for them all and figure out in which of them lays the informations we want.

Once we determine that, xen initalization code is ready to be executed. This needs to run as early as possible, because all xen drivers will make use of it one way or another.

The hypercall code is heavily inspired (aka mostly copied) from Avi's xen tentative patch, with the 5-argument hypercall removed (delayed until we need it)

0c8f8f8 xen: lay down detection basic infrastructure
arch/x64/cpuid.cc | 15 +++++++
arch/x64/cpuid.hh | 1 +
arch/x64/entry-xen.S | 6 +++
arch/x64/xen.cc | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++
arch/x64/xen.hh | 37 +++++++++++++++++
build.mk | 2 +
6 files changed, 171 insertions(+)

Upstream: github.com


  • Share