Skip to contentSkip to conversation

dom0_ops/domctl iomem_permission hypercall

DISCUSSION Kieran Mansley 2 participants 2 messages Sep 20, 2006

lore
Share & tools
lore
#0 lore raw

The changes introduced by the following patch:

# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 86d26e6ec89b3aba5512d981838caea043b157ab
# Parent 9091331dfb353212781622f3c9020492cb049178 Replace dom0_ops hypercall with three new hypercalls:
1. platform_op -- used by dom0 kernel to perform actions on the hardware platform (e.g., MTRR access, microcode update, platform quirks, ...)
2. domctl -- used by management tools to control a specified domain
3. sysctl -- used by management tools for system-wide actions

are causing me a couple of problems. I'd appreciate some advice on how to work with this new domctl interface.

The problem is that one of the dom0_ops (iomem_permission) that we were previously using (to grant a domU access to an iomem page from dom0) is now not accessible in the kernel to our drivers.

A couple of posts on xen-devel following the check in suggest compiling with __XEN_TOOLS__ for the few files that need to use domctl, but that doesn't help a great deal as xen/domctl.h isn't even in the kernel header files.

Is there some other method for granting access to an iomem page that I should be using, or is this just not supported anymore?

Thanks

Kieran

#1 lore raw
Quoted 4 lines · Kieran Mansley

A couple of posts on xen-devel following the check in suggest compiling with __XEN_TOOLS__ for the few files that need to use domctl, but that doesn't help a great deal as xen/domctl.h isn't even in the kernel header files.

You can copy the header file across and define __XEN_TOOLS__. We only expect these interfaces to be used from user-space tool stacks, but you can work around this assumption if you must.

-- Keir