Re: [PATCH] tools/libs: Make uselibs.mk more legible

2025-03-07 Thread Anthony PERARD
On Fri, Mar 07, 2025 at 01:33:42PM +, Andrew Cooper wrote: > A few blank lines go a very long way. > > Signed-off-by: Andrew Cooper Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v1 1/1] xen: No need to flush the mapcache for grants

2025-03-07 Thread Anthony PERARD
ed-by: Edgar E. Iglesias > Signed-off-by: Stefano Stabellini > Signed-off-by: Edgar E. Iglesias Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 2/2] hw/xen: Add "mode" parameter to xen-block devices

2025-03-07 Thread Anthony PERARD
On Fri, Feb 07, 2025 at 02:37:24PM +, David Woodhouse wrote: > From: David Woodhouse > > Block devices don't work in PV Grub (0.9x) if there is no mode specified. It > complains: "Error ENOENT when reading the mode" > > Signed-off-by: David Woodhouse Rev

Re: [PATCH v2] tools/xl: fix channel configuration setting

2025-02-28 Thread Anthony PERARD
On Thu, Feb 27, 2025 at 04:10:25PM +0100, Jürgen Groß wrote: > On 26.02.25 16:55, Anthony PERARD wrote: > > On Tue, Feb 25, 2025 at 08:30:33AM +0100, Juergen Gross wrote: > > > Channels work differently than other device types: their devid should > > > be -1 initially i

Re: [PATCH 8/8] meson: Remove support for Xen on 32-bit ARM hosts

2025-02-28 Thread Anthony PERARD
#x27;''''''''''''''''''''''''''''''''''''' > + > +Untested for more than 4 years. Well, not quite, we used to have some test of Xen on armhf hosts (one of arndale or cubietrunk, I don't remember which one we had to stop and never start testing again) until last year, and that included tests with qcow2 disk, so using QEMU. But that testing infra is gone so the patch is fine: Reviewed-by: Anthony PERARD Cheers, -- Anthony PERARD

Re: [PATCH 7/8] hw/xen/xen-legacy-backend: Remove unused 'net/net.h' header

2025-02-28 Thread Anthony PERARD
On Tue, Feb 18, 2025 at 05:26:17PM +0100, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 6/8] hw/xen/xen-bus: Reduce included headers

2025-02-28 Thread Anthony PERARD
On Tue, Feb 18, 2025 at 05:26:16PM +0100, Philippe Mathieu-Daudé wrote: > Have "hw/xen/xen-bus" include the bare minimal set of headers. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 5/8] hw/xen/xen-hvm: Reduce included headers

2025-02-28 Thread Anthony PERARD
> hw/i386/xen/xen-hvm.c:492:15: error: ‘R_EAX’ undeclared (first use in this > function) > 492 | env->regs[R_EAX] = req->data; > | ^ > | REG_RAX > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2] tools/xl: fix channel configuration setting

2025-02-26 Thread Anthony PERARD
d set by `xl` was probably ignored. I think before, the console devid would be taken from libxl__init_console_from_channel() parametters, so the first devnum would be `0+1`, so never 0. Do you agree? In anycase: Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP

Re: [PATCH] tools/xl: fix channel configuration setting

2025-02-24 Thread Anthony PERARD
-1; > + You can use ARRAY_EXTEND_INIT_NODEVID() instead which doesn't touch `devid` and let the value set by libxl_device_channel_init(). Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: Coding Style Review and Automation

2025-02-11 Thread Anthony PERARD
make reviewing the new style harder). Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v7 7/7] tools/xenstored: use new stable interface instead of libxenctrl

2025-01-16 Thread Anthony PERARD
trl by Xenstore, so update > the library dependencies accordingly. > > For now only do a direct replacement without using the functionality > of obtaining information about domains having changed the state. > > Signed-off-by: Juergen Gross > Reviewed-by: Samuel Thibault

Re: [PATCH v2] xl: properly dispose of libxl_dominfo struct instances

2025-01-16 Thread Anthony PERARD
gt; Coverity-ID: 1638727 > Coverity-ID: 1638728 > Fixes: c458c404da16 ("xl: use libxl_domain_info to get the uuid in > printf_info") > Fixes: 48dab9767d2e ("tools/xl: use libxl_domain_info to get domain type for > vcpu-pin") > Signed-off-by: Jan Beulich > Rele

Re: [PATCH] xl: properly dispose of vTPM struct instance

2025-01-16 Thread Anthony PERARD
ot;) > Signed-off-by: Jan Beulich Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] xentrace: free CPU mask string before overwriting pointer

