Skip to contentSkip to conversation

bad leakage between virtual machines?

DISCUSSION Tom Horsley 3 participants 6 messages Jan 15, 2010 – Jan 20, 2010 KVM

lore
Share & tools
lore
#0 lore raw

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Anyone seen anything like this before? (I've been having similar problems on this host since it was running xen 3.1 before switching to kvm).

#1 lore raw
Quoted 7 lines · Tom Horsley

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Are only AMD boxes affected, or did you also test on Intel?

Quoted 4 lines

Anyone seen anything like this before? (I've been having similar problems on this host since it was running xen 3.1 before switching to kvm).

I still have one debug register oddity on my todo list (that one causes an unhandled VM exit), but I'm not aware of such an issue nor do I remember any patch between 2.6.31.x and now at the moment that may have fixed it. Nevertheless, could you retry with latest kvm kernel or a recent kvm-kmod release?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 10 lines · On Fri, 15 Jan 2010 18:37:57 +0100 Jan Kiszka wrote:
Quoted 7 lines · Tom Horsley

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Are only AMD boxes affected, or did you also test on Intel?

I haven't explicitly tested on Intel, but we did just see a compile on a guest on the Intel host also get the same Breakpoint/Trap error out of the blue, so it looks as if it does happen on intel as well as amd.

I'm going to try on my home system (intel) some more this evening when I get home.

Some of the symptoms sort of lead me to think it might be inheriting random leftover DRn registers at the time a new virtual machine is created since a VM that has problems seems to keep having problems, and other VMs zip along with no problems at all.

Quoted 11 lines
Quoted 5 lines

Anyone seen anything like this before? (I've been having similar problems on this host since it was running xen 3.1 before switching to kvm).

I still have one debug register oddity on my todo list (that one causes an unhandled VM exit), but I'm not aware of such an issue nor do I remember any patch between 2.6.31.x and now at the moment that may have fixed it. Nevertheless, could you retry with latest kvm kernel or a recent kvm-kmod release?

Not sure how to do that - if it isn't in the fedora repos, I'm in uncharted territory trying to run special kernels :-).

Quoted 3 lines

Jan

#3 lore raw
Quoted 11 lines · Tom Horsley
Quoted 8 lines · On Fri, 15 Jan 2010 18:37:57 +0100 Jan Kiszka wrote:
Quoted 7 lines · Tom Horsley

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Quoted 6 lines
Quoted 1 line

Are only AMD boxes affected, or did you also test on Intel?

I haven't explicitly tested on Intel, but we did just see a compile on a guest on the Intel host also get the same Breakpoint/Trap error out of the blue, so it looks as if it does happen on intel as well as amd.

OK, will have a look at your test application once time permits.

Quoted 9 lines

I'm going to try on my home system (intel) some more this evening when I get home.

Some of the symptoms sort of lead me to think it might be inheriting random leftover DRn registers at the time a new virtual machine is created since a VM that has problems seems to keep having problems, and other VMs zip along with no problems at all.

We have a lazy scheme for switching DR content, but we always clear any triggering bit in DR7 before returning to Linux (which includes other VMs).

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Anyone seen anything like this before? (I've been having similar problems on this host since it was running xen 3.1 before switching to kvm).

Quoted 8 lines
Quoted 5 lines

I still have one debug register oddity on my todo list (that one causes an unhandled VM exit), but I'm not aware of such an issue nor do I remember any patch between 2.6.31.x and now at the moment that may have fixed it. Nevertheless, could you retry with latest kvm kernel or a recent kvm-kmod release?

Not sure how to do that - if it isn't in the fedora repos, I'm in uncharted territory trying to run special kernels :-).

kvm-kmod should only be about ./configure && make. You do not even need to install it (if you want to keep your host "clean"), just 'rmmod kvm-amd kvm' and insmod the kvm.ko and kvm-amd.ko that is in kvm-kmod/x86 after the build.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#4 lore raw
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Tom Horsley
Quoted 8 lines · On Fri, 15 Jan 2010 18:37:57 +0100 Jan Kiszka wrote:
Quoted 7 lines · Tom Horsley

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Are only AMD boxes affected, or did you also test on Intel?

I haven't explicitly tested on Intel, but we did just see a compile on a guest on the Intel host also get the same Breakpoint/Trap error out of the blue, so it looks as if it does happen on intel as well as amd.

OK, will have a look at your test application once time permits.

Just did so with bleeding-edge kvm-kmod and qemu-kvm-0.12.1.2 on an Intel host. But nothing exciting happened.

Are you sure that test on an Intel host was really an Intel? In your bug report you write the contrary. Anyway, will have my hands on an AMD box tomorrow and try to reproduce there.

Jan

#5 lore raw
Quoted 21 lines · Jan Kiszka
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Tom Horsley
Quoted 8 lines · On Fri, 15 Jan 2010 18:37:57 +0100 Jan Kiszka wrote:
Quoted 7 lines · Tom Horsley

I just submitted this fedora bug with lots of details:

https://bugzilla.redhat.com/show_bug.cgi?id=555788

It sure seems to me like the contents of the debug address trap registers are leaking across virtual machines (at least for opterons on this motherboard :-).

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Are only AMD boxes affected, or did you also test on Intel?

I haven't explicitly tested on Intel, but we did just see a compile on a guest on the Intel host also get the same Breakpoint/Trap error out of the blue, so it looks as if it does happen on intel as well as amd.

OK, will have a look at your test application once time permits.

Quoted 6 lines

Just did so with bleeding-edge kvm-kmod and qemu-kvm-0.12.1.2 on an Intel host. But nothing exciting happened.

Are you sure that test on an Intel host was really an Intel? In your bug report you write the contrary. Anyway, will have my hands on an AMD box tomorrow and try to reproduce there.

No success reproducing on AMD either. This time I'm using kvm-kmod-2.6.32.3 (so none of today's debug register patches applied) and qemu-kvm-0.12.1.2.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux