Re: [PATCH v2] x86/hvm: don't expose XENFEAT_hvm_pirqs by default

2024-01-12 Thread Anthony PERARD
n reported local > APIC > hardware virtualization active. > > Link: https://github.com/QubesOS/qubes-issues/issues/7971 > Signed-off-by: Roger Pau Monné Should we have an entry in the changelog about this patch? With the patch, we will need to regenerate the golang binding, at least o

Re: [PATCH] tools/xg: Reserialise CPU policies with the allocated number of leaves.

2023-12-20 Thread Anthony PERARD
(a) avoid probing Xen > for sizes, and (b) trivially have knowledge of the actual size of the > buffer. > > While at it, fix xc_cpu_policy_destroy() to preserve errno accross free() > > Signed-off-by: Alejandro Vallejo Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 1/7] tools/xenguest: Dynamically allocate xc_cpu_policy_t contents

2023-12-20 Thread Anthony PERARD
->leaves.buf ) > +free(policy->leaves.buf); > +if ( policy->msrs.buf ) > +free(policy->msrs.buf); FYI: free() already check for NULL, so the extra if() is unnecessary. Otherwise, patch looks fine: Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH V8 00/12] fix migration of suspended runstate

2023-12-20 Thread Anthony PERARD
It works fine for me. Thanks, -- Anthony PERARD

Re: [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build

2023-12-13 Thread Anthony PERARD
On Tue, Dec 12, 2023 at 12:00:12PM +0100, Roger Pau Monné wrote: > On Fri, Dec 08, 2023 at 04:02:23PM +0000, Anthony PERARD wrote: > > CONFIG_X86_GENERIC=y and fixes around arch specific config values. > > > > Thanks, > > > > Anthony PERARD (3): &

Re: [PATCH] tools/libs/evtchn: fix locking in Mini-OS

2023-12-13 Thread Anthony PERARD
s/184123/ > test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsmpass > test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm pass So overall, patch looks fine to me: Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] fix qemu build with xen-4.18.0

2023-12-12 Thread Anthony PERARD
On Tue, Dec 12, 2023 at 03:35:50PM +, Volodymyr Babchuk wrote: > Hi Anthony > > Anthony PERARD writes: > > > On Fri, Dec 08, 2023 at 02:49:27PM -0800, Stefano Stabellini wrote: > >> On Fri, 8 Dec 2023, Daniel P. Berrangé wrote: > >> > On Thu, Dec 07,

Re: [RFC PATCH v4 4/6] xen: add option to disable legacy backends

2023-12-12 Thread Anthony PERARD
nds them self, as seen by a guest aren't going to change, and are not legacy. Also, a few month ago, "qnic" would have been part of the list. Maybe a description like "Xen backends based on legacy support" might be more appropriate. I'm not sure listing the different backend in the description is a good idea, as we will have to remember to change it whenever one of those backend is been upgraded. Cheers, -- Anthony PERARD

Re: [PATCH] fix qemu build with xen-4.18.0

2023-12-12 Thread Anthony PERARD
pass I think. Building qemu with something like: ./configure --enable-xen --cpu=x86_64 used to work. Can we fix that? It still works with v8.1.0. At least, it works on x86, I never really try to build qemu for arm. Notice that there's no "--target-list" on the configure command line. I don't know if --cpu is useful here. Looks like the first commit where the build doesn't work is 7899f6589b78 ("xen_arm: Add virtual PCIe host bridge support"). Could we get that fixed? I'm sure distribution will appreciate to be able to build a single qemu package for xen and other, rather than having a dedicated qemu-xen package. Cheers, -- Anthony PERARD

Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs.

2023-12-12 Thread Anthony PERARD
On Tue, Dec 12, 2023 at 09:48:46AM +0100, Juergen Gross wrote: > On 12.12.23 09:38, Roger Pau Monné wrote: > > On Fri, Dec 08, 2023 at 04:02:25PM +, Anthony PERARD wrote: > > > This is following a failure to build "arch/x86/xen/enlighten.c" in > >

Re: [PATCH] tools/pygrub: Drop compatibility symlink

2023-12-11 Thread Anthony PERARD
pygrub is deprecated") So, I don't think more than that is needed. At least, now they would also get an error saying /usr/bin/pygrub wasn't found, I think. Cheers, -- Anthony PERARD

Re: [PATCH] tools/pygrub: Drop compatibility symlink

2023-12-11 Thread Anthony PERARD
ate things. > Take it out fully now, 11 years later. > > Signed-off-by: Andrew Cooper Beside the commit message that could call for a better commit, patch looks good: Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 5/5] tools/xenstored: remove "-N" command line option

