Skip to contentSkip to conversation

Linux'es SLUB incompatible with Xen?

DISCUSSION Jan Beulich 4 participants 6 messages Sep 25, 2014 – Sep 26, 2014

lore
Share & tools
lore
#0 lore raw

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

Jan

#1 lore raw
Quoted 8 lines · Jan Beulich

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

Out of curiosity what is it about Xen that triggers this, as opposed to failing on native?

Ian.

#2 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 25.09.14 at 12:08, <[email protected]> wrote:
Quoted 8 lines · Jan Beulich

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

Quoted 2 lines

Out of curiosity what is it about Xen that triggers this, as opposed to failing on native?

Not sure I understand the question: The emulation code that's being used here is fine for native as CLI does what is expected. But for a PV Xen guest CLI gets emulated as a privileged NOP, i.e. the needed pseudo-atomicity isn't guaranteed.

Jan

#3 lore raw
Quoted 11 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 25.09.14 at 12:08, <[email protected]> wrote:
Quoted 8 lines · Jan Beulich

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

Quoted 7 lines
Quoted 2 lines

Out of curiosity what is it about Xen that triggers this, as opposed to failing on native?

Not sure I understand the question: The emulation code that's being used here is fine for native as CLI does what is expected. But for a PV Xen guest CLI gets emulated as a privileged NOP, i.e. the needed pseudo-atomicity isn't guaranteed.

Sorry, I somehow missed the parenthetical bit in middle of the paragraph!

Ian.

#4 lore raw
In reply to Jan Beulich
Quoted 8 lines · Jan Beulich

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

I wasn't aware but I don't care about such old hardware so I'm not going to fix it.

If you think this should be fixed, please work with the x86 maintainers to get this fixed.

David

#5 lore raw
Quoted 10 lines · David Vrabel
Quoted 8 lines · Jan Beulich

Linux-Xen maintainers,

are you aware that SLUB's use of percpu_cmpxchg16b_double() is currently incompatible with Xen when run on old, not cmpxchg16b capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's non-paravirtualized use of CLI)? Or is that a simple "we don't care - don't run Xen on such old systems" (despite everything else, including the hypervisor, working fine there)?

Quoted 5 lines

I wasn't aware but I don't care about such old hardware so I'm not going to fix it.

If you think this should be fixed, please work with the x86 maintainers to get this fixed.

HAHAHA

You are such a comedian :-)

Quoted 2 lines

David