xen pci-passthrogh

  1. xm mem-set Domain-0 4096  
  2. modprobe pciback  
  3. #find /sys/bus/pci/drivers -name "0000:03:00.0"  
  4. echo -n "0000:03:00.0" > /sys/bus/pci/drivers/igb/unbind   
  5. echo -n "0000:03:00.0" > /sys/bus/pci/drivers/pciback/new_slot  
  6. echo -n "0000:03:00.0" > /sys/bus/pci/drivers/pciback/bind  
  7. echo -n "0000:03:00.1" > /sys/bus/pci/drivers/igb/unbind  
  8. echo -n "0000:03:00.1" > /sys/bus/pci/drivers/pciback/new_slot  
  9. echo -n "0000:03:00.1" > /sys/bus/pci/drivers/pciback/bind