2023-12-08 Thread Anthony PERARD
t, I'm pretty sure that can be done with an hand-crafted "systemd.service" file. One probably need to have something like "OOMPolicy=" or "OOMScoreAdjust=" in their service file, and start the `xenstored` daemon of their choice directly, even with -N as systemd can detect when the daemon is ready because we use sd_notify() (at least in cxenstored). So, I think we should keep -N. Cheers, -- Anthony PERARD

[OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs.

2023-12-08 Thread Anthony PERARD
This is following a failure to build "arch/x86/xen/enlighten.c" in build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") in linux-linus branch. Suggested-by: Juergen Gross Signed-off-by: Anthony PER

[OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build

2023-12-08 Thread Anthony PERARD
CONFIG_X86_GENERIC=y and fixes around arch specific config values. Thanks, Anthony PERARD (3): create_build_jobs: Set reset pvops_kconfig_overrides create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. ts-kernel-build: Remove use of $XEN_TARGET_ARCH mfi-common | 12

[OSSTEST PATCH 3/3] ts-kernel-build: Remove use of $XEN_TARGET_ARCH

2023-12-08 Thread Anthony PERARD
osstest doesn't set $XEN_TARGET_ARCH, and this is a Xen build variable, not a Linux build one. So, this code have been running with an empty $XEN_TARGET_ARCH for a while which mean none of those `setopt` has run in a while. Signed-off-by: Anthony PERARD --- ts-kernel-build | 13 - 1

[OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides

2023-12-08 Thread Anthony PERARD
by setting default values for the variables before the `case` command. This changes Linux arm64 builds which will not have "CONFIG_EXT4_FS=y" anymore, but should get "CONFIG_EXT4_FS=m" instead from `ts-kernel-build`. But resulting build still have "CONFIG_EXT4_FS=y", so no

Re: [PATCH] OSStest: use CONFIG_X86_GENERIC for 32-bit x86 kernel

2023-12-08 Thread Anthony PERARD
+ setopt CONFIG_X86_GENERIC y It would be nice if that was working, but XEN_TARGET_ARCH is never set, so the change isn't going to work. I'm preparing patches to set X86_GENERIC on i386 builds, and fixing some issues. Thanks, -- Anthony PERARD

Re: [PATCH v2 0/5] tools/xenstored: remove some command line options

2023-12-08 Thread Anthony PERARD
nstored: remove the "-R" command line option > tools/xenstored: remove "-N" command line option Should we have en entry in the changelog about all these removals? Who knows if they are used by someone or not... Thanks, -- Anthony PERARD

Re: [PATCH v4 2/6] xen: backends: don't overwrite XenStore nodes created by toolstack

2023-12-06 Thread Anthony PERARD
an x86 hvm guest with qdisk. Error from guest kernel: "2 reading backend fields at /local/domain/0/backend/qdisk/23/768" It seems that "sector-size" is missing for the disk. Thanks, -- Anthony PERARD

Re: [PATCH] Only compile the hypervisor with -Wdeclaration-after-statement

2023-12-06 Thread Anthony PERARD
> > Also remove the -Wno-declaration-after-statement in some subdirectory > as the flag is now unnecessary. > > Part of the commit message was take from Alexander's first proposal: > > Link: > https://lore.kernel.org/xen-devel/20231128174729.3880113-1-a...@linutronix.de/ &

Re: [linux-linus test] 183981: regressions - FAIL

2023-12-04 Thread Anthony PERARD
ssor for the kernel. > > We should do a 32-bit build using a more recent processor model. That's Linux doing, that's the default model. osstest doesn't change it or select anything in particular. Cheers, -- Anthony PERARD

Re: [PATCH] tools/xg: Fix potential memory leak in cpu policy getters/setters

2023-11-30 Thread Anthony PERARD
Signed-off-by: Alejandro Vallejo Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] Config.mk: drop -Wdeclaration-after-statement

2023-11-29 Thread Anthony PERARD
akefile I hope. > Anthony/Juergen, do you have any concern if the tools are built without > -Wdeclaration-after-statement? I don't, and as you said, there's already quite a few -Wno-declaration-after-statement. It can be nice to add a new variable in the middle of a function, it's like creating a new scope without adding extra indentation (if we wanted a new scope, we would need {} thus the intend). Cheers, -- Anthony PERARD

[OSSTEST PATCH] preseed_base: Remove reportbug-gtk if present

2023-11-27 Thread Anthony PERARD
packages have unmet dependencies: > dconf-service : Depends: default-dbus-session-bus or > dbus-session-bus So, remove that new package and its dependencies before moving on. While here, add `set -x` to help debugging. Signed-off-by: Anthony PERARD --- Note

Re: xen | Failed pipeline for staging-4.17 | 28f44b60

2023-11-17 Thread Anthony PERARD
On Wed, Nov 15, 2023 at 03:04:59PM +, Anthony PERARD wrote: > On Wed, Nov 15, 2023 at 11:11:30AM +0100, Jan Beulich wrote: > > On 14.11.2023 21:26, GitLab wrote: > > > Pipeline #1072370735 ( > > > https://gitlab.com/xen-project/xen/-/pipelines/1072370735 ) trigge

Re: xen | Failed pipeline for staging-4.17 | 28f44b60

2023-11-15 Thread Anthony PERARD
nsuse-leap-gcc-debug > > Here it's unclear, as the log referenced ends too early. I had to log into the runner to find out, because no artifact as been uploaded to gitlab (which would have a more complete log). Turns out that this runner also got into a "no space left" situation. This time, runner is "gitlab-docker-swift". Cheers, -- Anthony PERARD

Re: [PATCH] automation: set architecture in docker files

2023-11-14 Thread Anthony PERARD
One thing I've notice when using --platform is that, if for example I use the container "--platform=linux/amd64 alpine:3" then "--platform=linux/arm/v6 alpine:3"; later when I only specify "alpine:3", it's going to be the armv6, and I think docker is going to complain if I try tu use "--platform=linux/amd64 alpine:3" without "docker pull" first (or I guess docker build --pull). Hope that help. So I guess using containers "amd64/*" or "arm64v8/*" is fine, but sometime will need to use "--platform=*". Cheers, -- Anthony PERARD

Re: [XEN PATCH] CI: Rework RISCV smoke test

2023-11-13 Thread Anthony PERARD
On Thu, Nov 09, 2023 at 04:52:36PM +, Andrew Cooper wrote: > On 09/11/2023 3:49 pm, Anthony PERARD wrote: > > Currently, the test rely on QEMU and Xen finishing the boot in under > > two seconds. That's both very long and very short. Xen usually managed > > to print "

Re: [XEN PATCH] CI: Rework RISCV smoke test

2023-11-13 Thread Anthony PERARD
st a different kind of language than shell is? Also, `grep -q` doesn't wait for EOF, and just exit as soon as it found the pattern. Cheers, -- Anthony PERARD

Re: [PATCH v2] tools: Remove all DECLARE_* op macros in xc

2023-11-09 Thread Anthony PERARD
versions. > > The patch also removes PHYSDEV_OP from there, as that seems to be an old > dead macro. > > Signed-off-by: Alejandro Vallejo Reviewed-by: Anthony PERARD Thanks. Next step, reword some of those to read something like: struct xen_sysctl sysctl = { .cmd

[XEN PATCH] CI: Rework RISCV smoke test

2023-11-09 Thread Anthony PERARD
both `tail` will simply exit, resulting in a failure. If the line we are looking for is never printed, the `timeout` on the second `tail` will force the test to exit with an error. Signed-off-by: Anthony PERARD --- Notes: The "machine might be busy" bits refere to having a gitlab-ru

Re: [PATCH v3 5/5] [FUTURE] xen/arm: enable vPCI for domUs

2023-10-23 Thread Anthony PERARD
oes the both depends on each other, somehow? Is guest creation going to fails if we set XEN_DOMCTL_CONFIG_PCI_VPCI without HAS_VPCI_GUEST_SUPPORT ? Is the guest is going to fail to run, or fail at creation if the hypervisor HAS_VPCI_GUEST_SUPPORT, but we didn't set XEN_DOMCTL_CONFIG_PCI_VPCI? Thanks, -- Anthony PERARD

Re: [PATCH] tools/xendomains: Only save/restore/migrate if supported by xenlight

2023-10-23 Thread Anthony PERARD
-1-anthony.per...@citrix.com/ But looks like I need to update the patch. I think it's a bit late for 3.18, but I should be able to update the patch for next release. Cheers, -- Anthony PERARD

Re: [PATCH for-4.18] CI: (More) Always pull base image when building a container

2023-10-19 Thread Anthony PERARD
.18. This is CI infrastructure, not part of the regular build. Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH for-4.18 5/5] xenalyze: Reduce warnings about leaving a vcpu in INIT

2023-10-16 Thread Anthony PERARD
> Signed-off-by: George Dunlap Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH for-4.18 4/5] xenalyze: Fix interrupt EIP reporting

2023-10-16 Thread Anthony PERARD
on. This results > in output that looks like this: > > ``` >89d29656 :2 1.21% >89d298b6 :1 0.61% >89d298c0 : 1 0.61% > ``` > > Signed-off-by: George Dunlap Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH for-4.18 3/5] xenalyze: Don't expect an HVM_HANDLER trace for PAUSE vmexits

