Skip to contentSkip to conversation

XENFEAT_supervisor_mode_kernel ???

DISCUSSION Mukesh Rathor 3 participants 6 messages Nov 20, 2008 – Nov 24, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm trying ot figure out what that's all about? I see in 64 PV domU, it's being checked prior to returning from syscall. On the xen side, I see it tied to supervisor_mode_kernel, but the only info I find is changelog comment which suggests it's purpose is to allow dom0 run in ring 0... So why the check in a domU kernel?

Thanks,
Mukesh

|     |
|     | <= Invisible ribbon campain against overuse of macros :).
|     |
#1 lore raw
Quoted 5 lines · Mukesh Rathor

I'm trying ot figure out what that's all about? I see in 64 PV domU, it's being checked prior to returning from syscall. On the xen side, I see it tied to supervisor_mode_kernel, but the only info I find is changelog comment which suggests it's purpose is to allow dom0 run in ring 0... So why the check in a domU kernel?

It's useful if the hypervisor runs the guest kernel in ring 0. Current Xen doesn't do that, but in future we may run 64-bit PV guests in HVM context as that may actually be faster.

-- Keir

#2 lore raw

Oh, cool. I was looking at syscalls on PV x86_64 guests, and one of my thoughts was running in HVM mode but do all MMU stuff using hypercalls like PV. Other than having to change the hyp domain create portions, setting things up, is there a technical reason it can't be done today... thanks, Mukesh

Quoted 14 lines · Keir Fraser
Quoted 5 lines · Mukesh Rathor

I'm trying ot figure out what that's all about? I see in 64 PV domU, it's being checked prior to returning from syscall. On the xen side, I see it tied to supervisor_mode_kernel, but the only info I find is changelog comment which suggests it's purpose is to allow dom0 run in ring 0... So why the check in a domU kernel?

It's useful if the hypervisor runs the guest kernel in ring 0. Current Xen doesn't do that, but in future we may run 64-bit PV guests in HVM context as that may actually be faster.

-- Keir

#3 lore raw

No, not really. The hypervisor changes could likely not be that large.

-- Keir

Quoted 23 lines · Mukesh Rathor

Oh, cool. I was looking at syscalls on PV x86_64 guests, and one of my thoughts was running in HVM mode but do all MMU stuff using hypercalls like PV. Other than having to change the hyp domain create portions, setting things up, is there a technical reason it can't be done today... thanks, Mukesh

Quoted 17 lines · Keir Fraser
Quoted 8 lines · Mukesh Rathor

I'm trying ot figure out what that's all about? I see in 64 PV domU, it's being checked prior to returning from syscall. On the xen side, I see it tied
to supervisor_mode_kernel, but the only info I find is changelog comment which
suggests it's purpose is to allow dom0 run in ring 0... So why the check in a
domU kernel?

It's useful if the hypervisor runs the guest kernel in ring 0. Current Xen doesn't do that, but in future we may run 64-bit PV guests in HVM context as that may actually be faster.

-- Keir

#4 lore raw
In reply to Mukesh Rathor
Quoted 1 line · Mukesh Rathor

Oh, cool. I was looking at syscalls on PV x86_64 guests, and one of my thoughts was running in HVM mode but do all MMU stuff using hypercalls like PV. Other than having to change the hyp domain create portions, setting things up, is there a technical reason it can't be done today... thanks, Mukesh

It's sort of on my list of things to look at. But I'm still rather tied up in the dom0 work, so if you want to have a stab at it, go ahead!

J

#5 lore raw

Yup, I started looking into it, but significant progress after holidays/vacation late January. Thanks, mukesh

Quoted 6 lines · Jeremy Fitzhardinge
Quoted 1 line · Mukesh Rathor

Oh, cool. I was looking at syscalls on PV x86_64 guests, and one of my thoughts was running in HVM mode but do all MMU stuff using hypercalls like PV. Other than having to change the hyp domain create portions, setting things up, is there a technical reason it can't be done today... thanks, Mukesh

It's sort of on my list of things to look at. But I'm still rather tied up in the dom0 work, so if you want to have a stab at it, go ahead!

J