search for: nr_online_cpus

Displaying 3 results from an estimated 3 matches for "nr_online_cpus".

2012 Mar 13
6
xl: expose max_cpu_id from `xl info`
This will allow userspace to reason with the total number of CPUs, not just the current number of online CPUs. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...atic struct kvm *kvm_cmd_run_init(int argc, const char **argv) kvm->cfg.vmlinux_filename = find_vmlinux(); kvm->vmlinux = kvm->cfg.vmlinux_filename; + default_transport = kvm->cfg.old_virtio ? VIRTIO_PCI : VIRTIO_PCI_MODERN; + if (kvm->cfg.nrcpus == 0) kvm->cfg.nrcpus = nr_online_cpus; diff --git a/include/kvm/kvm-config.h b/include/kvm/kvm-config.h index 386fa8c..b1512a1 100644 --- a/include/kvm/kvm-config.h +++ b/include/kvm/kvm-config.h @@ -57,6 +57,7 @@ struct kvm_config { bool no_dhcp; bool ioport_debug; bool mmio_debug; + bool old_virtio; }; #endif diff --git a...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...atic struct kvm *kvm_cmd_run_init(int argc, const char **argv) kvm->cfg.vmlinux_filename = find_vmlinux(); kvm->vmlinux = kvm->cfg.vmlinux_filename; + default_transport = kvm->cfg.old_virtio ? VIRTIO_PCI : VIRTIO_PCI_MODERN; + if (kvm->cfg.nrcpus == 0) kvm->cfg.nrcpus = nr_online_cpus; diff --git a/include/kvm/kvm-config.h b/include/kvm/kvm-config.h index 386fa8c..b1512a1 100644 --- a/include/kvm/kvm-config.h +++ b/include/kvm/kvm-config.h @@ -57,6 +57,7 @@ struct kvm_config { bool no_dhcp; bool ioport_debug; bool mmio_debug; + bool old_virtio; }; #endif diff --git a...