2023-10-16 Thread Anthony PERARD
On Mon, Oct 09, 2023 at 01:51:35PM +0100, George Dunlap wrote: > Neither vmx nor svm trace anything, nor is there anything obvious > worth tracing. > > Signed-off-by: George Dunlap Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH for-4.18 1/5] xenalyze: Only accumulate data from one vmexit without a handler

2023-10-16 Thread Anthony PERARD
ontinue to stuff data about all exits > into that one exit, even though we only show it in one place. > > Instead, refator things to only allow a single exit reason to be > accumulated into any given event. > > Also put a comment explaining what's going on, and how to fix it. >

Re: [PATCH for-4.18 2/5] xenalyze: AMD's VMEXIT_VINTR doesn't need a trace record

2023-10-16 Thread Anthony PERARD
On Mon, Oct 09, 2023 at 01:51:34PM +0100, George Dunlap wrote: > Just like Intel's PENDING_VIRT_INTR, AMD's VINTR doesn't need an HVM > trace record. Expect that. > > Signed-off-by: George Dunlap Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

[XEN PATCH] get_maintainer: Add THE REST for sections with reviewers only

2023-10-06 Thread Anthony PERARD
emails. Signed-off-by: Anthony PERARD --- Notes: Soon, the RISCV section might be the first (I think) section without maintainer and without been nested in another section other than THE REST. Tests by checking that the following comnands returns the expected emails