2025-01-16 Thread Anthony PERARD
s: e4ad2836842a ("xentrace: Implement cpu mask range parsing of human > values (-c)") > Signed-off-by: Jan Beulich Acked-by: Anthony PERARD Thanks, -- | Vates XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v3 7/7] hw/xen: Fix errp handling in xen_console

2025-01-15 Thread Anthony PERARD
check, with ERRP_GUARD() macro `errp` is never NULL. > +error_free(*errp); After this, I think you still need *errp = NULL; > +} > +if (number) { > +cd = serial_hd(number); > +if (!cd) { > +error_setg(errp,

Re: [PATCH v3 2/7] xen: do not use '%ms' scanf specifier

2025-01-15 Thread Anthony PERARD
ce-s...') > Fixes: 9b7737469080 ('hw/xen: update Xen console to XenDevice model') > Signed-off-by: Roger Pau Monné > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v3 1/7] hw/xen: Add xs_node_read() helper function

2025-01-15 Thread Anthony PERARD
aving to do so for themselves (and > from using xs_node_scanf() with the non-portable %ms format string. > > Signed-off-by: David Woodhouse > [remove double newline and constify trace parameters] > Signed-off-by: Roger Pau Monné Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 2/4] hw/xen: Use xs_node_read() from xen_console_get_name()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:24AM +, David Woodhouse wrote: > From: David Woodhouse > > Now that xs_node_read() can construct a node path, no need to open-code it. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 4/4] hw/xen: Use xs_node_read() from xenstore_read_str() instead of open-coding it

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:26AM +, David Woodhouse wrote: > From: David Woodhouse > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 3/4] hw/xen: Use xs_node_read() from xen_netdev_get_name()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:25AM +, David Woodhouse wrote: > From: David Woodhouse > > Now that xs_node_read() can construct a node path, no need to open-code it. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 1/4] hw/xen: Use xs_node_read() from xs_node_vscanf()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:23AM +, David Woodhouse wrote: > From: David Woodhouse > > Reduce some duplication. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 2/2] xen: do not use '%ms' scanf specifier

