Re: [PATCH 2/2] xen/gnttab: reduce size of struct active_grant_entry

2022-09-12 Thread Jan Beulich
On 12.09.2022 07:53, Juergen Gross wrote: > The size of struct active_grant_entry for 64-bit builds is 40 or 48 > bytes today (with or without NDEBUG). ... and leaving aside DEBUG_LOCKS / DEBUG_LOCK_PROFILE. > It can easily be reduced by 8 bytes by replacing the trans_domain > pointer with the do

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Jan Beulich
On 12.09.2022 07:53, Juergen Gross wrote: > Add a helper domid_to_domain() returning the struct domain pointer for > a domain give by its domid and which is known not being able to be > released (its reference count isn't incremented and no rcu_lock_domain() > is called for it). > > In order to si

Re: [PATCH 2/2] xen/gnttab: reduce size of struct active_grant_entry

2022-09-12 Thread Juergen Gross
On 12.09.22 10:11, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: The size of struct active_grant_entry for 64-bit builds is 40 or 48 bytes today (with or without NDEBUG). ... and leaving aside DEBUG_LOCKS / DEBUG_LOCK_PROFILE. Only leaving aside DEBUG_LOCK_PROFILE. DEBUG_LOCKS

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Juergen Gross
On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: Add a helper domid_to_domain() returning the struct domain pointer for a domain give by its domid and which is known not being able to be released (its reference count isn't incremented and no rcu_lock_domain() is ca

[linux-linus test] 173141: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173141 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173141/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-libvirt 6 libvirt-buildfail REGR. vs. 172133 build-i386-libvirt

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Jan Beulich
On 12.09.2022 10:23, Juergen Gross wrote: > On 12.09.22 10:19, Jan Beulich wrote: >> On 12.09.2022 07:53, Juergen Gross wrote: >>> Add a helper domid_to_domain() returning the struct domain pointer for >>> a domain give by its domid and which is known not being able to be >>> released (its referenc

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Juergen Gross
On 12.09.22 10:31, Jan Beulich wrote: On 12.09.2022 10:23, Juergen Gross wrote: On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: Add a helper domid_to_domain() returning the struct domain pointer for a domain give by its domid and which is known not being able to

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Jan Beulich
On 12.09.2022 10:33, Juergen Gross wrote: > On 12.09.22 10:31, Jan Beulich wrote: >> On 12.09.2022 10:23, Juergen Gross wrote: >>> On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: > Add a helper domid_to_domain() returning the struct domain pointer for >

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Julien Grall
Hi Juergen, On 12/09/2022 09:33, Juergen Gross wrote: On 12.09.22 10:31, Jan Beulich wrote: On 12.09.2022 10:23, Juergen Gross wrote: On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: Add a helper domid_to_domain() returning the struct domain pointer for a domai

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Jan Beulich
On 12.09.2022 10:36, Julien Grall wrote: > On 12/09/2022 09:33, Juergen Gross wrote: >> On 12.09.22 10:31, Jan Beulich wrote: >>> On 12.09.2022 10:23, Juergen Gross wrote: On 12.09.22 10:19, Jan Beulich wrote: > On 12.09.2022 07:53, Juergen Gross wrote: >> Add a helper domid_to_domain(

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Julien Grall
On 12/09/2022 09:42, Jan Beulich wrote: On 12.09.2022 10:36, Julien Grall wrote: On 12/09/2022 09:33, Juergen Gross wrote: On 12.09.22 10:31, Jan Beulich wrote: On 12.09.2022 10:23, Juergen Gross wrote: On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: Add a

Re: [PATCH 1/2] xen: add domid_to_domain() helper

2022-09-12 Thread Juergen Gross
On 12.09.22 10:36, Julien Grall wrote: Hi Juergen, On 12/09/2022 09:33, Juergen Gross wrote: On 12.09.22 10:31, Jan Beulich wrote: On 12.09.2022 10:23, Juergen Gross wrote: On 12.09.22 10:19, Jan Beulich wrote: On 12.09.2022 07:53, Juergen Gross wrote: Add a helper domid_to_domain() returni

Re: [PATCH v3 03/10] x86/mtrr: replace use_intel() with a local flag

2022-09-12 Thread Juergen Gross
On 11.09.22 12:16, Borislav Petkov wrote: On Thu, Sep 08, 2022 at 10:49:07AM +0200, Juergen Gross wrote: diff --git a/arch/x86/include/asm/cacheinfo.h b/arch/x86/include/asm/cacheinfo.h index 86b2e0dcc4bf..1aeafa9888f7 100644 --- a/arch/x86/include/asm/cacheinfo.h +++ b/arch/x86/include/asm/cach

Re: [PATCH v3 04/10] x86: move some code out of arch/x86/kernel/cpu/mtrr

2022-09-12 Thread Juergen Gross
On 11.09.22 13:02, Borislav Petkov wrote: On Thu, Sep 08, 2022 at 10:49:08AM +0200, Juergen Gross wrote: Prepare making PAT and MTRR support independent from each other by moving some code needed by both out of the MTRR specific sources. This needs to be two patches at least: first one is only

[libvirt test] 173146: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173146 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/173146/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 6 libvirt-buildfail REGR. vs. 151777 build-i386-libvirt

[linux-5.4 test] 173142: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173142 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173142/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172128 build-amd64-libvirt

[ovmf test] 173148: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173148 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173148/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

[xen-unstable test] 173144: tolerable FAIL

2022-09-12 Thread osstest service owner
flight 173144 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/173144/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm 1 build-check(1) blocked n/a test-amd64-i386-libvirt-raw 1 buil

[ImageBuilder] Update README.md

2022-09-12 Thread Michal Orzel
Get rid of references to XEN_PASSTHROUGH_PATHS, as there is no such option and it should be replaced with DOMU_PASSTHROUGH_PATHS[number]. Update PASSTHROUGH_DTS_REPO example. The directory storing partial device trees is now device-trees-2021.2/zcu102 instead of device-trees-2021.2. Signed-off-by

[ImageBuilder 0/2] Use lopper to generate partial dts

2022-09-12 Thread Michal Orzel
This patch series introduces support to generate automatically passthrough device trees using lopper. This feature should be used with care as the corresponding lopper changes are still in an early support state. Current integration has been tested with several devices from ZynqMP ZCU102 board e.g.

[ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-12 Thread Michal Orzel
Currently ImageBuilder can compile and merge partial dts obtained from a repository specified using PASSTHROUGH_DTS_REPO. With the recent changes done in the lopper, we can use it to generate partial dts automatically (to some extent as this is still an early support). Introduce LOPPER_PATH option

[ImageBuilder 1/2] Refactor sanity_check_partial_dts

2022-09-12 Thread Michal Orzel
Currently function sanity_check_partial_dts from scripts/common takes three arguments where the last two (repo, dir) are used always in conjuction to form a path to a directory storing partial dts. Modify the function to take only two arguments where the second one is to be a path to a directory st

[PATCH v3 0/3] libxl smbios support

2022-09-12 Thread Jason Andryuk
hvm_xs_strings.h specifies xenstore entries which can be used to set or override smbios strings. hvmloader has support for reading them, but xl/libxl support is not wired up. This patches adds a new xl.cfg option and libxl support to write the xenstore strings. The xl syntax looks like: smbios=[

[PATCH v3 1/3] golang/xenlight: Extend KeyedUnion to support Arrays

2022-09-12 Thread Jason Andryuk
Generation for KeyedUnion types doesn't support Arrays. The smbios support will place an smbios array inside the hvm KeyedUnion, and gentotypes doesn't generate buildable Go code. Have KeyedUnion add an idl.Array check and issue the approriate xenlight_golang_array_to_C and xenlight_golang_array_

[PATCH v3 2/3] xl/libxl: Add ability to specify SMBIOS strings

2022-09-12 Thread Jason Andryuk
hvm_xs_strings.h specifies xenstore entries which can be used to set or override smbios strings. hvmloader has support for reading them, but xl/libxl support is not wired up. Allow specifying the strings with the new xl.cfg option: smbios=["bios_vendor=Xen Project","system_version=1.0"] In terms

[PATCH v3 3/3] xl/libxl: Add OEM string support to smbios

2022-09-12 Thread Jason Andryuk
Add support for OEM strings in the SMBIOS type 11. hvmloader checks them sequentially, so hide the implementation detail. Allow multiple plain oem= items and assign the numeric values internally. Signed-off-by: Jason Andryuk --- v3: Add } from patch 2 to parse_config_data Use EXIT_FAILURE Print

Re: [PATCH 00/12] Arm cache coloring

2022-09-12 Thread Carlo Nonato
Hi Julien, On Sat, Sep 10, 2022 at 5:12 PM Julien Grall wrote: > > Hi Carlo, > > On 26/08/2022 13:50, Carlo Nonato wrote: > > Shared caches in multi-core CPU architectures represent a problem for > > predictability of memory access latency. This jeopardizes applicability > > of many Arm platform

Re: [PATCH 08/12] Revert "xen/arm: setup: Add Xen as boot module before printing all boot modules"

2022-09-12 Thread Carlo Nonato
Hi Julien, On Sat, Sep 10, 2022 at 4:01 PM Julien Grall wrote: > > Hi, > > On 26/08/2022 13:51, Carlo Nonato wrote: > > From: Luca Miccio > > > > This reverts commit 48fb2a9deba11ee48dde21c5c1aa93b4d4e1043b. > > > > The cache coloring support has the command line parsing as a prerequisite > > be

Re: [PATCH 09/12] Revert "xen/arm: mm: Initialize page-tables earlier"

2022-09-12 Thread Carlo Nonato
Hi Julien, On Sat, Sep 10, 2022 at 4:29 PM Julien Grall wrote: > > Hi Carlo, > > On 26/08/2022 13:51, Carlo Nonato wrote: > > From: Luca Miccio > > > > This reverts commit 3a5d341681af650825bbe3bee9be5d187da35080. > > Usually, this indicates that this was a clean revert. IOW, there was no > clas

[ovmf test] 173151: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173151 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173151/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

[qemu-mainline test] 173147: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173147 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173147/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 6 libvirt-buildfail REGR. vs. 172123 build-i386-libvir

Re: [PATCH v2] x86/PCI: Prefer MMIO over PIO on VMware hypervisor

2022-09-12 Thread Wei Liu
On Tue, Sep 06, 2022 at 12:38:37PM +0530, Ajay Kaher wrote: > During boot-time there are many PCI config reads, these could be performed > either using Port IO instructions (PIO) or memory mapped I/O (MMIO). > > PIO are less efficient than MMIO, they require twice as many PCI accesses > and PIO in

Re: [ImageBuilder] Update README.md

2022-09-12 Thread Ayan Kumar Halder
On 12/09/2022 12:59, Michal Orzel wrote: Get rid of references to XEN_PASSTHROUGH_PATHS, as there is no such option and it should be replaced with DOMU_PASSTHROUGH_PATHS[number]. Update PASSTHROUGH_DTS_REPO example. The directory storing partial device trees is now device-trees-2021.2/zcu102 i

Re: [ImageBuilder 0/2] Use lopper to generate partial dts

2022-09-12 Thread Ayan Kumar Halder
Hi Michal, On 12/09/2022 12:59, Michal Orzel wrote: This patch series introduces support to generate automatically passthrough device trees using lopper. This feature should be used with care as the corresponding lopper changes are still in an early support state. Current integration has been te

Re: [ImageBuilder 1/2] Refactor sanity_check_partial_dts

2022-09-12 Thread Ayan Kumar Halder
On 12/09/2022 12:59, Michal Orzel wrote: Currently function sanity_check_partial_dts from scripts/common takes three arguments where the last two (repo, dir) are used always in conjuction to form a path to a directory storing partial dts. Modify the function to take only two arguments where the

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-12 Thread Ayan Kumar Halder
Hi Michal, On 12/09/2022 12:59, Michal Orzel wrote: Currently ImageBuilder can compile and merge partial dts obtained from a repository specified using PASSTHROUGH_DTS_REPO. With the recent changes done in the lopper, we can use it to generate partial dts automatically (to some extent as this is

[ovmf test] 173152: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173152 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173152/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-12 Thread Michal Orzel
Hi Ayan, On 12/09/2022 18:41, Ayan Kumar Halder wrote: > Hi Michal, > > On 12/09/2022 12:59, Michal Orzel wrote: >> Currently ImageBuilder can compile and merge partial dts obtained from >> a repository specified using PASSTHROUGH_DTS_REPO. With the recent >> changes done in the lopper, we can us

POLL: Xen Summit and the Queen's Funeral

2022-09-12 Thread George Dunlap
EXECUTIVE SUMMARY Due to the Queen’s funeral, the first day of the Xen Summit (19 September) is now going to be a public holiday in the UK. We’re trying to figure out what the best option is (detailed below). *If and only if* you are attending Xen Summit, please fill out the following poll be

[linux-linus test] 173149: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173149 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173149/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-libvirt 6 libvirt-buildfail REGR. vs. 172133 build-i386-libvirt

[ovmf test] 173155: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173155 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173155/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

[linux-5.4 test] 173150: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173150 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173150/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172128 build-amd64-libvirt

[ovmf test] 173157: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173157 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173157/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [ImageBuilder] Update README.md

2022-09-12 Thread Stefano Stabellini
On Mon, 12 Sep 2022, Ayan Kumar Halder wrote: > On 12/09/2022 12:59, Michal Orzel wrote: > > Get rid of references to XEN_PASSTHROUGH_PATHS, as there is no such option > > and it should be replaced with DOMU_PASSTHROUGH_PATHS[number]. > > > > Update PASSTHROUGH_DTS_REPO example. The directory stor

Re: [ImageBuilder 1/2] Refactor sanity_check_partial_dts

2022-09-12 Thread Stefano Stabellini
On Mon, 12 Sep 2022, Ayan Kumar Halder wrote: > On 12/09/2022 12:59, Michal Orzel wrote: > > Currently function sanity_check_partial_dts from scripts/common takes > > three arguments where the last two (repo, dir) are used always in > > conjuction to form a path to a directory storing partial dts.

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-12 Thread Stefano Stabellini
On Mon, 12 Sep 2022, Michal Orzel wrote: > Currently ImageBuilder can compile and merge partial dts obtained from > a repository specified using PASSTHROUGH_DTS_REPO. With the recent > changes done in the lopper, we can use it to generate partial dts > automatically (to some extent as this is still

[qemu-mainline test] 173153: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173153 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173153/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 6 libvirt-buildfail REGR. vs. 172123 build-i386-libvir

Re: Linux pin_user_pages_fast fails on Xen

2022-09-12 Thread Stefano Stabellini
On Sat, 10 Sep 2022, Juergen Gross wrote: > On 09.09.22 22:25, Stefano Stabellini wrote: > > On Fri, 9 Sep 2022, Juergen Gross wrote: > > > On 09.09.22 04:11, Stefano Stabellini wrote: > > > > Adding more people in CC > > > > > > > > On Thu, 8 Sep 2022, Stefano Stabellini wrote: > > > > > Hi Juerg

[ovmf test] 173159: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173159 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173159/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

RE: [PATCH] hw/xen: set pci Atomic Ops requests for passthrough device

2022-09-12 Thread Ji, Ruili
[AMD Official Use Only - General] Hi Paul, Could you help to review this patch? Thanks From: Ji, Ruili Sent: 2022年9月7日 9:04 To: 'Paul Durrant' ; 'qemu-de...@nongnu.org' Cc: Liu, Aaron ; 'xen-devel@lists.xenproject.org' Subject: RE: [PATCH] hw/xen: set pci Atomic Ops requests for passthrough

[linux-linus test] 173156: regressions - FAIL

2022-09-12 Thread osstest service owner
flight 173156 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173156/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-libvirt 6 libvirt-buildfail REGR. vs. 172133 build-i386-libvirt

RE: Linux pin_user_pages_fast fails on Xen

2022-09-12 Thread NK, JESHWANTHKUMAR (JESHWANTH KUMAR)
[AMD Official Use Only - General] Hi Stefano, https://elixir.bootlin.com/linux/v5.16/source/mm/gup.c#L975 is the -EFAULT returning for our current use case. access_ok is fine. Regards, Jeshwanth -Original Message- From: Stefano Stabellini Sent: Tuesday, September 13, 2022 6:56 AM To

RE: Linux pin_user_pages_fast fails on Xen

2022-09-12 Thread NK, JESHWANTHKUMAR (JESHWANTH KUMAR)
[AMD Official Use Only - General] Missed to update the Flag details: Flag for DMA Mapped VA - 0x0C0644BB Flag for Local VA - 0x08100073 VM_IO and VM_PFNMAP - Set in DMA mapped VA but not in local VA. Regards, Jeshwanth -Original Message- From: NK, JESHWANTHKUMAR (JESHWANTH