Re: [XEN PATCH v2 2/3] docs: make the docs for MISRA C:2012 Dir 4.1 visible to ECLAIR

2023-09-27 Thread Anthony PERARD
mment to the makefile > - printf instead of echo Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH for-4.18 v2] tools/light: Revoke permissions when a PCI detach for HVM domain

2023-09-18 Thread Anthony PERARD
e to revoke in pci_remove_detached() > * Add a comment on top of the PIRQ unbind error path > * Use goto to deal with errors. Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] OvmfPkg/OvmfXen: Fix S3

2023-09-11 Thread Anthony PERARD
of QEMU do you use, which work with this patch? What toolstack do you use to boot a guest? Thanks, -- Anthony PERARD

Re: [PATCH 2/2] tools/light: Revoke permissions when a PCI detach for HVM domain

2023-09-11 Thread Anthony PERARD
On Thu, Aug 24, 2023 at 06:27:12PM +0100, Julien Grall wrote: > On 24/08/2023 17:58, Anthony PERARD wrote: > > On Thu, Aug 24, 2023 at 05:46:45PM +0100, Julien Grall wrote: > > > On 24/08/2023 17:34, Anthony PERARD wrote: > > > > On Thu, Aug 24, 2023 at 12:15:

Re: [PATCH 6/7] block: Clean up local variable shadowing

2023-09-11 Thread Anthony PERARD
gt;type == XEN_BLOCK_VDEV_TYPE_HD) ? >"hd" : >"sd", > - name, vdev->partition); > -g_free(name); > + vbd_name, vdev->partition); > + g_free(vbd_name); > break; > } > default: Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] tools/misc/xencov_split: Add python 3 compatibility

2023-09-11 Thread Anthony PERARD
!/usr/bin/env python3 Beside this shebang change, the patch looks good. With the shebang change reverted: Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [XEN PATCH 2/3] docs: make the docs for MISRA C:2012 Dir 4.1 visible to ECLAIR

2023-09-08 Thread Anthony PERARD
hell used or the echo binary used, the "\n" would write a or justs "\n". Bash just write "\n" for example, while dash does write a . But, you can use `printf` instead: printf "/*\n\n" > $@.tmp > + sed -e 's|\*/|*//*|g' $< >> $@.tmp > + echo "\n*/" >> $@.tmp Same here. Thanks, -- Anthony PERARD

Re: [PATCH v2] tests/vpci: install test

2023-09-07 Thread Anthony PERARD
Also, there's another change needed as we've got this error: vpci.c:344:29: error: ‘dom_xen’ undeclared (first use in this function) 344 | pdev = pci_get_pdev(dom_xen, sbdf); Otherwise, patch looks fine to me. Thanks, -- Anthony PERARD

Re: [PATCH v6 1/2] xen: asm-generic support

2023-09-07 Thread Anthony PERARD
ed to say "$(src)/Makefile" now instead of Kbuild. Beside this, patch looks fine to me: Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v3] MAINTAINERS: generalize vm-event/monitor entry

2023-09-07 Thread Anthony PERARD
ich > --- > v3: Unfold, for F: not being handled as originally expected. Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v4 1/2] xen: asm-generic support

2023-09-06 Thread Anthony PERARD
re around the rule for $(TARGET), maybe just after the rule "_distclean". Cheers, -- Anthony PERARD

Re: [PATCH v4 1/2] xen: asm-generic support

