Commit Graph
69 Commits
Author SHA1 Message Date
Ruben S. Montero ebbb7be5d4 M #-: Bump version 7.3.80 2026-03-30 09:58:53 +02:00
Ruben S. Montero 441b4e6ae0 F OpenNebula/one#7077: NUMA PCIe topology
This commits adds support for generating a NUMA PCIe hierarchy by adding
a pcie-expander-bus in each virtual node. When a PCI passthrough or
SR-IOV device is added is attached to the same virtual node as the
physical server. Changes include:

 - Generate VM_* device parameters when the allocation is performed
 - Generate CONTEXT PCIi_ADDRESS parameters at deployment time
 - Refactor of the HostSharePCI to simplify argument passing.

The hierarchy created is as follows (example 2 NUMA nodes):

                      +-----------+
                      |           |
                      | PCIe Root |
                      |           |
                      +--+-----+--+
                         | ... |
                   +-----+     +-----+
    NUMA node 0    |                 |    NUMA node 1
              +----+-----+      +----+-----+
              | expander |      | expander |
              |    bus   |      |    bus   |
              +----+-----+      +----+-----+
                   |                 |
                   |                 ...
                   |
                   +------> port (0)
                   |        ...
                   +------> port (3)
                   |
                   |    +-----------+
                   | up |   PCIe    +-----> downstream port (0)
                   +----+  Switch   |       ...
                        |           +-----> downstream port (8)
                        +-----------+
2025-06-13 14:12:36 +02:00
Ruben S. MonteroandValentyn Bohdan e9a9751fdc F #6992: Add PCI PROFILE selection to Host/Cluster templates.
co-authored-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-04-17 12:00:24 +02:00
Ruben S. Montero 5ba213e2b1 F #6991: Fix bug not updating HostShare Totals 2025-03-27 11:33:23 +01:00
Valentyn BohdanandRuben S. Montero 6c8fc58148 F #6991: Add support for PCI filtering at cluster/host level (#3501)
Two new attributes are supported for the Host/Cluster template:

- PCI_FILTER. Format is vendor:device:class with "*" as wild card. Example PCI_FILTER="10de:*,386e:0edc"
- PCI_SHORT_ADDRESS. Comma separated list of short PCI address. Example
  PCI_SHORT_ADDRESS="c1:00.2,c1:00.3,01:00.5"

When any of these attributes are defined any PCI device returned by the monitor system is filtered using this attributes. If the device does not match PCI_FILTER and PCI_SHORT_ADDRESS it is discarded.

Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-03-26 14:25:32 +01:00
Tino Vázquez a64f071808 M #-: Bump year 2025 2025-02-28 11:56:18 +01:00
Valentyn Bohdan dc7c9ce4ab B OpenNebula/one#6678: Fix the "enforce" argument for the resize (#3314)
This commit recovers the "enforce" argument for the resize operation onevm resize request. In this case the flag is only applied to the capacity, the NUMA topology is always evaluated in the resize operation.


Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-01-02 07:22:23 +01:00
Tino Vázquez 05d147c524 M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Pavel Czerný 2fe396ae15 L #-: Add Astyle linting
* Add AStyle to smoke tests
* Format C++ files using AStyle
2024-06-03 11:40:24 +02:00
Tino Vázquez 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Ruben S. Montero 907f26050f F #5940: Improve PCI Passthrough and SRIOV support
- SHORT_ADDRESS can be used to select specific devices  (useful on
  homogenous clusters or nic attach operations). This name has been
  selected because of:
    1. It is the attrbute shown host info
    2. It does not collide with the reserved ADDRESS attribute

- New test and add functions that considers both allocation methods: by
  name (VENDOR/CLASS/DEVICE) or address (SHORT_ADDRESS)

- Parameter check on VM creation

- revert and add method use the same pci_attribute function to add info
  to the VM PCI attribute

- Remove well-known attributes when parsing PCI devices (ADDRESS,
  PREV_ADDRES, BUS, FUNCTION, SLOT, NUMA_NODE, UUID)

- Support for attach and detach NIC with PCI attributes
    * onevm_exec.rb looks for PCI devices for ATTACH=YES when attaching/detaching an interface
    * script action are now written in Ruby
    * KVM module with common actions (hostdev/interface device str)
    * Minor changes in xmlparser and OpenNebulaVM classes

- PCI selection options to onevm nic-attach:
    * pci short_address
    * pci_device device ID
    * pci_vendor vendor ID
    * pci_class class ID

- VF can be configured by setting some parameters through IP link (e.g.
  MAC or VLAN_ID). This commit includes a mixin to activate_vf.

    * one_vmm_exec.rb looks for PCI VN_MAD drivers
    * VM class (VNM) adds a @pcis array
    * activate_vf should be called in the pre stage. The following drivers
      acticate VFs (VLAN_ID is implemented as 802.1Q tag)
            - 802.1Q
            - bridge
            - fw
            - ovswitch

- Improve integration with Libvirt/QEMU:

    * When attach, only activate the VF being attached
    * Attach: Use <interface> and not <hostdev> for VF. There seems to be a race
      condition between accessing the vfio device and permission setup.
    * Attach: Remove address on attach as it may fail beacuse PCI controller
      is not present, e.g.:

        ATTACHNIC: Could not attach NIC to 28534240: error: Failed to attach device
        from /dev/fd/63 error: XML error: Invalid PCI address 0000:01:01.0.
        Only PCI buses up to 0 are available ExitCode: 1

    * Detach: Detach always use <hostdev> as libvirt fails to identified the
      device just by address when using <interface>
2022-09-07 15:54:38 +02:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Pavel Czerný ecd36bcb9a B #5261: Fix PCI references after vm migrate fails (#877) 2021-02-25 11:45:13 +01:00
Vlastimil Holer 096754b63f M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Ruben S. MonteroandPavel Czerný 565094961a F #4936: oned refactor
* Remove duplicit methods from NebulaUtil

    * Const correctness

    * Fix minor code quality issues

    * Remove ObjectCollection::clone()

    * Minor SSLUtil interface change

co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2020-07-05 22:01:32 +02:00
Pavel Czerný daaf132a43 F #4936: Remove 'using namespace std' from headers (#60) 2020-07-02 22:42:10 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný 0642f87198 F #3859: Update host reservations only if needed (#4358) 2020-03-13 10:32:53 +01:00
Ruben S. Montero 44e44b47a8 F #3859: New monitoring architecture
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
  co-authored-by: Daniel Clavijo Coca <dclavijo@opennebula.systems>
2020-03-04 16:05:57 +01:00
Ruben S. Montero 03b2b42024 F #3503: Support for overcommitment & VM pinning. Number of VMs per
physical thread can be set for each host with VMS_THREAD
2019-09-22 00:31:08 +02:00
Pavel Czerný 6c6a73092c B #3630: Fix CPU/MEM reservations (#3678) 2019-09-11 11:14:51 +02:00
Ruben S. Montero 3b4b0b2723 F #3503: Support for DPDK. Added ISOLCPUS to isolate cpus from the NUMA scheduler 2019-07-25 16:23:38 +02:00
Ruben S. Montero 3b9ace0577 F #3256: Support for NUMA topology, Hugepages and CPU pinning. 2019-07-01 18:58:24 +02:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Vlastimil Holer a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero 02b229d7de F #4809: Fix cache issues when updating PCI devices on VM 2017-05-26 17:49:07 +02:00
Javi Fontan 8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Ruben S. Montero 08d88e0119 F #4901: Updates MEM & CPU when RESERVED_ attributes are updated. Adds TOTAL_CPU
and TOTAL_MEM shares to store raw monitoring cpu/mem metrics. Adds
migrator and increases local DB version number.
2016-11-12 21:18:25 +01:00
Ruben S. Montero 09825bd7ba F #4901: RESERVED_CPU and RESERVED_MEM can be expressed using %. Update
HostShare interface.
2016-11-05 21:14:38 +01:00
Ruben S. Montero b6dbd9c92c feature #4630: Automatic assgiment of passthrough devices. Attribute and
deployment file
2016-07-18 14:33:50 +02:00
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Ruben S. Montero 5761be4d10 feature #4217: Simplify Template, Attribute and PoolObjectSQL class interfaces 2016-02-05 00:33:37 +01:00
Jaime Melis e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Ruben S. Montero 19f3e8796b feature #3028: Fix get_pci_value logic 2015-09-07 11:58:44 +02:00
Carlos Martín 8178f90f8f Feature #3028: Ignore cpu,mem when capacity is not enforced 2015-09-04 13:22:11 +02:00
Carlos Martín e5861631f1 Bug #3961: Check PCI attributes when a VM is instantiated 2015-09-02 17:31:19 +02:00
Ruben S. Montero 6757fa6672 feature #3028: Remove devices not shown in monitor from host. Recover
constness of test method. Get rid of unneeded methods
2015-08-27 16:20:47 +02:00
Carlos Martín e348918ea2 Feature #3028: Check pci devices in Host::test_capacity 2015-08-26 12:34:27 +02:00
Ruben S. Montero 17c33241a6 feature #3028: Add comments to PCI format. Init pci list in get_*
methods
2015-08-22 17:00:55 +02:00
Ruben S. Montero 6d8ea1a337 feature #3028: Print HostShare and HostXML into streams. Scheduler now parses PCI device lists 2015-08-21 13:46:10 +02:00
Ruben S. Montero c4c6416458 feature #3028: Delete pci devices from host when removing the VM. Always
include VMID in PCI elements
2015-08-21 12:00:19 +02:00
Ruben S. Montero 67ec62e0d4 feature #3028: Add PCI capacity when deploying a VM 2015-08-21 01:08:28 +02:00
Ruben S. Montero 00427a0950 feature #3028: Fix PCI set bugs 2015-08-20 23:22:02 +02:00
Ruben S. Montero e04ee43aa3 feature #3208: Add PCI device set to the HostShare 2015-08-20 17:39:56 +02:00
Ruben S. Montero 6b8a16fc76 feature #3028: Adds PCI_DEVICES to HostShare 2015-08-17 23:14:15 +02:00
Jaime Melis 8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Jaime Melis 11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Carlos Martín 149dab3525 Feature #1678: Add a template to HostShare, store local system DS monitorization there 2013-10-22 15:42:51 +02:00
Ruben S. Montero 3cb4a984c1 bug #2352: Set host share variables to long long type
Conflicts:
	src/host/Host.cc
2013-10-02 18:24:33 +02:00
Ruben S. Montero dcfa0a1773 feature #1772:Resize VM capacity (cpu, memory and vcpu) offline 2013-02-23 19:49:06 +01:00