gvisor/pkg/sentry/platform/kvm
Chenggang faa34a0738 platform/kvm: Get max vcpu number dynamically by ioctl
The old kernel version, such as 4.4, only support 255 vcpus.
While gvisor is ran on these kernels, it could panic because the
vcpu id and vcpu number beyond max_vcpus.
Use ioctl(vmfd, _KVM_CHECK_EXTENSION, _KVM_CAP_MAX_VCPUS) to get max
vcpus number dynamically.

Change-Id: I50dd859a11b1c2cea854a8e27d4bf11a411aa45c
PiperOrigin-RevId: 212929704
2018-09-13 21:47:11 -07:00
..
testutil stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
BUILD stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
address_space.go platform/kvm: Get max vcpu number dynamically by ioctl 2018-09-13 21:47:11 -07:00
allocator.go Add separate Recycle method for allocator. 2018-08-22 14:16:04 -07:00
bluepill.go Check in gVisor. 2018-04-28 01:44:26 -04:00
bluepill_amd64.go Restore FS on resume. 2018-05-30 17:37:51 -07:00
bluepill_amd64.s Check in gVisor. 2018-04-28 01:44:26 -04:00
bluepill_amd64_unsafe.go Check in gVisor. 2018-04-28 01:44:26 -04:00
bluepill_fault.go Add allocator abstraction for page tables. 2018-06-06 21:48:24 -07:00
bluepill_unsafe.go Fix KVM EFAULT handling. 2018-05-15 22:44:40 -07:00
context.go Change ring0 & page tables arguments to structs. 2018-05-30 15:14:44 -07:00
host_map.go Simplify KVM host map handling. 2018-05-14 20:45:41 -07:00
kvm.go platform/kvm: Get max vcpu number dynamically by ioctl 2018-09-13 21:47:11 -07:00
kvm_amd64.go Check in gVisor. 2018-04-28 01:44:26 -04:00
kvm_amd64_unsafe.go Split PCID implementation from page tables. 2018-06-06 22:52:55 -07:00
kvm_const.go platform/kvm: Get max vcpu number dynamically by ioctl 2018-09-13 21:47:11 -07:00
kvm_test.go platform: Pass device fd into platform constructor. 2018-09-11 13:09:46 -07:00
machine.go platform/kvm: Get max vcpu number dynamically by ioctl 2018-09-13 21:47:11 -07:00
machine_amd64.go Add CPUID faulting for ptrace and KVM. 2018-07-16 22:02:58 -07:00
machine_amd64_unsafe.go Make KVM more scalable by removing CPU cap. 2018-06-19 17:00:30 -07:00
machine_unsafe.go Add allocator abstraction for page tables. 2018-06-06 21:48:24 -07:00
physical_map.go Add allocator abstraction for page tables. 2018-06-06 21:48:24 -07:00
virtual_map.go Check in gVisor. 2018-04-28 01:44:26 -04:00
virtual_map_test.go Deflake kvm_test. 2018-06-13 13:05:33 -07:00