Updated Branches: refs/heads/master 162de5b17 -> b5f367e75
CLOUDSTACK-1643: Check and enable Intel AES NI if available for VR This is an encryption optimization for VPN/SSL, with upto 10x advertised speed. The patch check for the aesni_intel module if aes is available on the cpu, this will be true for HVMs. Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b5f367e7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b5f367e7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b5f367e7 Branch: refs/heads/master Commit: b5f367e75a50c70a18dcc246b80a08e3167c37b6 Parents: 162de5b Author: Rohit Yadav <[email protected]> Authored: Tue Mar 12 16:34:50 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Tue Mar 12 16:34:50 2013 +0530 ---------------------------------------------------------------------- .../debian/config/etc/init.d/cloud-early-config | 17 +++++++++++--- 1 files changed, 13 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b5f367e7/patches/systemvm/debian/config/etc/init.d/cloud-early-config ---------------------------------------------------------------------- diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 877ab06..408264b 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -593,9 +593,20 @@ setup_redundant_router() { fi } +setup_aesni() { + if [ `grep aes /proc/cpuinfo | wc -l` -gt 0 ] + then + modprobe aesni_intel + if [ `lsmod | grep aesni_intel | wc -l` -gt 0 ] + then + echo aesni_intel >> /etc/modules + fi + fi +} + setup_router() { log_it "Setting up virtual router system vm" - + oldmd5= [ -f "/etc/udev/rules.d/70-persistent-net.rules" ] && oldmd5=$(md5sum "/etc/udev/rules.d/70-persistent-net.rules" | awk '{print $1}') @@ -643,10 +654,8 @@ setup_router() { fi fi - - + setup_aesni setup_dnsmasq - setup_apache2 $ETH0_IP sed -i /gateway/d /etc/hosts