2023-09-06 Thread Anthony PERARD
r is calling "Makefile.asm-generic", or "Rules.mk" is other cases. In this patch, you can see $(obj) been set in "xen/Makefile": $(MAKE) -f $(srctree)/scripts/Makefile.asm-generic obj=arch/$(SRCARCH)/include/generated/asm Another thing to know, `make` runs from the build directory, so in Oleksii second case, `make` is running in "xen/xen_build", so $(obj) point to a directory within the build directory. For the CFLAGS, we can use $(objtree) (even if it is just "."), which always point to the top directory of the build tree. I hope that clarifies things. Cheers, -- Anthony PERARD

Re: [PATCH v4 1/2] xen: asm-generic support

2023-09-06 Thread Anthony PERARD
"$(unwanted)" variable, which is used to remove old wrapper when an header is removed from "generic-y". But instead of the "-include $(kbuild-file)", could you include "$(src)/Makefile" instead like we do in "Rules.mk"? We don't have $(kbuild-file) ma

Re: [PATCH v2] MAINTAINERS: consolidate vm-event/monitor entry

2023-09-06 Thread Anthony PERARD
On Wed, Sep 06, 2023 at 02:50:22PM +0200, Jan Beulich wrote: > On 06.09.2023 14:40, Anthony PERARD wrote: > > On Thu, Aug 31, 2023 at 08:15:13AM +0200, Jan Beulich wrote: > >> If the F: description is to be trusted, the two xen/arch/x86/hvm/ > >> lines were fully

Re: [PATCH v2] MAINTAINERS: consolidate vm-event/monitor entry

2023-09-06 Thread Anthony PERARD
MEMORY MANAGEMENT - X86 ARCHITECTURE (see ./scripts/get_maintainer.pl --sections -f xen/arch/x86/mm/mem_access.c) Also, now "xen/include/xen/monitor.h" is only "THE REST". On the other hand, there's no change for "xen/common/monitor.c", so the pattern works for this particular file. Cheers, -- Anthony PERARD

Re: [PATCH] tools/xl: Guard main_dt_overlay() with LIBXL_HAVE_DT_OVERLAY

2023-09-06 Thread Anthony PERARD
gt; overlay support") > Reported-by: Jan Beulich > Signed-off-by: Michal Orzel Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 2/2] tools/light: Revoke permissions when a PCI detach for HVM domain

2023-08-24 Thread Anthony PERARD
On Thu, Aug 24, 2023 at 05:46:45PM +0100, Julien Grall wrote: > Hi Anthony, > > On 24/08/2023 17:34, Anthony PERARD wrote: > > On Thu, Aug 24, 2023 at 12:15:39PM +0100, Julien Grall wrote: > > > On 18/08/2023 18:04, Anthony PERARD wrote: > > > > So, this new pc

Re: [PATCH 2/2] tools/light: Revoke permissions when a PCI detach for HVM domain

2023-08-24 Thread Anthony PERARD
On Thu, Aug 24, 2023 at 12:15:39PM +0100, Julien Grall wrote: > On 18/08/2023 18:04, Anthony PERARD wrote: > > So, this new pci_revoke_permissions() function been place before > > do_pci_remove() will make it harder to follow what do_pci_remove() does. > > Does it need to b

Re: [XEN PATCH] CI: Always move the bisect build log back

2023-08-24 Thread Anthony PERARD
On Thu, Aug 24, 2023 at 10:51:20AM +0100, Andrew Cooper wrote: > On 24/08/2023 9:52 am, Anthony PERARD wrote: > > On Wed, Aug 23, 2023 at 07:05:56PM +0100, Andrew Cooper wrote: > >> On 23/08/2023 4:23 pm, Anthony PERARD wrote: > >>> On failure of "build&qu

Re: [XEN PATCH] CI: Always move the bisect build log back

2023-08-24 Thread Anthony PERARD
On Wed, Aug 23, 2023 at 07:05:56PM +0100, Andrew Cooper wrote: > On 23/08/2023 4:23 pm, Anthony PERARD wrote: > > On failure of "build"-each-commit script, the next command that move > > the log back into the build directory isn't executed. Fix that by > > using

[XEN PATCH] CI: Always move the bisect build log back

2023-08-23 Thread Anthony PERARD
On failure of "build"-each-commit script, the next command that move the log back into the build directory isn't executed. Fix that by using "after_script" which is always executed even if the main "script" fails. (We would still miss the log when the jobs times

Re: [PATCH] stubdom: remove openssl related clean actions

2023-08-23 Thread Anthony PERARD
ever downloaded or created during build, > the related actions can be dropped. > > Fixes: bdd516dc6b2f ("vtpm/vtpmmgr and required libs to stubdom/Makefile") > Signed-off-by: Juergen Gross Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] libxl/CPUID: drop two more feature flag table entries

2023-08-23 Thread Anthony PERARD
On Wed, Aug 23, 2023 at 09:21:26AM +0200, Jan Beulich wrote: > Two entries were left in place by d638fe233cb3 ("libxl: use the cpuid > feature names from cpufeatureset.h"), despite matching the generated > names. > > Signed-off-by: Jan Beulich Acked-by: Anthony PERARD

Re: [xen-4.17-testing test] 182423: regressions - FAIL

2023-08-23 Thread Anthony PERARD
tant (2023-08-22 18:12:34) > when the failures were detected in all three cases. It was the same machine used for all builds, godello0. I don't know what happened to the machine, osstest rebooted it to gather log, but nothing useful in it. Cheers, -- Anthony PERARD

Re: [RFC PATCH 2/3] docs: make the docs for MISRA C:2012 Dir 4.1 visible to ECLAIR

2023-08-22 Thread Anthony PERARD
going to write a C file in this directory, run `make clean` and lost their source. Or, copy this makefile somewhere else. Would it be ok to just spell out all the .c files that are expected to be generated by this makefile? Cheers, -- Anthony PERARD

Re: [RFC PATCH 2/3] docs: make the docs for MISRA C:2012 Dir 4.1 visible to ECLAIR

2023-08-22 Thread Anthony PERARD
gt; few uses, but then likely not merely to combine multiple commands' > output.) Maybe using `{ } > out` might be better that using `( ) > out`. I think it would result in one less fork of the shell, without changing the resulting file, so always good to take. You should add also `set -e` at the beginning, to take care of the `sed` command failing. Or just use a temporary file. -- Anthony PERARD

Re: [PATCH v3 1/5] build: make cc-option properly deal with unrecognized sub-options

2023-08-22 Thread Anthony PERARD
On Wed, Aug 16, 2023 at 08:06:52AM +0200, Jan Beulich wrote: > On 11.08.2023 15:48, Anthony PERARD wrote: > > But isn't it doing doing pattern matching on an error message going to > > lead sometime to false positive? Linux's build system seems to works > > fine by just

Re: [XEN][PATCH v9 17/19] tools/libs/ctrl: Implement new xc interfaces for dt overlay

2023-08-21 Thread Anthony PERARD
his patch at [1], there's been no reply and the patch hasn't changed. [1] https://lore.kernel.org/xen-devel/9975f41c-c149-445a-8122-c15cfe5511b0@perard/ Did this fell through the cracks? Cheers, -- Anthony PERARD

Re: [PATCH v6] tools/xenstore: move xenstored sources into dedicated directory

2023-08-21 Thread Anthony PERARD
+ b/tools/xs-clients/Makefile I'm tempted to ask for the targets "clients-install" and "clients-uninstall" to be removed from this makefile. Nothing is calling them in our build system and something outside the git tree that rely on that would need to be adjusted to the new directory. But maybe that can be done in a followup patch as it would help with reverting it if the targets are actually useful. In any case, the patch is already good: Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 1/2] tools/libs: light: Remove the variable 'domainid' do_pci_remove()

2023-08-18 Thread Anthony PERARD
gt; the two confusing names within the same function. They are left > unchanged for now. > > No functional changes intented. > > Signed-off-by: Julien Grall Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 2/2] tools/light: Revoke permissions when a PCI detach for HVM domain

2023-08-18 Thread Anthony PERARD
= 0; > + > out_fail: > pci_remove_detached(egc, prs, rc); /* must be last */ > } > @@ -2242,6 +2258,8 @@ static void pci_remove_detached(libxl__egc *egc, > if (rc && !prs->force) > goto out; > > +pci_revoke_permissions(egc, prs); > + > isstubdom = libxl_is_stubdom(CTX, domid, ); > > /* don't do multiple resets while some functions are still passed > through */ Thanks, -- Anthony PERARD

[XTF PATCH] xtf-runner: python3 fix

2023-08-17 Thread Anthony PERARD
file, so line should be a `str`. `universal_newlines` is available on python 2.7. A new alias `text` is only available in python 3.7. Signed-off-by: Anthony PERARD --- Notes: I've only tested the patch on Debian Bookworm, with python-is-python3 package (python symlink) as osste

Re: [PATCH] libxl: slightly correct JSON generation of CPU policy

2023-08-15 Thread Anthony PERARD
On Tue, Aug 15, 2023 at 04:44:57PM +0200, Jan Beulich wrote: > On 15.08.2023 16:28, Andrew Cooper wrote: > > On 15/08/2023 3:26 pm, Anthony PERARD wrote: > >> On Tue, Aug 15, 2023 at 02:35:55PM +0200, Jan Beulich wrote: > >>> The "cpuid_empty" label is al

Re: [PATCH] libxl: slightly correct JSON generation of CPU policy

2023-08-15 Thread Anthony PERARD
ecb747b ("libxl: introduce MSR data in libxl_cpuid_policy") > Signed-off-by: Jan Beulich Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v4 18/19] tools/config: add XEN_RUN_STORED to config.h

2023-08-14 Thread Anthony PERARD
bably remove XEN_RUN_STORED from "config/Paths.mk.in". In any case, patch looks fine: Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v3 3/5] x86: allow Kconfig control over psABI level

2023-08-11 Thread Anthony PERARD
ething after the fact. So we can end up with a build of Xen with an embedded .config which says X86_64_V3 where in fact it's only a build with the baseline ABI. Can't we just fail the build right here instead? I don't see any need to let Kconfig know if the compiler can do x86-64-vX or not, besi

Re: [PATCH] build: correct gas --noexecstack check

2023-08-11 Thread Anthony PERARD
ut executable stacks") > Signed-off-by: Jan Beulich Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v3 1/5] build: make cc-option properly deal with unrecognized sub-options

2023-08-11 Thread Anthony PERARD
he exit value. They've got a few trick to deal with -Wno-* and with clang. For -Wno-$(warning), they test -W$(warning) instead. For clang, they've enable additional warnings: -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument In any case, the patch is fine. Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 3/3] tools/xl: reject bootloader=pygrub in case pygrub is disabled

2023-08-08 Thread Anthony PERARD
out this patch, but I guess we kind of expect pygrub to be built at the same time as `xl'. And it still allow to use "pygrub" if one specify the full path to it. So, Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 2/3] tools: add configure option for libfsimage

2023-08-08 Thread Anthony PERARD
ge. The default is > on if pygrub is being built, and off if it isn't. Without pygrub the > build of libfsimage can be enabled via --enable-libfsimage. > > Signed-off-by: Juergen Gross Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 1/3] tools: add configure option for disabling pygrub

2023-08-08 Thread Anthony PERARD
to use pygrub is thus a step towards a reduction of attack surface. > > Default is still to build and install pygrub. > > Signed-off-by: Juergen Gross Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 2/2] tools: add configure option for libfsimage

2023-08-08 Thread Anthony PERARD
+]) > +AS_IF([test "x$enable_libfsimage" = "xyes"], [libfsimage=y], [libfsimage=n]) > +AC_SUBST(libfsimage) > + Should we issue an error if one does "--disable-libfsimage --enable-pygrub" ? Or just let the build of pygrub fails? Also, "--disable-libfsimage" alone will keep "pygrub" enabled, so we should probably check. Thanks, -- Anthony PERARD

Re: [PATCH 1/2] tools: add configure option for disabling pygrub

2023-08-08 Thread Anthony PERARD
> to use pygrub is thus a step towards more security. > > Default is still to build and install pygrub. > > Signed-off-by: Juergen Gross Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH] libxenstat/Linux: pass nul-terminated string to strpbrk()

2023-08-08 Thread Anthony PERARD
the later fields. I think the author of the comment meant that they couldn't create a regex that locate the interface name, and instead used strpbrk(). But if the comment is confusing, it's not helpful. > Signed-off-by: Jan Beulich Acked-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v8 11/15] xenpm: Print HWP/CPPC parameters

2023-08-08 Thread Anthony PERARD
t; to "if ( hwp )" and re-org code. > Use %PRIu32 instead of %u - this lengthens some strings past 80 chars Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v8 04/15] xen/sysctl: Nest cpufreq scaling options

2023-08-08 Thread Anthony PERARD
of(typeof(*sys_para), u.cppc_para)); > +BUILD_BUG_ON(offsetof(typeof(*user_para), turbo_enabled) != > + offsetof(typeof(*sys_para), turbo_enabled)); These could have been done by defining a temporary macro to avoid repeating the fields name twice, but this sanity check is good and should prevent anyone from changing one struct without changing the other one. Thanks. Reviewed-by: Anthony PERARD Cheers, -- Anthony PERARD

[XEN PATCH] libxl: Use XEN_LIB_DIR to store bootloader from pygrub

2023-08-07 Thread Anthony PERARD
and ramdisk on this jobs is now about 42MB, so not enough space in /var/run. So, to avoid writing a big binairy in ramfs, we will use /var/lib instead, like we already do when saving the device model state on migration. Reported-by: Jan Beulich Signed-off-by: Anthony PERARD --- tools/libs/light

Re: [XEN PATCH v11 14/14] docs: add Arm FF-A mediator

2023-07-31 Thread Anthony PERARD
wed-by: Henry Wang Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [XEN PATCH v11 13/14] tools: add Arm FF-A mediator

2023-07-31 Thread Anthony PERARD
On Mon, Jul 31, 2023 at 02:15:35PM +0200, Jens Wiklander wrote: > Adds a new "ffa" value to the Enumeration "tee_type" to indicate if a > guest is trusted to use FF-A. > > Signed-off-by: Jens Wiklander > Reviewed-by: Bertrand Marquis > Reviewed-by: Henry Wa

Re: [PATCH v7 04/15] xen/sysctl: Nest cpufreq scaling options

2023-07-31 Thread Anthony PERARD
On Thu, Jul 27, 2023 at 11:05:33AM -0400, Jason Andryuk wrote: > On Thu, Jul 27, 2023 at 6:27 AM Anthony PERARD > wrote: > > > > On Wed, Jul 26, 2023 at 01:09:34PM -0400, Jason Andryuk wrote: > > > Add a union and struct so that most of the scaling variables of struct

Re: [PATCH v6 2/2] xl: Add escape character argument to xl console

2023-07-28 Thread Anthony PERARD
fd, escape > +NULL, // list terminator - do not use So, you are going back and forth between C and C++ comment style, any reason? The preferred style is '/* comment */' so previous patch was better in that regards. With the comment style fixed: Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v7 08/15] xenpm: Change get-cpufreq-para output for hwp

2023-07-27 Thread Anthony PERARD
On Thu, Jul 27, 2023 at 12:00:54PM +0100, Anthony PERARD wrote: > On Wed, Jul 26, 2023 at 01:09:38PM -0400, Jason Andryuk wrote: > > diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c > > index 1c474c3b59..21c93386de 100644 > > --- a/tools/misc/xenpm.c > > +++ b/tools

Re: [PATCH v7 11/15] xenpm: Print HWP/CPPC parameters

2023-07-27 Thread Anthony PERARD
On Thu, Jul 27, 2023 at 09:54:17AM -0400, Jason Andryuk wrote: > On Thu, Jul 27, 2023 at 7:32 AM Anthony PERARD > wrote: > > > > On Wed, Jul 26, 2023 at 01:09:41PM -0400, Jason Andryuk wrote: > > > @@ -772,6 +812,32 @@ static void print_cpufreq_para(int cpuid, struct

[XEN PATCH v3 2/2] Config.mk: evaluate XEN_COMPILE_ARCH and XEN_OS immediately

2023-07-27 Thread Anthony PERARD
will replace ?= by an equivalent but with immediate expansion. Reported-by: Jason Andryuk Signed-off-by: Anthony PERARD --- Notes: v3: - replace evaluation on first use construct by immediate expansion which isn't likely to break and is clearer. Config.mk | 8 ++-- 1 file changed, 6

[XEN PATCH v3 1/2] build: evaluate XEN_BUILD_* and XEN_DOMAIN immediately

2023-07-27 Thread Anthony PERARD
function So to avoid having these command been run more than necessary, we will replace ?= by an equivalent but with immediate expansion. Reported-by: Jason Andryuk Signed-off-by: Anthony PERARD --- Notes: v3: - replace evaluation on first use construct by immediate expansion which

[XEN PATCH v3 0/2] build: reduce number of $(shell) execution on make 4.4

2023-07-27 Thread Anthony PERARD
e-effects (such as the info or eval or similar > functions) then these side-effects will be seen every time a command is > invoked. The issue was reported on IRC by jandryuk. So, I've locate a few obvious candidate to fix, maybe there's more $(shell) to change? Anthony PERARD

Re: [PATCH] libxl: Add missing libxl__virtio_devtype to device_type_tbl array

2023-07-27 Thread Anthony PERARD
On Thu, Jul 27, 2023 at 10:38:03AM +, Oleksandr Tyshchenko wrote: > > > On 27.07.23 12:50, Anthony PERARD wrote: > > Hello Anthony > > > On Wed, Jul 26, 2023 at 05:14:59PM +0300, Oleksandr Tyshchenko wrote: > >> From: Oleksandr Tyshchenko > >&

Re: [PATCH v7 14/15] xenpm: Add set-cpufreq-cppc subcommand

2023-07-27 Thread Anthony PERARD
param:val arguments as explained in the usage description. > > Parameter names are just checked to the first 3 characters to shorten > typing. > > Some options are hardware dependent, and ranges can be found in > get-cpufreq-para. > > Signed-off-by: Jason Andryuk > Ac

Re: [PATCH v7 11/15] xenpm: Print HWP/CPPC parameters

2023-07-27 Thread Anthony PERARD
>lowest_nonlinear); All these %u should be %"PRIu32", right? Even if the rest of the function is bogus... and even if it's probably be a while before %PRIu32 is different from %u. Thanks, -- Anthony PERARD

<    1   2   3   4   5   6   7   8   9   10   >