{"id":211909,"date":"2014-02-09T18:07:03","date_gmt":"2014-02-09T14:07:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=211909"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=211909","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u043e\u0431\u0440\u043e\u0441 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u044b \u0432 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u041e\u0421 \u0438\u0437 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430 KVM \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 VFIO<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438\u0437 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430 <b>KVM<\/b> \u0432 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u041e\u0421 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 <b>VFIO<\/b>, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 linux kernel 3.9.*.<br \/>  \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e (\u043f\u0440\u0438\u043c. \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c). \u0412\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a.<\/p>\n<p>  \u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u041e\u0421 Ubuntu 13.10:<\/p>\n<ul>\n<li>kernel: 3.11.0-15-generic<\/li>\n<li>qemu: 1.5.0<\/li>\n<li>seabios: 1.7.3<\/li>\n<\/ul>\n<p>  \u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0435\u043d\u0434\u0430:<\/p>\n<ul>\n<li>\u043c\u0430\u0442. \u043f\u043b\u0430\u0442\u0430: AMD990FX<\/li>\n<li>\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440: AMD FX-8120<\/li>\n<li>\u043e\u043f\u0435\u0440. \u043f\u0430\u043c\u044f\u0442\u044c: DDR3 PC3-14900<\/li>\n<li>\u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430: ATI RADEON HD 7750<\/li>\n<li>\u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 (\u0433\u043e\u0441\u0442\u044c): NVIDIA GTX560-TI<\/li>\n<\/ul>\n<p>  <i>\u0412\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 \u0434\u043b\u044f \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0445\u043e\u0441\u0442\u0430, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043b\u044e\u0431\u0430\u044f (NVIDIA, ATI RADEON).<\/i><br \/>  <i>\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u0431\u043b\u043e\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 (IOMMU) \u2014 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f AMD-Vi \u0438\u043b\u0438 VT-d.<\/i><br \/>  <i>\u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 Intel, \u0442\u043e \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c VT-d.<\/i><br \/>  <i>\u041d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 \u0431\u0438\u043e\u0441\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b IVRS\/DMAR \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/i><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>  <b>\u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0438\u043e\u0441 \u043c\u0430\u0442. \u043f\u043b\u0430\u0442\u044b \u0441 \u0441\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430.<\/b><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430.  <\/p>\n<pre><code class=\"bash\">$ dmesg | grep AMD-Vi [    1.279788] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40 [    1.279790] AMD-Vi: Interrupt remapping enabled [    1.292879] AMD-Vi: Lazy IO\/TLB flushing enabled <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0438 \u0432 \u044f\u0434\u0440\u0435.  <\/p>\n<pre><code class=\"bash\">$ cat \/etc\/modules # \/etc\/modules: kernel modules to load at boot time. lp rtc pci_stub vfio vfio_iommu_type1 vfio_pci #vfio_pci_vga  (For now, this component is in the stock Ubuntu kernel.) kvm kvm_amd <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ sudo update-initramfs -u <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 (\u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043f\u043e\u0440\u0442\u044b usb \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430).  <\/p>\n<pre><code class=\"bash\">$ lspci -nn | grep NVIDIA 03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] [10de:1200] (rev a1) 03:00.1 Audio device [0403]: NVIDIA Corporation GF114 HDMI Audio Controller [10de:0e0c] (rev a1) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ cat \/etc\/default\/grub | grep GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash pci-stub.ids=10de:1200,10de:0e0c,1002:4397,1002:4396&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ sudo update-grub <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f:  <\/p>\n<pre><code class=\"bash\">$ dmesg | grep pci-stub [    3.163062] pci-stub: add 10DE:1200 sub=FFFFFFFF:FFFFFFFF cls=00000000\/00000000 [    3.163088] pci-stub 0000:03:00.0: claimed by stub [    3.163100] pci-stub: add 10DE:0E0C sub=FFFFFFFF:FFFFFFFF cls=00000000\/00000000 [    3.163116] pci-stub 0000:03:00.1: claimed by stub [    3.163124] pci-stub: add 1002:4397 sub=FFFFFFFF:FFFFFFFF cls=00000000\/00000000 [    3.163136] pci-stub: add 1002:4396 sub=FFFFFFFF:FFFFFFFF cls=00000000\/00000000 <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a VFIO-PCI.  <\/p>\n<pre><code class=\"bash\">$ cat \/usr\/bin\/vfio-bind #!\/bin\/bash  modprobe vfio-pci  for dev in &quot;$@&quot;; do         vendor=$(cat \/sys\/bus\/pci\/devices\/$dev\/vendor)         device=$(cat \/sys\/bus\/pci\/devices\/$dev\/device)         if [ -e \/sys\/bus\/pci\/devices\/$dev\/driver ]; then                 echo $dev &gt; \/sys\/bus\/pci\/devices\/$dev\/driver\/unbind         fi         echo $vendor $device &gt; \/sys\/bus\/pci\/drivers\/vfio-pci\/new_id done <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ sudo chmod 755 \/usr\/bin\/vfio-bind <\/code><\/pre>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a (\u043a\u043b\u044e\u0447\u0438 \u0431\u0435\u0440\u0435\u043c \u0438\u0437 \u0432\u044b\u0437\u043e\u0432\u0430 lspci \u2014 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0448\u0435).  <\/p>\n<pre><code class=\"bash\">$ cat \/etc\/rc.local #!\/bin\/sh -e  \/usr\/bin\/vfio-bind 0000:03:00.0 0000:03:00.1 0000:00:12.0 0000:00:12.2 exit 0 <\/code><\/pre>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><b>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b!<\/b><\/p>\n<pre><code class=\"bash\">$ cat pass.sh #!\/bin\/sh  #configs modules=&quot;pci_stub;vfio;vfio_iommu_type1;vfio_pci;kvm;kvm_amd&quot; grub=&quot;quiet splash pci_stub.ids=10de:1200,10de:0e0c,1002:4397,1002:4396&quot; autorun=&quot;\/usr\/bin\/vfio-bind 0000:03:00.0 0000:03:00.1 0000:00:12.0 0000:00:12.2&quot;  #functions split() { \t#$1 - file, $2 - param \tarr=$(echo $2 | tr &quot;;&quot; &quot;\\n&quot;)  \tfor x in $arr \tdo \t    echo $x &gt;&gt; $1 \tdone }  replaceParam() { \t#$1 - file, $2 - param, $3 - value \tcur_val=`cat $1 | grep $2` \tsed &quot;s\/$cur_val\/$2=\\&quot;$3\\&quot;\/g&quot; -i $1 }  autorunAdd() { \t#$1 - param \tstr='$i \\'&quot;$1&quot;'\\n' \tsed -i -e &quot;$str&quot; \/etc\/rc.local }  pause() { \tread -p &quot;$1&quot; -n1 -s \techo }  #info virtualization dmesg | grep AMD-Vi pause 'Press any key to continue or CTRL-C to exit...'  #modules load split '\/etc\/modules' &quot;$modules&quot; update-initramfs -u  #grub config replaceParam '\/etc\/default\/grub' 'GRUB_CMDLINE_LINUX_DEFAULT' &quot;$grub&quot; update-grub  autorunAdd &quot;$autorun&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ cat vfio-bind #!\/bin\/bash  modprobe vfio-pci  for dev in &quot;$@&quot;; do         vendor=$(cat \/sys\/bus\/pci\/devices\/$dev\/vendor)         device=$(cat \/sys\/bus\/pci\/devices\/$dev\/device)         if [ -e \/sys\/bus\/pci\/devices\/$dev\/driver ]; then                 echo $dev &gt; \/sys\/bus\/pci\/devices\/$dev\/driver\/unbind         fi         echo $vendor $device &gt; \/sys\/bus\/pci\/drivers\/vfio-pci\/new_id done <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ sudo cp vfio-bind \/usr\/bin\/ $ sudo chmod 755 \/usr\/bin\/vfio-bind $ sudo chmod 755 pass.sh $ sudo bash pass.sh <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a<\/h3>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f WINDOWS 7 \u0441 \u043f\u0430\u0440\u0430\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 VIRTIO. \u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<pre><code class=\"bash\">$ cat win7_vfio_test.sh #! \/bin\/sh IS_TAP0_EXISTS=`ifconfig | grep -c tap0` if [ $IS_TAP0_EXISTS = 0 ] ; then     sudo tunctl -t tap0 && sudo ifconfig tap0 0.0.0.0 promisc up && sudo brctl addif br0 tap0 && echo 'Success: tap0 interface created.' || echo 'Error: tap0 interface is not created.' else     echo 'Success: tap0 interface already exists.' fi  #init kvm-qemu sudo qemu-system-x86_64 \\ -boot menu=on \\ -enable-kvm \\ -M q35 \\ -m 1024 \\ -cpu host \\ -rtc base=localtime \\ -cpu Opteron_G4,+perfctr_nb,+perfctr_core,+topoext,+nodeid_msr,+lwp,+wdt,+skinit,+ibs,+osvw,+cr8legacy,+extapic,+cmp_legacy,+fxsr_opt,+mmxext,+osxsave,+monitor,+ht,+vme \\ -smp 1,sockets=1,cores=1,threads=1 \\ -bios \/usr\/share\/qemu\/bios.bin \\ -acpitable file=\/usr\/share\/seabios\/q35-acpi-dsdt.aml \\ -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root \\ -device ahci,bus=pcie.0,id=ahci \\ -device virtio-balloon-pci,id=balloon0,bus=pcie.0,addr=0x6 \\ -drive file='\/dev\/sdc6',if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,scsi=off,bus=pcie.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2 \\ -drive file='windows7.iso',if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 \\ -drive file='virtio-win-0.1-74.iso',if=none,id=drive-ide0-2-0,readonly=on,format=raw -device ide-cd,bus=ide.2,unit=0,drive=drive-ide0-2-0,id=ide0-2-0 \\ -netdev tap,ifname=tap0,id=hostnet0,script=no,downscript=no -device virtio-net-pci,netdev=hostnet0,mac=52:54:00:26:7F:96,id=net0 \\ -device vfio-pci,host=00:12.0,bus=pcie.0 \\ -device vfio-pci,host=00:12.2,bus=pcie.0 \\ -device vfio-pci,host=03:00.0,bus=root,addr=00.0,multifunction=on,x-vga=on \\ -device vfio-pci,host=03:00.1,bus=root,addr=00.1 \\ -vga none \\ -nographic  #-vnc 127.0.0.1:0 <\/code><\/pre>\n<p>  \u0412 \u0412\u041c \u043f\u0440\u043e\u0431\u0440\u043e\u0448\u0435\u043d \u0440\u0430\u0437\u0434\u0435\u043b \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 -drive file=<b>\/dev\/sdc6<\/b>.<br \/>  \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0430\u0441\u044c \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 (\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c -vnc 127.0.0.1:0 \u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u043e\u043b\u044c).<br \/>  \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b -vga none -nographic \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u044b (-device vfio-pci).<\/p>\n<p>  <habracut\/> \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/211909\/\"> http:\/\/habrahabr.ru\/post\/211909\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438\u0437 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430 <b>KVM<\/b> \u0432 \u0433\u043e\u0441\u0442\u0435\u0432\u0443\u044e \u041e\u0421 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 <b>VFIO<\/b>, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 linux kernel 3.9.*.<br \/>  \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e (\u043f\u0440\u0438\u043c. \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c). \u0412\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a.<\/p>\n<p>  \u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u041e\u0421 Ubuntu 13.10:<\/p>\n<ul>\n<li>kernel: 3.11.0-15-generic<\/li>\n<li>qemu: 1.5.0<\/li>\n<li>seabios: 1.7.3<\/li>\n<\/ul>\n<p>  \u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0435\u043d\u0434\u0430:<\/p>\n<ul>\n<li>\u043c\u0430\u0442. \u043f\u043b\u0430\u0442\u0430: AMD990FX<\/li>\n<li>\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440: AMD FX-8120<\/li>\n<li>\u043e\u043f\u0435\u0440. \u043f\u0430\u043c\u044f\u0442\u044c: DDR3 PC3-14900<\/li>\n<li>\u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430: ATI RADEON HD 7750<\/li>\n<li>\u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 (\u0433\u043e\u0441\u0442\u044c): NVIDIA GTX560-TI<\/li>\n<\/ul>\n<p>  <i>\u0412\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430 \u0434\u043b\u044f \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0445\u043e\u0441\u0442\u0430, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043b\u044e\u0431\u0430\u044f (NVIDIA, ATI RADEON).<\/i><br \/>  <i>\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u0431\u043b\u043e\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 (IOMMU) \u2014 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f AMD-Vi \u0438\u043b\u0438 VT-d.<\/i><br \/>  <i>\u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 Intel, \u0442\u043e \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c VT-d.<\/i><br \/>  <i>\u041d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 \u0431\u0438\u043e\u0441\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b IVRS\/DMAR \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/i>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-211909","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=211909"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211909\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=211909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=211909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=211909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}