FreeBSD Bugzilla – Attachment 139752 Details for
Bug 186061
[kvm] FreeBSD 10 crashes as KVM guest on GNU/Linux on AMD family 10h CPUs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
vm-erratum383.patch
vm-erratum383.patch (text/x-diff), 1.50 KB, created by
Simon Matter
on 2014-02-12 07:30:51 UTC
(
hide
)
Description:
vm-erratum383.patch
Filename:
MIME Type:
Creator:
Simon Matter
Created:
2014-02-12 07:30:51 UTC
Size:
1.50 KB
patch
obsolete
>--- /usr/src/sys/i386/i386/pmap.c.orig 2014-01-16 21:33:36.000000000 +0100 >+++ /usr/src/sys/i386/i386/pmap.c 2014-02-05 22:25:28.395821316 +0100 >@@ -752,12 +752,12 @@ > pv_entry_high_water = 9 * (pv_entry_max / 10); > > /* >- * If the kernel is running in a virtual machine on an AMD Family 10h >- * processor, then it must assume that MCA is enabled by the virtual >- * machine monitor. >+ * If the kernel is running in a virtual machine on any processor >+ * family, then it must assume that MCA is enabled by the virtual >+ * machine monitor and the vm may migrate to an AMD Family 10h >+ * processor. > */ >- if (vm_guest == VM_GUEST_VM && cpu_vendor_id == CPU_VENDOR_AMD && >- CPUID_TO_FAMILY(cpu_id) == 0x10) >+ if (vm_guest != VM_GUEST_NO) > workaround_erratum383 = 1; > > /* >--- /usr/src/sys/amd64/amd64/pmap.c.orig 2014-01-16 21:33:04.000000000 +0100 >+++ /usr/src/sys/amd64/amd64/pmap.c 2014-02-05 22:28:25.814349113 +0100 >@@ -1005,12 +1005,12 @@ > } > > /* >- * If the kernel is running in a virtual machine on an AMD Family 10h >- * processor, then it must assume that MCA is enabled by the virtual >- * machine monitor. >+ * If the kernel is running in a virtual machine on any processor >+ * family, then it must assume that MCA is enabled by the virtual >+ * machine monitor and the vm may migrate to an AMD Family 10h >+ * processor. > */ >- if (vm_guest == VM_GUEST_VM && cpu_vendor_id == CPU_VENDOR_AMD && >- CPUID_TO_FAMILY(cpu_id) == 0x10) >+ if (vm_guest != VM_GUEST_NO) > workaround_erratum383 = 1; > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186061
:
139751
| 139752 |
139753