2025-01-15 Thread Anthony PERARD
or_prepend()` and use `error_setg` instead when `serial_hd()` fails. > +if (output) { > /* > * FIXME: sure we want to support implicit > * muxed monitors here? Thanks, -- Anthony PERARD

Re: [PATCH v2 1/2] hw/xen: Add xs_node_read() helper function

2025-01-15 Thread Anthony PERARD
very other function use "${node}/${key}" (As explain in the comment above xs_node_vscanf()), but this one uses a printf format in `node_fmt` (which could probably better be named `path_fmt` instead). Otherwise, patch looks fine to me. Cheers, -- Anthony PERARD

Re: [PATCH 1/2] Config.mk: Pin QEMU_UPSTREAM_REVISION

2025-01-09 Thread Anthony PERARD
On Thu, Jan 09, 2025 at 03:39:20PM +, Andrew Cooper wrote: > Signed-off-by: Andrew Cooper Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH 2/2] xen: do not use '%ms' scanf specifier

2025-01-09 Thread Anthony PERARD
"type", errp, "%ms", &type) != 1) { > +node_path = g_strdup_printf("%s/type", fe); > +type = qemu_xen_xs_read(xsh, XBT_NULL, node_path, NULL); > +g_free(node_path); I feel like we want "xs_node_read()" which would be similair to xs_node_vscanf() but would simply return the result of qemu_xen_xs_read(). This would avoid the need format of the node path in several place in the code. But it's OK like that as well. Cheers, -- Anthony PERARD

Re: [PATCH 1/2] xen/console: fix error handling in xen_console_device_create()

2025-01-09 Thread Anthony PERARD
ber) { > cd = serial_hd(number); > if (!cd) { > -error_prepend(errp, "console: No serial device #%ld found: ", > +error_setg(errp, "console: No serial device #%ld found: ", >number); This change looks correct, ableit we could remove ": " from the end of the string since they shouldn't be anything after it. Cheers, -- Anthony PERARD

Re: [PATCH for-4.20] CI: Update Fedora to 41

2025-01-08 Thread Anthony PERARD
On Wed, Jan 08, 2025 at 12:43:16PM +, Andrew Cooper wrote: > Signed-off-by: Andrew Cooper Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v2 1/2] tools/libs: remove dead code

2025-01-08 Thread Anthony PERARD
_device.c > @@ -392,7 +392,6 @@ static int disk_try_backend(disk_try_backend_args *a, > return 0; > > } > -abort(); /* notreached */ > > bad_format: > LOG(DEBUG, "Disk vdev=%s, backend %s unsuitable due to format %s", Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v2] drop setting XEN_QEMU_CONSOLE_LIMIT in the environment

2024-12-19 Thread Anthony PERARD
pository was not applied from > qemu-xen-4.18.0. > > Signed-off-by: James Dingwall Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] tools/xg: increase LZMA_BLOCK_SIZE for uncompressing the kernel

2024-12-19 Thread Anthony PERARD
And remove the > > misleading comment (from lack of better ideas). > > > > Signed-off-by: Marek Marczykowski-Górecki > > Reviewed-by: Roger Pau Monné > > I assumed I already RB this, but it seems not. > > Could we get an Ack from the tools or libs maintainer for this to go > in? It's not the best solution, but we need to get this sorted in > time for 4.20, and backport to stable branches. Acked-by: Anthony PERARD Thanks, -- | Vates XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v5 5/5] tools/xenstored: use new stable interface instead of libxenctrl

2024-12-17 Thread Anthony PERARD
loc_autofree() it seems, which is called by atexit(). So, shouldn't `xm_handle` by handle with talloc like the others? Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v3 6/7] tools/libs: add a new libxenmanage library

2024-12-16 Thread Anthony PERARD
ssary? Isn't xencall_alloc_buffer() going to set `errno`? Or is it to overwrite `errno` set by system calls which could be other than ENOMEM? > + return -1; > +} Otherwise, patch looks fine to me: Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v3 2/7] tools: add a dedicated header file for barrier definitions

2024-12-16 Thread Anthony PERARD
ense-Identifier: LGPL-2.1 */ That's a deprecated SPDX identifier, it should be written "LGPL-2.1-only" instead. With that fixed: Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [QEMU PATCH v10] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-12-12 Thread Anthony PERARD
On Tue, Dec 10, 2024 at 07:17:30AM +, Chen, Jiqian wrote: > On 2024/11/19 00:05, Anthony PERARD wrote: > > On Wed, Nov 06, 2024 at 02:14:18PM +0800, Jiqian Chen wrote: > >> In PVH dom0, when passthrough a device to domU, QEMU code > >> xen_pt_realize->xc_physdev_

Re: [PATCH] MAINTAINERS: add Anthony, Michal, Roger to THE REST

2024-12-11 Thread Anthony PERARD
llini > > diff --git a/MAINTAINERS b/MAINTAINERS > index 026aa25a53..34ad49bc39 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -662,8 +662,11 @@ K: \b(xsm|XSM)\b > > THE REST > M: Andrew Cooper > +M: Anthony PERARD > +M: Michal Orzel > M: J

Re: [PATCH v3] tools/xl: add suspend and resume subcommands

2024-12-05 Thread Anthony PERARD
d equivalent of "sleep"-ing a host, it's better to > suspend/resume than to pause/unpause a domain. > > Suggested-by: Andrew Cooper > Suggested-by: Marek Marczykowski-Górecki > Signed-off-by: Cyril Rébert (zithro) > Signed-off-by: Jason Andryuk Reviewed-b

Re: [PATCH v11 06/12] tools: add support for cache coloring configuration

2024-12-04 Thread Anthony PERARD
; documentation. > The parameter is defined as a list of strings that represent the color > ranges. > > Documentation is also added. > > Based on original work from: Luca Miccio > > Signed-off-by: Carlo Nonato > Signed-off-by: Marco Solieri Reviewed-by: Anthony PER

Re: [PATCH 2/5] build: add possibility to use LLVM tools

2024-11-29 Thread Anthony PERARD
ing toolchain, I don't think $(llvm) or $(clang) should be used in the build system, and instead rely on autodetection for arguments. (There's already $(CONFIG_CC_IS_CLANG) and $(CONFIG_LD_IS_LLVM) in the hypervisor's build system, via Kconfig) At least for the hypervisor. For t

Re: [PATCH] libxl: extend IGD check

2024-11-29 Thread Anthony PERARD
ykowski-Górecki Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v2 2/2] tools/xl: add suspend and resume subcommands

2024-11-28 Thread Anthony PERARD
y() is going to work. It looks like it only depends on the hypervisor. I can't find any logic that would treat Arm differently, besides the presence of LIBXL_HAVE_NO_SUSPEND_RESUME. But best bet would be to hide those four functions when LIBXL_HAVE_NO_SUSPEND_RESUME is defined. Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v2 1/2] xl: Keep monitoring suspended domain

2024-11-28 Thread Anthony PERARD
our suspended domain which > will end up continuously re-triggering. > > Signed-off-by: Jason Andryuk Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH 5/6] tools: add a dedicated header file for barrier definitions

2024-11-26 Thread Anthony PERARD
gt; + * You should have received a copy of the GNU Lesser General Public > + * License along with this library; If not, see > <http://www.gnu.org/licenses/>. > + */ > + > +#ifndef XENBARRIER_H > +#define XENBARRIER_H With an extra '_' for the '-' in the header f

Re: [PATCH 4/6] tools/libs: add a new libxenmanage library

2024-11-26 Thread Anthony PERARD
On Fri, Nov 22, 2024 at 04:12:25PM +0100, Jürgen Groß wrote: > On 22.11.24 14:55, Anthony PERARD wrote: > > On Wed, Oct 23, 2024 at 03:10:03PM +0200, Juergen Gross wrote: > > > diff --git a/tools/include/xenmanage.h b/tools/include/xenmanage.h > > > new file mode 10

Re: [PATCH 2/2] libxl/ACPI: bound RSDP allocation

2024-11-25 Thread Anthony PERARD
gger that 64, but it would probably not work well anyway seen how `config.rsdp` is used here. Reviewed-by: Anthony PERARD > --- > Similarly bounding the info "page" allocation would be nice, but would > require knowing libacpi's struct acpi_info size here. Or reg

Re: [PATCH 1/2] libxl/ACPI: don't hard-code guest page size

2024-11-25 Thread Anthony PERARD
27;t if the explanation is correct, but at least now the same value is used for both zmalloc() and .lenght. > Fixes: 14c0d328da2b ("libxl/acpi: Build ACPI tables for HVMlite guests") > Signed-off-by: Jan Beulich Reviewed-by: Anthony PERARD > --- > Yet better might be to limit

Re: [RFC PATCH 00/25] Introduce xenbindgen to autogen hypercall structs

2024-11-22 Thread Anthony PERARD
On Fri, Nov 22, 2024 at 01:12:24PM +, Alejandro Vallejo wrote: > On Thu Nov 21, 2024 at 5:47 PM GMT, Anthony PERARD wrote: > > On Fri, Nov 15, 2024 at 11:51:29AM +, Alejandro Vallejo wrote: > > > This series is the result of my "Interfacing Rust with Xen&quo

Re: [PATCH 4/6] tools/libs: add a new libxenmanage library

2024-11-22 Thread Anthony PERARD
t; +ret = xencall1(hdl->xcall, __HYPERVISOR_domctl, (unsigned long)buf); > + saved_errno = errno; > +if ( !ret ) > +{ > +st = &buf->u.get_domain_state; You could define *st here. struct xen_domctl_get_domain_state *st = &...; Or even with ".. *const st" but maybe that's not common enough in C code. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [RFC PATCH 00/25] Introduce xenbindgen to autogen hypercall structs

2024-11-21 Thread Anthony PERARD
rated versions > Patch 15. xen/arm: Replace hand-crafted xen_arch_domainconfig with > autogenerated one I feel like you write "hand-crafted" in those patch description as if it is a bad thing. Yet, you replace the hand-crafted C headers by hand-crafted IDL. I think a better title could be "Translate xen_arch_domainconfig into IDL" to avoid what I feel like is a pejorative term. Also, would it be possible to separate changes to the existing API from the patch that introduce the newly generated headers? I think it would be much easier to review that the generated headers don't introduce any changes over the current one. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v10 06/12] tools: add support for cache coloring configuration

2024-11-20 Thread Anthony PERARD
s/golang/xenlight/types.gen.go Running this following command should be enough, even if you don't have golang installed. make -C tools/golang/xenlight helpers.gen.go types.gen.go If you send an update of the patch series, it would be nice to include the regenerated files. Cheers, -- A

Re: [PATCH v10 06/12] tools: add support for cache coloring configuration

2024-11-20 Thread Anthony PERARD
ffer_alloc() should already have set `errno`, and PERROR() preserves it. > +goto out; > +} Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [XEN PATCH v2 3/3] CI: New stage "containers" to rebuild some containers

2024-11-20 Thread Anthony PERARD
On Tue, Nov 19, 2024 at 01:47:16PM -0800, Stefano Stabellini wrote: > On Tue, 19 Nov 2024, Anthony PERARD wrote: > > Rebuild rolling release containers when XEN_CI_REBUILD_CONTAINERS is > > set. This is to be use with a scheduled pipeline. > > > > Signed-off-by: Antho

[XEN PATCH v2 2/3] CI: Define XEN_REGISTRY variable

2024-11-19 Thread Anthony PERARD
This allow to change the registry used for container in a single place, and could be controlled via other mean. Signed-off-by: Anthony PERARD Reviewed-by: Stefano Stabellini --- .gitlab-ci.yml | 3 +++ automation/gitlab-ci/build.yaml | 4 ++-- automation/gitlab-ci/test.yaml

[XEN PATCH v2 1/3] CI: Remove deprecated "only:variables" in favor of "rules:if"

2024-11-19 Thread Anthony PERARD
Also, this prevent using "rules", like in the ".test-jobs-common" template. https://docs.gitlab.com/ee/ci/yaml/#only--except Signed-off-by: Anthony PERARD Reviewed-by: Stefano Stabellini --- automation/gitlab-ci/test.yaml | 15 ++- 1 file changed, 6 insert

[XEN PATCH v2 0/3] CI: Allow automatic rebuild of rolling release containers

2024-11-19 Thread Anthony PERARD
setup a scheduled pipeline on GitLab which would rebuild containers. To enable this, just running a pipeline with XEN_CI_REBUILD_CONTAINERS=1 will do. I intend to add a scheduled pipeline to run once a month. Thanks, Anthony PERARD (3): CI: Remove deprecated "only:variables" i

[XEN PATCH v2 3/3] CI: New stage "containers" to rebuild some containers

2024-11-19 Thread Anthony PERARD
Rebuild rolling release containers when XEN_CI_REBUILD_CONTAINERS is set. This is to be use with a scheduled pipeline. Signed-off-by: Anthony PERARD --- Notes: v2: - remove the logic to test containers once rebuilt. - only include the config with jobs for the "containers"

Re: [QEMU PATCH v10] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-11-18 Thread Anthony PERARD
: Huang Rui > Signed-off-by: Jiqian Chen Acked-by: Anthony PERARD But, this following change probably needs an ack from PCI maintaners, CCed. > diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h > index eb26cac81098..07805aa8a5f3 100644 > --- a/include/hw/pci/pci.h > +++

Re: [XEN PATCH 3/3] CI: New stage "containers" to rebuild some containers

2024-11-18 Thread Anthony PERARD
On Fri, Nov 15, 2024 at 04:34:21PM -0800, Stefano Stabellini wrote: > On Fri, 15 Nov 2024, Anthony PERARD wrote: > > Rebuild rolling release containers when XEN_CI_REBUILD_CONTAINERS is > > set. This is to be use with a scheduled pipeline. > > > > When $XEN_CI_REBU

Re: [XEN PATCH 0/3] CI: Allow automatic rebuild of rolling release containers

2024-11-18 Thread Anthony PERARD
On Fri, Nov 15, 2024 at 05:13:13PM +, Andrew Cooper wrote: > On 15/11/2024 5:07 pm, Anthony PERARD wrote: > > Patch series available in this git branch: > > https://xenbits.xenproject.org/git-http/people/aperard/xen-unstable.git > > br.gitlab-ci-rebuild-arch-co

[XEN PATCH 1/3] CI: Remove deprecated "only:variables" in favor of "rules:if"

2024-11-15 Thread Anthony PERARD
Also, this prevent using "rules", like in the ".test-jobs-common" template. https://docs.gitlab.com/ee/ci/yaml/#only--except Signed-off-by: Anthony PERARD --- automation/gitlab-ci/test.yaml | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/

[XEN PATCH 3/3] CI: New stage "containers" to rebuild some containers

2024-11-15 Thread Anthony PERARD
should wait for the container to be rebuild. If it's a normal pipeline, those dependency are simply ignored. Signed-off-by: Anthony PERARD --- .gitlab-ci.yml | 2 + automation/gitlab-ci/build.yaml | 57 ++-- automation/gitlab-ci/containers

[XEN PATCH 2/3] CI: Define XEN_REGISTRY variable

2024-11-15 Thread Anthony PERARD
This allow to change the registry used for container in a single place, and could be controlled via other mean. Signed-off-by: Anthony PERARD --- .gitlab-ci.yml | 3 +++ automation/gitlab-ci/build.yaml | 4 ++-- automation/gitlab-ci/test.yaml | 2 +- 3 files changed, 6

[XEN PATCH 0/3] CI: Allow automatic rebuild of rolling release containers

2024-11-15 Thread Anthony PERARD
(the container is updated even if the test fail, but at least we can find out about it sooner rather than later). To enable this, just running a pipeline with XEN_CI_REBUILD_CONTAINERS=1 will do. I intend to add a scheduled pipeline to run once a month. Thanks, Anthony PERARD (3): CI: Remove

Toolstack working group (replace libxl)

2024-11-14 Thread Anthony PERARD
bout it: https://lists.xenproject.org/mailman/listinfo/wg-toolstack wg-toolst...@lists.xenproject.org And I've created a GitLab project where we can share more, use issue or other features: https://gitlab.com/xen-project/collab/wg-toolstack-refactoring And at some point, we should have regular mee

Xen Project Winter Meetup 2025

2024-11-07 Thread Anthony PERARD
ow over the weekend or explore Grenoble's local culture. Please don't hesitate to reach out for any additional information. -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] tools/libxl: remove usage of VLA arrays

2024-11-05 Thread Anthony PERARD
nprintf(path, sizeof(path), "/local/pool/%d/name", poolid); > > Acked-by: Andrew Cooper > > Although I have a minor preference for sizeof() as suggested by Frediano. I have a preference for sizeof() too, we even used it this way (more or less) in libxl before, for `eom`

Re: [XEN PATCH v1 4/6] CI: Refresh the Debian 12 arm32 cross compile container

2024-10-24 Thread Anthony PERARD
uot;ENV VAR value" is supported, it's been discouraged by docker's doc (https://docs.docker.com/reference/dockerfile/#env). Also, here we have two ENV instructions with two different syntax, could you use the = for declaring CROSS_COMPILE as well? Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] tools/pvhsim: Inherit the tools debug= setting

2024-10-24 Thread Anthony PERARD
ere's a few option in Make and shell: $(if $(filter y,$(debug)),y,n) $$([ "$(debug)" = y ] && echo y || echo n) $$(case "$(debug)" in y) echo y;; *) echo n;; esac) For the $(filter ) option, if one does `debug='y no' make` the $(if ) will expand t

Scheduled Maintenance of xenbits, wiki, mail

2024-10-21 Thread Anthony PERARD
07:00 then 08:00 UTC) and will take a few hours on those dates: - 2024-10-23: mail.xenproject.org - 2024-10-24: wiki.xenproject.org - 2024-10-28: xenbits.xenproject.org Cheers, -- Anthony PERARD

Re: [XEN PATCH v1 3/3] CI: Refresh and upgrade the Fedora container

2024-10-17 Thread Anthony PERARD
to the new naming scheme. > > Signed-off-by: Andrew Cooper > Signed-off-by: Javi Merino Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [XEN PATCH v1 1/3] automation: Fix URL to the gitlab container registry documentation

2024-10-17 Thread Anthony PERARD
-by: Javi Merino The patch description could be removed, so: Reviewed-by: Anthony PERARD Thanks, > --- > automation/build/README.md | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/automation/build/README.md b/automation/build/README.md > index bd0c0e

Re: [PATCH v6 1/5] x86/boot: create a C bundle for 32 bit boot code and use it

2024-10-17 Thread Anthony PERARD
ot; and "offset" to be the other way around, but that's fine. And by the way, -DFINAL cancel changes to GAP and TEXT_DIFF ;-). But overall, the changes looks nice as is, Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v4 2/6] x86/boot: create a C bundle for 32 bit boot code and use it

2024-10-17 Thread Anthony PERARD
On Wed, Oct 16, 2024 at 04:05:00PM +0100, Frediano Ziglio wrote: > On Wed, Oct 16, 2024 at 12:25 PM Anthony PERARD > > wrote: > > On Wed, Oct 16, 2024 at 09:33:32AM +0100, Frediano Ziglio wrote: > > > On Tue, Oct 15, 2024 at 2:51 PM Anthony PERARD > > >

Re: [PATCH v4 2/6] x86/boot: create a C bundle for 32 bit boot code and use it

2024-10-16 Thread Anthony PERARD
On Wed, Oct 16, 2024 at 09:33:32AM +0100, Frediano Ziglio wrote: > On Tue, Oct 15, 2024 at 2:51 PM Anthony PERARD > wrote: > > On Mon, Oct 14, 2024 at 05:32:26PM +0100, Frediano Ziglio wrote: > > > On Mon, Oct 14, 2024 at 4:31 PM Anthony PERARD > > > wrote: >

Re: [PATCH v4 3/6] x86/boot: Reuse code to relocate trampoline

2024-10-15 Thread Anthony PERARD
.o > + > +nocov-y += $(obj32) $(obj64) > +noubsan-y += $(obj32) $(obj64) > +targets += $(obj32) $(obj64) Technically, the change to $(targets) isn't necessary, $(obj-bin-y) should already be added to it. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v4 2/6] x86/boot: create a C bundle for 32 bit boot code and use it

2024-10-15 Thread Anthony PERARD
On Mon, Oct 14, 2024 at 05:32:26PM +0100, Frediano Ziglio wrote: > On Mon, Oct 14, 2024 at 4:31 PM Anthony PERARD > wrote: > > > > On Mon, Oct 14, 2024 at 09:53:28AM +0100, Frediano Ziglio wrote: > > > diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Make

Re: [PATCH v4 2/6] x86/boot: create a C bundle for 32 bit boot code and use it

2024-10-14 Thread Anthony PERARD
his program. If not, see <http://www.gnu.org/licenses/>. > */ > > -ENTRY(_start) > +#ifdef FINAL > +# define GAP 0 > +# define MULT 0 > +# define TEXT_START > +#else > +# define GAP 0x010200 > +# define MULT 1 > +# define TEXT_START 0x408020 > +#endif > +# define DECLARE_IMPORT(name) name = . + (__LINE__ * MULT) Is ^ this a stray space? Overall, it's kind of mostly style comment that I had, so feel free to ignore most of them. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH 2/3] tools/xenstored: remove unneeded libxenguest reference

2024-10-11 Thread Anthony PERARD
On Thu, Oct 10, 2024 at 05:54:58PM +0200, Juergen Gross wrote: > Today the xenstored Makefile contains an unneeded reference to the > not used libxenguest library. > > Remove it. > > Signed-off-by: Juergen Gross Reviewed-by: Anthony PERARD Thanks, -- Anthony Per

Re: [PATCH v2] stubdom: add fine grained library config items to Mini-OS configs

2024-10-10 Thread Anthony PERARD
pull in others, the config files need to be > extended at build time to reflect those indirect library uses. > > Signed-off-by: Juergen Gross > --- > V2: > - rename BUILD_config to GEN_CONFIG (Anthony PERARD) > - rename generated config files to *.gen.cfg (Anthony PERARD) &g

Re: [PATCH] CI: Stop building QEMU in general

2024-10-08 Thread Anthony PERARD
ore a path to a QEMU to use. We don't really have a name space for CI variable, but maybe BUILD_QEMU or BUILD_QEMU_XEN would be less likely to clash with other usages. Otherwise patch looks fine. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] CI: Drop bin86/dev86 from archlinux container

2024-10-07 Thread Anthony PERARD
Reviewed-by: Roger Pau Monné Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH 4/4] stubdom: add fine grained library config items to Mini-OS configs

2024-10-07 Thread Anthony PERARD
quot; is more common for the kind of file that are automatically generated by the build system for it's own use. BTW, in the first prerequisite, $(CURDIR) isn't necessary anymore, it was only to be used in "MINIOS_CONFIG" just below. > + $(BUILD_config) > + > +ioemu-mi

Re: [PATCH 3/4] build: move xenlibs-dependencies make definition to uselibs.mk

2024-10-07 Thread Anthony PERARD
; > Signed-off-by: Juergen Gross Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH 1/4] stubdom: add local .gitignore file

2024-10-07 Thread Anthony PERARD
mmit in its description in the Xen repo. > Signed-off-by: Juergen Gross In any case all looks fine: Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] CI: Fix builds following qemu-xen update

2024-10-04 Thread Anthony PERARD
can fit in build's oneliner, so break it > out into a proper script. > > Signed-off-by: Andrew Cooper The changes on the gitlab side look fine. I don't know if the changes on the cirrus side are ok, but at least the seems to work, after looking at the build logs. So: Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] stubdom: Fix newlib build with GCC-14

2024-10-03 Thread Anthony PERARD
gering -Wstrict-prototypes. > > Link: https://build.opensuse.org/request/show/1178775 > Signed-off-by: Andrew Cooper Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

[XEN PATCH 1/2] blkif: Fix alignment description for discard request

2024-09-26 Thread Anthony PERARD
221f2748e8da ("blkif: reconcile protocol specification with in-use implementations") Signed-off-by: Anthony PERARD --- xen/include/public/io/blkif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h index 9b00d

[XEN PATCH 0/2] blkif: Fix discard req align requirement and various typos

2024-09-26 Thread Anthony PERARD
Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.blkif-wording-fix-v1 Cheers, Anthony PERARD (2): blkif: Fix alignment description for discard request blkif: Fix a couple of typos xen/include/public/io/blkif.h | 6 +++--- 1

[XEN PATCH 2/2] blkif: Fix a couple of typos

2024-09-26 Thread Anthony PERARD
Those where fixed in OVMF's copy. (And one of them fixed in QEMU's copy but later discarded by an update.) Signed-off-by: Anthony PERARD --- xen/include/public/io/blkif.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/public/io/blkif.h b/xen/incl

[PATCH 1/2] include: update Xen public headers io/blkif.h

2024-09-26 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- include/hw/xen/interface/io/blkif.h | 52 + 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/include/hw/xen/interface/io/blkif.h b/include/hw/xen/interface/io/blkif.h index 22f1eef0c0..9b00d633d3 100644 --- a/include

[PATCH 0/2] Xen: Update sector-size handling in block backend

2024-09-26 Thread Anthony PERARD
org/gitweb/?p=xen.git;a=commit;h=221f2748e8dabe8361b8cdfcffbeab9102c4c899 This update the header and the backend. Thanks, Anthony PERARD (2): include: update Xen public headers io/blkif.h hw/block/xen-block: Update sector-size handling hw/block/dataplane/xen-block.c | 31 +

[PATCH 2/2] hw/block/xen-block: Update sector-size handling

2024-09-26 Thread Anthony PERARD
02c4c899 So change QEMU to follow the updated specification. Frontends that exposes "feature-large-sector-size" will most certainly misbehave if "sector-size" is different than 512, so don't even try. (Windows driver is likely to be the only one having impl

Re: [PATCH v3] blkif: reconcile protocol specification with in-use implementations

2024-09-26 Thread Anthony PERARD
hould be aligned to it. See "discard-granularity" and note 4. > */ > struct blkif_request_discard { > uint8_toperation;/* BLKIF_OP_DISCARD */ Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] hw/xen: Remove deadcode

2024-09-17 Thread Anthony PERARD
nused since 2018's > 6d7c06c213 ("Remove broken Xen PV domain builder") > > Remove them. > > Signed-off-by: Dr. David Alan Gilbert Acked-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH v2] blkif: reconcile protocol specification with in-use implementations

2024-09-12 Thread Anthony PERARD
* based despite the logical sector size exposed in 'sector-size'. > > > > * > > > > * physical-sector-size > > > > * Values: > > > > @@ -254,8 +258,8 @@ > > > > * sectors > > > > * Valu

Re: [RFC XEN PATCH v15 4/4] tools: Add new function to do PIRQ (un)map on PVH dom0

2024-09-12 Thread Anthony PERARD
his issue, use the another hypercall > XEN_DOMCTL_gsi_permission to grant the permission of irq( > translate from gsi) to dumU when dom0 has no PIRQs. > > Signed-off-by: Jiqian Chen > Signed-off-by: Huang Rui > Signed-off-by: Chen Jiqian Reviewed-by: Anthony PERARD Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [xen-unstable test] 187507: regressions - FAIL

2024-09-06 Thread Anthony PERARD
be written in leaf makefile (probably for the best). Since there's nothing to install for x86_emulate, it doesn't depends on the "all" rule. So only "osstest" is going to build the tests. Cheers, -- Anthony PERARD

Re: [PATCH] blkif: reconcile protocol specification with in-use implementations

2024-09-04 Thread Anthony PERARD
; xenstore node, see 'Backend > Device > + * Properties' section. > */ > struct blkif_request_segment { Textually (that is without reading it) this comment seems to only apply to `struct blkif_request_segment`. There is an other comment that separate it from `struct blkif_request` (and it is far away from blkif_request_discard and blkif_request_indirect). For `struct blkif_request.sector_number`, the only comment is "start sector idx on disk" but it's really hard to tell how to interpret it, it could be interpreted as a "sector-size" quantity because that the size of a sector on the disk, the underlying storage. So, I think we need to change the comment of `blkif_request.sector_number`. Another thing, there's a "type" `blkif_sector_t` defined at the beginning of the file, would it be worth it to add a description to it? Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [PATCH] blkif: reconcile protocol specification with in-use implementations

2024-09-04 Thread Anthony PERARD
ader have a different definition for "sectors" ... Well, the specification doesn't match with the specification ... and the only possible way to implement the specification is to only ever set "sector-size" to 512... No wonder that they are so many different interpretation of the protocol. Cheers, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech

Re: [RFC XEN PATCH v14 5/5] tools: Add new function to do PIRQ (un)map on PVH dom0

2024-09-03 Thread Anthony PERARD
q_gsi(CTX->xch, domid, gsi, &pirq); > +if (r < 0) { > +LOGED(ERROR, domid, "xc_physdev_map_pirq_gsi gsi=%d ret=%d", gsi, r); `r` should be -1, I don't think loggin it is useful.. > +return ERROR_FAIL; > +} > + > +r = xc_domain_g

  1   2   3   4   5   6   7   8   9   10   >