-
Notifications
You must be signed in to change notification settings - Fork 292
Comparing changes
Open a pull request
base repository: xapi-project/xen-api
base: v25.31.0
head repository: xapi-project/xen-api
compare: v25.32.0
- 20 commits
- 126 files changed
- 8 contributors
Commits on Sep 22, 2025
-
XSI-1969 more thorough resource cleanup
In XSI-1969 we deal with an inconsistent Xapi DB and fail to recognise a PCI as SRIOV. Be more lenient and recognise stale PCI refs as SRIOV. Also remove a VM from a VGPU explictly on resouce cleanup. Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for fabb45e - Browse repository at this point
Copy the full SHA fabb45eView commit details
Commits on Sep 29, 2025
-
XSI-1969 more thorough resource cleanup (#6682)
In XSI-1969 we deal with an inconsistent Xapi DB and fail to recognise a PCI as SRIOV. Be more lenient and recognise stale PCI refs as SRIOV. Also remove a VM from a VGPU explictly on resouce cleanup.
Configuration menu - View commit details
-
Copy full SHA for b2f572d - Browse repository at this point
Copy the full SHA b2f572dView commit details -
CP-54163: xapi: Add secure boot field to host
The secure boot status can be read from the fifth byte of file /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c This adds a secure_boot field to the host datamodel, which is set during dbsync to the value held in the above file. Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@cloud.com>
Configuration menu - View commit details
-
Copy full SHA for 06e8b6b - Browse repository at this point
Copy the full SHA 06e8b6bView commit details -
xapi: Add secure boot field to host datamodel (#6687)
The secure boot status can be read from the fifth byte of file /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c This adds a secure_boot field to the host datamodel, which is set during dbsync to the value held in the above file.
Configuration menu - View commit details
-
Copy full SHA for 75db25c - Browse repository at this point
Copy the full SHA 75db25cView commit details -
http-lib: Add filename hint to file response
When serving files, a filename can be hinted to the client, so they can download the with the correct filename instead of showing the contents on the screen. For example, with `curl -JO`. Don't change behaviour unless explicitly requested, users like the xapi fileserver serve html files which are not meant to be downloaded. See https://httpwg.org/specs/rfc6266.html#rfc.section.4.2 Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for c074150 - Browse repository at this point
Copy the full SHA c074150View commit details -
system_status: Clean up imports, add an interface
Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 9b4d671 - Browse repository at this point
Copy the full SHA 9b4d671View commit details -
There were several unuseful debug messages, reduce loglines to the error ones that may help debug an error situation. Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 7d78716 - Browse repository at this point
Copy the full SHA 7d78716View commit details -
system_status: reify the output types for xen-bugtool
This allows to fix the case where the call to the endpoint failed without parameters. Now the correct mimetypes are offered for each of the filetypes, and the filename offered when using tar has the correct extension. Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 3474fb1 - Browse repository at this point
Copy the full SHA 3474fb1View commit details -
system_status: Group bugtool command-handling into a module
Allows to see the relation between its parameters, and show the differences in how xen-bugtool is invoked Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 874502a - Browse repository at this point
Copy the full SHA 874502aView commit details -
system_status: consolidate error-handling
Previously both methods to collect the file handled errors in a slightly different way. Use the same code for both to be consistent Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for f27fba6 - Browse repository at this point
Copy the full SHA f27fba6View commit details -
system_status: suggest consistent filenames to clients
Now the filenames are ordered by date and hostname Examples: ``` content-disposition: attachment; filename="system_status-2025-09-29T13:23:13Z-metavega.tar" content-disposition: attachment; filename="system_status-2025-09-29T13:24:30Z-metavega.zip" ``` Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for b51352f - Browse repository at this point
Copy the full SHA b51352fView commit details -
system_status: add URL parameter to show xen-bugtool entries
This allows the clients to request only the entries they are interested in. This is done by adding `?list` to the URL: ``` $ curl -k -i -H "cookie: session_id=OpaqueRef:XXX" https://metavega/system-status?list HTTP/1.1 200 OK content-length: 6373 connection: close cache-control: no-cache, no-store Server: xapi/25.27 content-type: application/xml [...] ``` Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 792f8a2 - Browse repository at this point
Copy the full SHA 792f8a2View commit details -
Fix missing-dependency alerts for unix and str on OCaml 5
OCaml 5 is particularly picky here and wants all those dependencies explicitly (and tediously) declared, otherwise it will print `ocaml_deprecated_auto_include` alerts. In the case of `unix`, it is used nearly everywhere. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 293a30b - Browse repository at this point
Copy the full SHA 293a30bView commit details
Commits on Sep 30, 2025
-
The format of the error that this test checks for is printed a little differently by the OCaml 5 compiler (the name of the tag is now quoted). Adapt the test a little to make it work both for OCaml 4 and 5. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b74cda9 - Browse repository at this point
Copy the full SHA b74cda9View commit details -
Remove unused Xenctrlext function
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1c36d6b - Browse repository at this point
Copy the full SHA 1c36d6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f0775b - Browse repository at this point
Copy the full SHA 0f0775bView commit details -
system_status: enhance useability of the API call (#6690)
Now there's no failure when called without parameters, suggests a nice filename with the correct extension, advertises the content-type of the file served, and adds an option to list all the allowed entries supported by xen-bugtool in an xml format.
Configuration menu - View commit details
-
Copy full SHA for f8031f5 - Browse repository at this point
Copy the full SHA f8031f5View commit details -
idl: Remove apparently unused gen_test.ml
Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
Configuration menu - View commit details
-
Copy full SHA for 0849336 - Browse repository at this point
Copy the full SHA 0849336View commit details -
idl/gen_client: Don't specify argument values when they're equal to d…
…efaults This enables client.ml to skip specifying an arbitrary number of rightmost arguments if they're all equal to their default values (since arguments are positional, once an argument is not skipped, no arguments to its left can be skipped). Generated code for e.g. host.disable looks like the following: let session_id = rpc_of_ref_session session_id in let host = rpc_of_ref_host host in let auto_enable = rpc_of_bool auto_enable in let needed_args, _ = List.fold_right2 (fun param default (acc, skipped)-> (* Since arguments are positional, we can only skip specifying an argument that's equal to its default value if all the arguments to its right were also not specified *) if skipped then (match default with | Some default_value when param = default_value -> (acc, true) | _ -> (param::acc, false)) else (param :: acc, false) ) [ session_id; host; auto_enable ] [ None; None; Some (Rpc.Bool true) ] ([], true) in rpc_wrapper rpc "host.disable" needed_args >>= fun x -> return (ignore x) This fixes an issue with client.ml always specifying values for new parameters that older server.ml did not know about (which happens during an RPU). Fixes: cf5be62 ("host.disable: Add auto_enabled parameter for persistency") Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>Configuration menu - View commit details
-
Copy full SHA for 197c319 - Browse repository at this point
Copy the full SHA 197c319View commit details -
idl/gen_client: Don't specify argument values when they're equal to…… defaults (#6693) #6652 added a new parameter to `Host.disable`. Since the method is used during an RPU, when a new client calls an older server unaware of the parameter, this broke it. Add a test reproducing what happens during an RPU and fix the issue in `client.ml`. --- Adds an older `server.ml` and `client.ml` from xapi 25.30.0 (with `server.ml` modified to compile after the XSA-474 interface changes), before `Host.disable` gained the `auto_enable` parameter. Adds compatibility tests verifying that an older client can talk to a newer server and the other way around. Before the fix, both `test_compatibility_with_old_server_*` fail, showing that `auto_enable` in `Host.disable` is an unexpected parameter. This failure is triggered on RPUs, when a newer xapi talks to an older one: [exception] Server_error(MESSAGE_PARAMETER_COUNT_MISMATCH, [ host.disable; 1; 2 ]) So allow `client.ml` to skip specifying an arbitrary number of rightmost arguments if they're all equal to their default values (since arguments are positional, once an argument is not skipped, no arguments to its left can be skipped). Generated code for `host.disable` looks like the following: ``` let session_id = rpc_of_ref_session session_id in let host = rpc_of_ref_host host in let auto_enable = rpc_of_bool auto_enable in let needed_args, _ = List.fold_right2 (fun param default (acc, skipped)-> (* Since arguments are positional, we can only skip specifying an argument that's equal to its default value if all the arguments to its right were also not specified *) if skipped then (match default with | Some default_value when param = default_value -> (acc, true) | _ -> (param::acc, false)) else (param :: acc, false) ) [ session_id; host; auto_enable ] [ None; None; Some (Rpc.Bool true) ] ([], true) in rpc_wrapper rpc "host.disable" needed_args >>= fun x -> return (ignore x) ``` This fixes an issue with `client.ml` always specifying values for new parameters that older `server.ml` did not know about (which happens during an RPU). This makes `test_compatibility_with_old_server_default` pass, so drop the `try with` for it. `test_compatibility_with_old_server_non_default` still fails, indicating that everything works as intended. Fixes: cf5be62 ("host.disable: Add auto_enabled parameter for persistency")
Configuration menu - View commit details
-
Copy full SHA for bc0ba4e - Browse repository at this point
Copy the full SHA bc0ba4eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v25.31.0...v25.32.0