Commit Graph
35 Commits
Author SHA1 Message Date
wanyaoqi 9d12a39598 feat(region,host): custom pci device type 2023-05-17 17:23:34 +08:00
wanyaoqi d394d9bb55 feat(region,host): nvme device passthrough 2023-04-24 17:55:39 +08:00
wanyaoqi 75b498f4e4 fix(host): kvm detect and iommu probe (#16245)
- use lsmod check kvm modules on /dev/kvm exist
- don't check grub params "intel_iommu=on" on kvm_intel not loaded

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-16 22:21:10 +08:00
wanyaoqi 693257697e feat(region,host): support ovs offload. (#15915)
Cloudpods Ovs offload implemention base on SR-IOV support.
IsolatedDevices add field `OvsOffloadInterface`.

Host config add `ovs_offload_nics` to specify which nic enable ovs
offload, and removed flag `disable_sriov_nics` add flag `sriov_nics` to
configure sriov nics.

Tested Hardware: Mellanox ConnectX-5 NICs
2023-02-18 08:48:07 +08:00
Zexi Li d60ea269fc fix(host): filter usb hub devices (#15413) 2022-11-21 17:21:28 +08:00
wanyaoqi 70755a9a1b feat(region,host): sriov nic support (#15342)
Support sriov nic passthrough to kvm guest.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-11-13 18:17:30 +08:00
wanyaoqi 23a172b082 feat(gpus): add hotplug support of gpu devices
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-28 10:49:52 +08:00
Zexi Li 3fcd994743 fix(host): out of range when list GPU devices (#15080) 2022-09-28 07:53:08 +08:00
wanyaoqi 8ac6004b84 fix(host): get gpu qemu params (#14981)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-15 22:48:06 +08:00
wanyaoqi 48ce4b31cd feat(host): describe pci controller and devices in guest desc (#14826)
- describe pci controller and devices in guest desc.
- extend pcie bus and pcie-to-pci bridge and root ports, disks and
nics default attach to pci-bridge for support hotplug.
- generate pci address on guest starts
- live guest desc for running guest, and save source desc

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2022-08-24 16:33:42 +08:00
Rain Zheng 1aaa8ad1b0 fix(host): judge whether the resource exists correctly (#13368) 2022-01-29 00:58:04 +08:00
rainzm a063376f86 fix(host): Stop the retry of purge when the target does not exist 2022-01-20 18:03:50 +08:00
Zexi Li 10e460c39d fix(host): purge isolated_device not work 2022-01-05 17:34:40 +08:00
Zexi Li b704adce55 Merge pull request #13126 from zexi/isodev-probe
fix(host): unplugged isolated devices probe not deleted
2022-01-05 10:42:17 +08:00
Zexi Li a79b8bb73e fix(host): qemu usb passthrough option convert to int 2022-01-04 20:28:12 +08:00
Zexi Li 4158671cc5 fix(host): unplugged isolated devices probe not deleted 2022-01-04 18:36:35 +08:00
Zexi Li 8423aa9e63 feat(region,host): usb passthrough 2021-12-28 19:05:42 +08:00
Qu Xuan 06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
Qiu Jian a970249cc1 fix: delayed probing GPU on host init and add disable_gpu option 2021-10-30 11:46:16 +08:00
Zexi Li 675fc64fa1 fix(host): find same vendor iommu_group devices 2021-07-24 21:40:27 +08:00
wanyaoqi 75cd041d79 baremetal colloct isolated devices info (#7357) 2020-08-28 12:10:34 +08:00
wanyaoqi 44cbdd07a3 isolated device manager:
- fix find boot_vga got No such file or dirtory
2020-06-03 15:46:25 +08:00
wanyaoqi fec7ecbee7 use executor probe kernel mods 2020-01-15 16:59:25 +08:00
wanyaoqi adc079867d fix host build image 2019-12-19 21:58:01 +08:00
wanyaoqi 7bf48c992e - add command executor
- host prepare for deploy on container
- procutils adpat to executor
2019-12-04 20:49:39 +08:00
wanyaoqi e612e06148 remove gpu passthrough params addr 2019-05-07 10:36:13 +08:00
Zexi e3797b709f fix: isolated_device dev_type field not set 2019-04-30 13:48:53 +08:00
Jian Qiu 53570fd78a fix: 1. baremetal always boot from pxe 2. baremetal prepare retry (#307)
multiple local ipmi address
2019-04-10 11:45:10 +08:00
wanyaoqi 6841d16b87 gpu: find gpu iommu group devs and bind all dev to driver vfio-pci (#171) 2019-04-03 00:14:05 +08:00
Qiu Jian 004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li 1ed92bd176 fix: gpu server not work 2019-03-20 20:07:43 +08:00
wanyaoqi dd7ec6518b gendoc 2019-01-26 11:58:45 +08:00
wanyaoqi a230bfa997 temp commit 2019-01-22 11:23:17 +08:00
Zexi Li 156517ca7a IsolatedDevice management 2019-01-16 15:30:37 +08:00
wanyaoqi 011fbb13be diskhandler: local disk create, delete, resize 2019-01-07 17:09:57 +08:00