summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorChenggang <chenggang.qcg@alibaba-inc.com>2018-09-13 21:46:03 -0700
committerShentubot <shentubot@google.com>2018-09-13 21:47:11 -0700
commitfaa34a0738456f5328cf99de13622a150042776d (patch)
tree72f2aaac72df21efac1c4ce55d6a711ae0a7d296 /pkg/tcpip
parent29a7271f5da9fdb7b4a9a6c9ea61421ce6844a73 (diff)
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
Diffstat (limited to 'pkg/tcpip')
0 files changed, 0 insertions, 0 deletions