Skip to contentSkip to conversation

MCE in pv-domU

DISCUSSION Juergen Gross 3 participants 5 messages Jun 7, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Just saw the message:

[    0.005227] mce: CPU supports 2 MCE banks

in the boot log of a pv domU (Linux 4.11). I really have problems to see the value of MCE handling being active in this case. Shouldn't we switch it off?

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:00, <[email protected]> wrote:

Just saw the message:

[    0.005227] mce: CPU supports 2 MCE banks

in the boot log of a pv domU (Linux 4.11). I really have problems to see the value of MCE handling being active in this case. Shouldn't we switch it off?

What's wrong with letting a guest decide on its own what to do if a memory page assigned to it went bad? From host perspective the only "recovery" would be to kill the guest. The guest kernel, otoh, may be able to confine damage to just the killing of a single process (or if the page is not in use, no damage would result at all).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 9 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:00, <[email protected]> wrote:

Just saw the message:

[    0.005227] mce: CPU supports 2 MCE banks

in the boot log of a pv domU (Linux 4.11). I really have problems to see the value of MCE handling being active in this case. Shouldn't we switch it off?

Quoted 6 lines

What's wrong with letting a guest decide on its own what to do if a memory page assigned to it went bad? From host perspective the only "recovery" would be to kill the guest. The guest kernel, otoh, may be able to confine damage to just the killing of a single process (or if the page is not in use, no damage would result at all).

So the MCE related resources are fully virtualized for the guest?

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:23, <[email protected]> wrote:
Quoted 9 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:00, <[email protected]> wrote:

Just saw the message:

[    0.005227] mce: CPU supports 2 MCE banks

in the boot log of a pv domU (Linux 4.11). I really have problems to see the value of MCE handling being active in this case. Shouldn't we switch it off?

Quoted 8 lines
Quoted 6 lines

What's wrong with letting a guest decide on its own what to do if a memory page assigned to it went bad? From host perspective the only "recovery" would be to kill the guest. The guest kernel, otoh, may be able to confine damage to just the killing of a single process (or if the page is not in use, no damage would result at all).

So the MCE related resources are fully virtualized for the guest?

For some to be established definition of "fully", yes (IOW that's the intention, but I'd be surprised if there were no missing pieces at all).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#5 lore raw
Quoted 16 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:23, <[email protected]> wrote:
Quoted 14 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 07.06.17 at 16:00, <[email protected]> wrote:

Just saw the message:

[    0.005227] mce: CPU supports 2 MCE banks

in the boot log of a pv domU (Linux 4.11). I really have problems to see the value of MCE handling being active in this case. Shouldn't we switch it off?

What's wrong with letting a guest decide on its own what to do if a memory page assigned to it went bad? From host perspective the only "recovery" would be to kill the guest. The guest kernel, otoh, may be able to confine damage to just the killing of a single process (or if the page is not in use, no damage would result at all).

Quoted 4 lines
Quoted 1 line

So the MCE related resources are fully virtualized for the guest?

For some to be established definition of "fully", yes (IOW that's the intention, but I'd be surprised if there were no missing pieces at all).

For reasons known to the original authors of the code, CR4.MCE is deliberately visible (but not modifiable) to PV guests.

Beyond that, it is the default leaking of all MSRs into guests (See the default case in priv_op_read_msr()) which is presumably what allows this domU to find 2 banks.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel