Skip to contentSkip to conversation

: handling IO instructions for hybrid

help Mukesh Rathor 2 participants 4 messages Feb 6, 2012 – Feb 9, 2012

lore
Share & tools
lore
#1 lore raw
In reply to Mukesh Rathor
Quoted 9 lines · Mukesh Rathor

Hi all,

I am figuring io access for hybrid guests, dom0 and domU. I see that there are two ways: PV -> emulate_privileged_op(), or hvm handles via handle_mmio()/handle_pio(). I am not familiar with either one, and would help me lot if anybody expert in that can suggest which way hybrid should go, both dom0 and domU. Any suggestions would help. If there are any docs on this, that would be great too.

Probably the PV route, for dom0 and domU. Really most things you want to do, the PV route is going to be the right way (unless you are PVHVM'ing certain things, e.g., like using EPT assistance for pagetable handling).

-- Keir

Quoted 3 lines

thanks,
Mukesh

#0 lore raw

Hi all,

I am figuring io access for hybrid guests, dom0 and domU. I see that there are two ways: PV -> emulate_privileged_op(), or hvm handles via handle_mmio()/handle_pio(). I am not familiar with either one, and would help me lot if anybody expert in that can suggest which way hybrid should go, both dom0 and domU. Any suggestions would help. If there are any docs on this, that would be great too.

thanks,
Mukesh

#2 lore raw
In reply to Keir Fraser
Quoted 10 lines · On Mon, 06 Feb 2012 19:41:23 +0000 Keir Fraser <[email protected]> wrote:
Quoted 8 lines · Mukesh Rathor

I am figuring io access for hybrid guests, dom0 and domU. I see that there are two ways: PV -> emulate_privileged_op(), or hvm handles via handle_mmio()/handle_pio(). I am not familiar with either one, and would help me lot if anybody expert in that can suggest which way hybrid should go, both dom0 and domU. Any suggestions would help. If there are any docs on this, that would be great too.

Quoted 6 lines

Probably the PV route, for dom0 and domU. Really most things you want to do, the PV route is going to be the right way (unless you are PVHVM'ing certain things, e.g., like using EPT assistance for pagetable handling).

-- Keir

Thanks Keir. Just to confirm, the hybrid should continue to request iopl of 1, right?

Mukesh

#3 lore raw
Quoted 18 lines · Mukesh Rathor
Quoted 15 lines · On Mon, 06 Feb 2012 19:41:23 +0000 Keir Fraser <[email protected]> wrote:
Quoted 8 lines · Mukesh Rathor

I am figuring io access for hybrid guests, dom0 and domU. I see that there are two ways: PV -> emulate_privileged_op(), or hvm handles via handle_mmio()/handle_pio(). I am not familiar with either one, and would help me lot if anybody expert in that can suggest which way hybrid should go, both dom0 and domU. Any suggestions would help. If there are any docs on this, that would be great too.

Probably the PV route, for dom0 and domU. Really most things you want to do, the PV route is going to be the right way (unless you are PVHVM'ing certain things, e.g., like using EPT assistance for pagetable handling).

Quoted 4 lines
Quoted 1 line

-- Keir

Thanks Keir. Just to confirm, the hybrid should continue to request iopl of 1, right?

I'm not sure it matters since the hybrid guest runs in ring 0 of non-root context I believe? Since ring 1 is in that case unused, it doesn't matter whether iopl is 0 or 1.

-- Keir