Skip to contentSkip to conversation

Read-only iomem page mapping

DISCUSSION Kieran Mansley 2 participants 2 messages Aug 10, 2006

lore
Share & tools
lore
#0 lore raw

I would like to give a domU some read-only access to an iomem page so that it can access some hardware registers directly in a relatively secure manner. I can get read-write access using the DOM0_IOMEM_PERMISSION hypervisor op, and then ioremap at domU, but neither of these present the option of it being read only.

It should be straightforward, and possibly useful for others as well, to extend these to have that option, but though I'd check that there isn't some other way of achieving this already.

Thanks

Kieran

#1 lore raw
Quoted 9 lines · Kieran Mansley

I would like to give a domU some read-only access to an iomem page so that it can access some hardware registers directly in a relatively secure manner. I can get read-write access using the DOM0_IOMEM_PERMISSION hypervisor op, and then ioremap at domU, but neither of these present the option of it being read only.

It should be straightforward, and possibly useful for others as well, to extend these to have that option, but though I'd check that there isn't some other way of achieving this already.

Adding read-only iomem and ioport rangesets would be nice.

-- Keir