summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2016-06-24 23:39:44 +0000
committercperciva <cperciva@FreeBSD.org>2016-06-24 23:39:44 +0000
commit9ff7a7dab9aa885ff11e041f2f04eec97c45f45a (patch)
tree897584ece804122c354675e757701cd0d8998e79 /release
parent34ea438ec398ffe3fa9e5029d1e5a99d19eed24b (diff)
downloadFreeBSD-src-9ff7a7dab9aa885ff11e041f2f04eec97c45f45a.zip
FreeBSD-src-9ff7a7dab9aa885ff11e041f2f04eec97c45f45a.tar.gz
Turn off MSI-X interrupt migration by default in EC2 instances; this works
around a bug in older versions of Xen and unbreaks SR-IOV (aka. "EC2 Enhanced Networking"). Approved by: re (gjb) Thanks to: jhb, Jeremiah Lott
Diffstat (limited to 'release')
-rw-r--r--release/tools/ec2.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index be7891b..5f0e868 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -77,6 +77,12 @@ vm_extra_pre_umount() {
# by default for now.
echo 'hw.xbd.xbd_enable_indirect="0"' >> ${DESTDIR}/boot/loader.conf
+ # Some EC2 instances run on a version of Xen which has a bug relating
+ # to the migration of MSI-X interrupts; this is visible as SR-IOV
+ # networking (aka. "EC2 Enhanced Networking") not being able to pass
+ # packets. Disable MSI-X interrupt migration to work around this bug.
+ echo 'machdep.disable_msix_migration="1"' >> ${DESTDIR}/boot/loader.conf
+
# The first time the AMI boots, the installed "first boot" scripts
# should be allowed to run:
# * ec2_configinit (download and process EC2 user-data)
OpenPOWER on IntegriCloud