XENFEAT_supervisor_mode_kernel ???
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 :). | |
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
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
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_64guests, 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, MukeshQuoted 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
tosupervisor_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
Quoted 1 line · Mukesh Rathor
Oh, cool. I was looking at syscalls on PV
x86_64guests, 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
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_64guests, 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, MukeshIt'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