Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: berrange/libvirt-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: libvirt/libvirt-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 43 files changed
  • 5 contributors

Commits on Nov 18, 2024

  1. ci: refresh with 'lcitool manifest'

    Notable changes
    
     * AlmaLinux 8 / CentOS Stream 8 replaced with 9
     * Fedora 38 dropped, 40 added
     * Ubuntu 20.04 dropped, 24.04 added
     * Debian 11 dropped, 12 added
    
    Signed-off-by: Daniel P. Berrangé <[email protected]>
    berrange committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    ebcb567 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2025

  1. Expose virDomainMigrateToURI3

    ... so that additional flags can be passed to Domain.migrateToURI.
    
    Fixes #8
    
    Signed-off-by: Takashi Kajinami <[email protected]>
    kajinamit committed Aug 11, 2025
    Configuration menu
    Copy the full SHA
    1576ac9 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2025

  1. Fix missing Deprecated annotation

    Signed-off-by: Takashi Kajinami <[email protected]>
    kajinamit authored and Daniel P. Berrangé committed Aug 21, 2025
    Configuration menu
    Copy the full SHA
    8301e98 View commit details
    Browse the repository at this point in the history
  2. Expose Domain CPU stats

    This exposes virDomainGetCPUStats API so that cpu stats, along with
    memory stats, can be obtained.
    
    Signed-off-by: Takashi Kajinami <[email protected]>
    kajinamit authored and Daniel P. Berrangé committed Aug 21, 2025
    Configuration menu
    Copy the full SHA
    f5b956d View commit details
    Browse the repository at this point in the history
  3. Remove trailing whitespaces

    Signed-off-by: Takashi Kajinami <[email protected]>
    kajinamit authored and Daniel P. Berrangé committed Aug 21, 2025
    Configuration menu
    Copy the full SHA
    7305cef View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2025

  1. Fix memory leak in Connect.listAllDomains

    free was missing for the pointer returned in domains by virConnectListAllDomains, so this has been fixed.
    
    cf. https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListAllDomains
    
    Signed-off-by: Mitsuru Kariya <[email protected]>
    kariya-mitsuru committed Aug 31, 2025
    Configuration menu
    Copy the full SHA
    dda928e View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2025

  1. Fix doc: Suppress warning - Tag @see: missing final '>'

    Fix a typo in Javadoc. When running autobuild.sh it raised a warning
    indicating missing final '>' in @see tag.
    
    Signed-off-by: Francisco Manuel Garcia Botella <[email protected]>
    fmgb committed Sep 1, 2025
    Configuration menu
    Copy the full SHA
    e022ed1 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2025

  1. Add virResetError

    Although virConnCopyLastError and virCopyLastError are provided, using them
    requires freeing the string memory area with virResetError.  Therefore, add
    virResetError.
    
    Also fix mistakes in the Javadoc "missig api in 0.1.0" list:
    - virConnCopyLastError is provided
    - virFreeError is not missing in 0.1.0 (it is listed as missing in 0.6.1)
    
    Signed-off-by: Mitsuru Kariya <[email protected]>
    kariya-mitsuru committed Sep 7, 2025
    Configuration menu
    Copy the full SHA
    1c45808 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2025

  1. Expose virDomainGetJobStats

    Expose virtDomainGetJobStats . This is useful especially when we want
    to query jobs actually running.
    
    Co-Authored-By: Mitsuru Kariya <[email protected]>
    Signed-off-by: Takashi Kajinami <[email protected]>
    kajinamit and kariya-mitsuru committed Sep 29, 2025
    Configuration menu
    Copy the full SHA
    9f4e61b View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2025

  1. Fix Domain.getJobStats

    Fix the following issues in Domain.getJobStats:
    - Fix an exception that occurred when the virTypedParameter[] had zero
      elements.
      virDomainGetJobStats returns successfully with *params == NULL and
      *nparams == 0 when *type == VIR_DOMAIN_JOB_NONE.
      However, calling Structure.toArray(n) with n == 0 causes an
      ArrayIndexOutOfBoundsException.
      This is avoided by directly returning an empty array when *nparams == 0.
    - Fix the issue where the first element of virTypedParameter[] was not
      being read.
      The Structure constructor does not automatically read fields.
      This is fixed by explicitly calling the virTypedParameter.read() method
      for the first element.
      Note: Structure.toArray(n) automatically reads fields (i.e., calls the
      virTypedParameter.read() method) for all elements except the first.
    - Fix the issue where the value was not being read when virTypedParameter
      was a String.
      Union does not perform pointer-to-value reads (such as char* -> String)
      unless it is the active element.
      This is fixed by explicitly reading the String when
      virTypedParameter.type == VIR_TYPED_STRING.
    - Fix a potential crash in virTypedParamsFree when handling String
      parameters.
      When passing a Structure received from a native function as an argument
      to another native function:
        - String fields directly embedded in the Structure are not updated in
          native memory if their values haven't changed.
        - However, Unions embedded in the Structure always update native memory
          for the active element, even if the value hasn't changed.
      Therefore, if the active element of the Union is a String, JNA allocates
      new memory for the string and overwrites the received char* pointer.
      This not only causes the original char* pointer to be leaked, but also
      leads to double-free issues: once by virTypedParamsFree and again by GC
      on the JNA-allocated memory.
      This is avoided by changing the argument type of virTypedParamsFree from
      virTypedParameter[] to Pointer.
    
    Additionally, extract the conversion from a pointer to a virTypedParameter
    array to a TypedParameter array into a static method of TypedParameter, as
    there are other functions that also receive virTypedParameter arrays.
    
    Signed-off-by: Mitsuru Kariya <[email protected]>
    kariya-mitsuru committed Sep 30, 2025
    Configuration menu
    Copy the full SHA
    48dfbc1 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2025

  1. Fix incorrect argument type in virDomainMigrate3

    The 5th argument `flags` of `virDomainMigrate3` is `unsigned int`, not
    `unsigned long`.  Therefore, the Java binding should use `int` instead of
    `NativeLong`.
    
    To maintain backward compatibility, the version taking `NativeLong` as an
    argument has been deprecated, and a new version taking `int` has been added.
    
    Although not fully verified, it is likely that no practical issue occurs on
    supported platforms because:
    
    - On 32-bit platforms, `long` and `int` are the same size.
    - On 64-bit platforms, the 5th argument is passed via a register.
    
    Signed-off-by: Mitsuru Kariya <[email protected]>
    kariya-mitsuru authored and Daniel P. Berrangé committed Oct 14, 2025
    Configuration menu
    Copy the full SHA
    c945e7c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2025

  1. Add DomainCheckpoint binding

    Created the bindings to manage the domain checkpoints of a domain.
    Added tests to check the functionality of these bindings.
    
    Signed-off-by: Francisco Manuel Garcia Botella <[email protected]>
    fmgb authored and Daniel P. Berrangé committed Oct 15, 2025
    Configuration menu
    Copy the full SHA
    d2658a4 View commit details
    Browse the repository at this point in the history
  2. Add DomainBackupBegin and DomainGetJobStats bindings

    Added tests to these bindings.
    
    Signed-off-by: Francisco Manuel Garcia Botella <[email protected]>
    fmgb authored and Daniel P. Berrangé committed Oct 15, 2025
    Configuration menu
    Copy the full SHA
    502125b View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2025

  1. ci: refresh with latest 'lcitool manifest'

    Removed old OSes:
        - Fedora 39, Fedora 40
    
    Added new OSes:
    
        - AlmaLinux 10
        - CentOS Stream 10
        - Debian 13
        - Fedora 42, Fedora 43
    
    Signed-off-by: Pavel Hrdina <[email protected]>
    phrdina committed Dec 8, 2025
    Configuration menu
    Copy the full SHA
    2ceed90 View commit details
    Browse the repository at this point in the history
Loading