Re: [PATCH 24/36] printk: Remove trace_.*_rcuidle() usage

2022-06-10 Thread Sergey Senozhatsky
On Thu, Jun 9, 2022 at 10:02 PM Petr Mladek wrote: > > On Thu 2022-06-09 20:30:58, Sergey Senozhatsky wrote: > > My emails are getting rejected... Let me try web-interface > > Bad day for mail sending. I have problems as well ;-) For me the problem is still there and apparently it's an "too many

Re: [PATCH 24/36] printk: Remove trace_.*_rcuidle() usage

2022-06-10 Thread Sergey Senozhatsky
On Thu, Jun 9, 2022 at 10:06 PM Petr Mladek wrote: > > Makes sense. Feel free to use for this patch: > > Acked-by: Petr Mladek Reviewed-by: Sergey Senozhatsky

[PATCH] xen/pass-through: merge emulated bits correctly

2022-06-10 Thread Chuck Zmudzinski
In xen_pt_config_reg_init(), there is an error in the merging of the emulated data with the host value. With the current Qemu, instead of merging the emulated bits with the host bits as defined by emu_mask, the inverse of the emulated bits is merged with the host bits. In some cases, depending on t

[PATCH] xen/pass-through: don't create needless register group

2022-06-10 Thread Chuck Zmudzinski
Currently we are creating a register group for the Intel IGD OpRegion for every device we pass through, but the XEN_PCI_INTEL_OPREGION register group is only valid for an Intel IGD. Add a check to make sure the device is an Intel IGD and a check that the administrator has enabled gfx_passthru in th

[xen-unstable-smoke test] 170978: tolerable all pass - PUSHED

2022-06-10 Thread osstest service owner
flight 170978 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/170978/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[xen-4.15-testing test] 170922: tolerable FAIL - PUSHED

2022-06-10 Thread osstest service owner
flight 170922 xen-4.15-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/170922/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 170870 test-amd64-amd64-xl-qemuu-win7-a

[xen-4.16-testing test] 170913: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170913 xen-4.16-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/170913/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-shadow 8 xen-boot fail REGR. vs. 170871 test-amd64-cor

Re: [PATCH v2 2/2] xen/arm: add FF-A mediator

2022-06-10 Thread Stefano Stabellini
On Thu, 9 Jun 2022, Jens Wiklander wrote: > Adds a FF-A version 1.1 [1] mediator to communicate with a Secure > Partition in secure world. > > The implementation is the bare minimum to be able to communicate with > OP-TEE running as an SPMC at S-EL1. > > This is loosely based on the TEE mediator

Re: [PATCH v2 1/2] xen/arm: smccc: add support for SMCCCv1.2 extended input/output registers

2022-06-10 Thread Stefano Stabellini
On Thu, 9 Jun 2022, Jens Wiklander wrote: > SMCCC v1.2 AArch64 allows x0-x17 to be used as both parameter registers > and result registers for the SMC and HVC instructions. > > Arm Firmware Framework for Armv8-A specification makes use of x0-x7 as > parameter and result registers. > > Let us add

Re: [PATCH v3] xen/evtchn: Add design for static event channel signaling

2022-06-10 Thread Stefano Stabellini
On Fri, 13 May 2022, Rahul Singh wrote: > This patch introduces a new feature to support the signaling between > two domains in dom0less system. > > Signed-off-by: Rahul Singh > --- > v3 changes: > - add dt node example for dom0 and domU. > - add info about "xen,enhanced" property to enable the e

Re: [RFC PATCH 1/2] xen/unpopulated-alloc: Introduce helpers for DMA allocations

2022-06-10 Thread Stefano Stabellini
On Wed, 8 Jun 2022, Oleksandr wrote: > 2. Drop the "page_list" entirely and use "dma_pool" for all (contiguous and > non-contiguous) allocations. After all, all pages are initially contiguous in > fill_list() as they are built from the resource. This changes behavior for all > users of xen_alloc_un

Re: [RFC PATCH 2/2] xen/grant-table: Use unpopulated DMAable pages instead of real RAM ones

2022-06-10 Thread Stefano Stabellini
On Thu, 9 Jun 2022, Oleksandr wrote: > On 04.06.22 00:19, Stefano Stabellini wrote: > Hello Stefano > > Thank you for having a look and sorry for the late response. > > > On Tue, 17 May 2022, Oleksandr Tyshchenko wrote: > > > From: Oleksandr Tyshchenko > > > > > > Depends on CONFIG_XEN_UNPOPULA

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Stefano Stabellini
On Fri, 10 Jun 2022, Jan Beulich wrote: > On 10.06.2022 11:51, Juergen Gross wrote: > > On 10.06.22 11:44, Jan Beulich wrote: > >> On 10.06.2022 10:33, Michal Orzel wrote: > >>> All the members of struct tm are defined as integers but the format tags > >>> used in console driver for snprintf wrongl

[xen-unstable bisection] complete test-amd64-amd64-xl-qemut-debianhvm-i386-xsm

2022-06-10 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job test-amd64-amd64-xl-qemut-debianhvm-i386-xsm testid xen-boot Tree: linux git://xenbits.xen.org/linux-pvops.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git Tree: qemuu g

[ovmf test] 170964: all pass - PUSHED

2022-06-10 Thread osstest service owner
flight 170964 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170964/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf f0b97e165e0af79ac9eb3c6ac7697f9183afc7cb baseline version: ovmf ccc269756f773d35aab67

[xen-4.16-testing bisection] complete test-amd64-i386-xl-shadow

2022-06-10 Thread osstest service owner
branch xen-4.16-testing xenbranch xen-4.16-testing job test-amd64-i386-xl-shadow testid xen-boot Tree: linux git://xenbits.xen.org/linux-pvops.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: ovmf git://xenbits.xen.org/osstest/ovmf.git Tree: qemu git://xenbits.xen.org

[qemu-mainline test] 170915: tolerable FAIL - PUSHED

2022-06-10 Thread osstest service owner
flight 170915 qemu-mainline real [real] flight 170968 qemu-mainline real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/170915/ http://logs.test-lab.xenproject.org/osstest/logs/170968/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-am

Re: [PATCH RFC v1 4/7] swiotlb: to implement io_tlb_high_mem

2022-06-10 Thread Dongli Zhang
Hi Christoph, On 6/8/22 10:05 PM, Christoph Hellwig wrote: > All this really needs to be hidden under the hood. > Since this patch file has 200+ lines, would you please help clarify what does 'this' indicate? The idea of this patch: 1. Convert the functions to initialize swiotlb into callee. T

[PATCH v2] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Stefano Stabellini
Add the new MISRA C rules agreed by the MISRA C working group to docs/misra/rules.rst. Signed-off-by: Stefano Stabellini Reviewed-by: Bertrand Marquis Acked-by: Julien Grall Acked-by: Roger Pau Monné --- Given the minimal/trivial changes I kept the acked/reviewed-by. Changes in v2: - use max_

Re: [PATCH] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Stefano Stabellini
On Fri, 10 Jun 2022, Jan Beulich wrote: > On 10.06.2022 02:48, Stefano Stabellini wrote: > > + * - `Rule 5.3 > > `_ > > + - Required > > + - An identifier declared in an inner scope shall not hide an > >

[xen-unstable test] 170908: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170908 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/170908/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-ws16-amd64 8 xen-boot fail REGR. vs. 170890 test-amd64-i386-xl

[ovmf test] 170935: all pass - PUSHED

2022-06-10 Thread osstest service owner
flight 170935 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170935/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf ccc269756f773d35aab67ccb935fa9548f30cff3 baseline version: ovmf e7abb94d1fb8a0e7725b9

Re: [PULL 00/17] Kraxel 20220610 patches

2022-06-10 Thread Richard Henderson
ository at: git://git.kraxel.org/qemu tags/kraxel-20220610-pull-request for you to fetch changes up to 02319a4d67d3f19039127b8dc9ca9478b6d6ccd8: virtio-gpu: Respect UI refresh rate for EDID (2022-06-10 11:11:44 +0200) usb: a

[libvirt test] 170911: regressions - FAIL

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

Re: [PATCH v5 2/5] grub-mkconfig linux_xen: Fix quadratic algorithm for sorting menu items

2022-06-10 Thread Jason Andryuk
On Thu, Jun 9, 2022 at 2:50 PM Mathieu Desnoyers wrote: > > The current implementation of the 20_linux_xen script implements its > menu items sorting in bash with a quadratic algorithm, calling "sed", > "sort", "head", and "grep" to compare versions between individual lines, > which is annoyingly

Re: [GIT PULL] xen: branch for v5.19-rc2

2022-06-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jun 2022 06:48:58 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git > for-linus-5.19a-rc2-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f2ecc964b9414a407828f9bef242b77483e95a6d Thank you! -- Deet-doot-dot,

Re: [PATCH v2 2/4] xen/arm: Add sb instruction support

2022-06-10 Thread Julien Grall
Hi Bertrand, On 31/05/2022 11:43, Bertrand Marquis wrote: diff --git a/xen/arch/arm/include/asm/cpufeature.h b/xen/arch/arm/include/asm/cpufeature.h index f7368766c0..9649a7afee 100644 --- a/xen/arch/arm/include/asm/cpufeature.h +++ b/xen/arch/arm/include/asm/cpufeature.h @@ -67,8 +67,9 @@ #d

Re: [PATCH v2 4/4] arm: Define kconfig symbols used by arm64 cpufeatures

2022-06-10 Thread Julien Grall
Hi Bertrand, On 31/05/2022 11:43, Bertrand Marquis wrote: Define kconfig symbols which are used by arm64 cpufeatures to prevent using undefined symbols and rely on IS_ENABLED returning false. All the features related to those symbols are unsupported by Xen: - pointer authentication - sve - memor

Re: [PATCH V9 1/2] libxl: Add support for Virtio disk configuration

2022-06-10 Thread Oleksandr
On 10.06.22 20:18, Oleksandr wrote: Hello Anthony On 10.06.22 18:12, Anthony PERARD wrote: Hello Anthony On Wed, Jun 01, 2022 at 08:57:40PM +0300, Oleksandr Tyshchenko wrote: diff --git a/tools/libs/light/libxl_disk.c b/tools/libs/light/libxl_disk.c index a5ca778..e90bc25 100644 --- a/t

Re: [PATCH V9 1/2] libxl: Add support for Virtio disk configuration

2022-06-10 Thread Oleksandr
On 10.06.22 18:12, Anthony PERARD wrote: Hello Anthony On Wed, Jun 01, 2022 at 08:57:40PM +0300, Oleksandr Tyshchenko wrote: diff --git a/tools/libs/light/libxl_disk.c b/tools/libs/light/libxl_disk.c index a5ca778..e90bc25 100644 --- a/tools/libs/light/libxl_disk.c +++ b/tools/libs/light/lib

Re: [PATCH] x86/spec-ctrl: More MSR_ARCH_CAPS enumerations

2022-06-10 Thread Andrew Cooper
On 10/06/2022 17:00, Andrew Cooper wrote: > https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/data-operand-independent-timing-isa-guidance.html > https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guida

[linux-linus test] 170906: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170906 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/170906/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-arm64-arm64-examine 5 host-install broken REGR. vs. 170714 test-amd64-amd64-li

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-10 Thread Oleksandr
On 10.06.22 19:21, Anthony PERARD wrote: Hello Anthony On Tue, May 31, 2022 at 12:06:53AM +0300, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Reuse generic IOMMU device tree bindings to communicate Xen specific information for the virtio devices for which the restricted memory ac

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-10 Thread Anthony PERARD
On Tue, May 31, 2022 at 12:06:53AM +0300, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > Reuse generic IOMMU device tree bindings to communicate Xen specific > information for the virtio devices for which the restricted memory > access using Xen grant mappings need to be enabled. >

[PATCH] x86/spec-ctrl: More MSR_ARCH_CAPS enumerations

2022-06-10 Thread Andrew Cooper
https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/data-operand-independent-timing-isa-guidance.html https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/advisory-guidance/running-average-power-li

Re: [PATCH] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Roger Pau Monné
On Thu, Jun 09, 2022 at 05:48:26PM -0700, Stefano Stabellini wrote: > Add the new MISRA C rules agreed by the MISRA C working group to > docs/misra/rules.rst. > > Signed-off-by: Stefano Stabellini > > --- > > I added the rules that we agreed upon this morning together with all the > notes we di

Re: [PATCH v4] x86/hvm: Widen condition for is_hvm_pv_evtchn_domain() and report fix in CPUID

2022-06-10 Thread Roger Pau Monné
On Fri, Jun 10, 2022 at 12:07:04PM +0100, Jane Malalane wrote: > Have is_hvm_pv_evtchn_domain() return true for vector callbacks for > evtchn delivery set up on a per-vCPU basis via > HVMOP_set_evtchn_upcall_vector. > > Assume that if vCPU0 uses HVMOP_set_evtchn_upcall_vector, all > remaining vCPU

Re: [PATCH V9 2/2] libxl: Introduce basic virtio-mmio support on Arm

2022-06-10 Thread Anthony PERARD
On Wed, Jun 01, 2022 at 08:57:41PM +0300, Oleksandr Tyshchenko wrote: > From: Julien Grall > > This patch introduces helpers to allocate Virtio MMIO params > (IRQ and memory region) and create specific device node in > the Guest device-tree with allocated params. In order to deal > with multiple

Re: [PATCH V9 1/2] libxl: Add support for Virtio disk configuration

2022-06-10 Thread Anthony PERARD
On Wed, Jun 01, 2022 at 08:57:40PM +0300, Oleksandr Tyshchenko wrote: > diff --git a/tools/libs/light/libxl_disk.c b/tools/libs/light/libxl_disk.c > index a5ca778..e90bc25 100644 > --- a/tools/libs/light/libxl_disk.c > +++ b/tools/libs/light/libxl_disk.c > @@ -163,6 +163,25 @@ static int libxl__dev

[PATCH] xen/console: do not drop serial output from the hardware domain

2022-06-10 Thread Roger Pau Monne
Prevent dropping console output from the hardware domain, since it's likely important to have all the output if the boot fails without having to resort to sync_console (which also affects the output from other guests). Do so by pairing the console_serial_puts() with serial_{start,end}_log_everythi

Re: [PATCH v2 3/3] tools/xl: Allow specifying JSON for domain configuration file format

2022-06-10 Thread Anthony PERARD
On Tue, May 31, 2022 at 06:25:13PM -0700, Elliott Mitchell wrote: > On Fri, May 20, 2022 at 03:12:46PM +0100, Anthony PERARD wrote: > > On Tue, Apr 19, 2022 at 06:23:41PM -0700, Elliott Mitchell wrote: > > > JSON is currently used when saving domains to mass storage. Being able > > > to use JSON a

[xen-unstable-smoke test] 170924: tolerable all pass - PUSHED

2022-06-10 Thread osstest service owner
flight 170924 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/170924/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[ovmf test] 170919: all pass - PUSHED

2022-06-10 Thread osstest service owner
flight 170919 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170919/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf e7abb94d1fb8a0e7725b983bbf5ab1334afe7ed1 baseline version: ovmf ff36b2550f94dc5fac838

[PATCH v4] x86/hvm: Widen condition for is_hvm_pv_evtchn_domain() and report fix in CPUID

2022-06-10 Thread Jane Malalane
Have is_hvm_pv_evtchn_domain() return true for vector callbacks for evtchn delivery set up on a per-vCPU basis via HVMOP_set_evtchn_upcall_vector. Assume that if vCPU0 uses HVMOP_set_evtchn_upcall_vector, all remaining vCPUs will too and thus remove is_hvm_pv_evtchn_vcpu() and replace sole caller

Re: [PATCH v3] x86/hvm: Widen condition for is_hvm_pv_evtchn_domain() and report fix in CPUID

2022-06-10 Thread Jane Malalane
On 24/05/2022 16:14, Jan Beulich wrote: > [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments > unless you have verified the sender and know the content is safe. > > On 18.05.2022 15:27, Jane Malalane wrote: >> --- a/xen/arch/x86/include/asm/domain.h >> +++ b/xen/arch/x86/in

[xen-4.13-testing test] 170905: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170905 xen-4.13-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/170905/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-xtf-amd64-amd64-5 90 xtf/test-pv32pae-xsa-259 fail REGR. vs. 169240 test-xtf-amd64

Re: [PATCH] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Jan Beulich
On 10.06.2022 02:48, Stefano Stabellini wrote: > + * - `Rule 5.3 > `_ > + - Required > + - An identifier declared in an inner scope shall not hide an > + identifier declared in an outer scope > +

Re: [PATCH] IOMMU/x86: work around bogus gcc12 warning in hvm_gsi_eoi()

2022-06-10 Thread Roger Pau Monné
On Fri, Jun 10, 2022 at 09:29:44AM +0200, Jan Beulich wrote: > On 10.06.2022 09:20, Roger Pau Monné wrote: > > On Fri, May 27, 2022 at 12:37:19PM +0200, Jan Beulich wrote: > >> As per [1] the expansion of the pirq_dpci() macro causes a -Waddress > >> controlled warning (enabled implicitly in our bu

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Jan Beulich
On 10.06.2022 11:50, Michal Orzel wrote: > On 10.06.2022 11:44, Jan Beulich wrote: >> On 10.06.2022 10:33, Michal Orzel wrote: >>> All the members of struct tm are defined as integers but the format tags >>> used in console driver for snprintf wrongly expect unsigned values. Fix >>> the tags to exp

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Jan Beulich
On 10.06.2022 11:51, Juergen Gross wrote: > On 10.06.22 11:44, Jan Beulich wrote: >> On 10.06.2022 10:33, Michal Orzel wrote: >>> All the members of struct tm are defined as integers but the format tags >>> used in console driver for snprintf wrongly expect unsigned values. Fix >>> the tags to expe

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Juergen Gross
On 10.06.22 11:44, Jan Beulich wrote: On 10.06.2022 10:33, Michal Orzel wrote: All the members of struct tm are defined as integers but the format tags used in console driver for snprintf wrongly expect unsigned values. Fix the tags to expect integers. Perhaps do things the other way around -

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Michal Orzel
Hi Jan, On 10.06.2022 11:44, Jan Beulich wrote: > On 10.06.2022 10:33, Michal Orzel wrote: >> All the members of struct tm are defined as integers but the format tags >> used in console driver for snprintf wrongly expect unsigned values. Fix >> the tags to expect integers. > > Perhaps do things t

Re: [PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Jan Beulich
On 10.06.2022 10:33, Michal Orzel wrote: > All the members of struct tm are defined as integers but the format tags > used in console driver for snprintf wrongly expect unsigned values. Fix > the tags to expect integers. Perhaps do things the other way around - convert field types to unsigned unle

Re: [PATCH 2/3] xen/arm: gicv2: Rename gicv2_map_hwdown_extra_mappings

2022-06-10 Thread Michal Orzel
Hi Julien, On 10.06.2022 11:07, Julien Grall wrote: > Hi, > > On 10/06/2022 09:33, Michal Orzel wrote: >> ... to gicv2_map_hwdom_extra_mappings as the former clearly contains >> a typo. >> >> Fixes: 86b93e00c0b6 ("xen/arm: gicv2: Export GICv2m register frames to Dom0 >> by device tree" > > NIT:

Re: [Question] Alternative Method for git send-email

2022-06-10 Thread Jan Beulich
On 10.06.2022 11:31, 박보윤 wrote: > Hi, I want to contribute to Xen Project. > > So I tried to follow the contribution guidelines from Xen Wiki. > > https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches > > > But I found

Re: [PATCH 0/2] xen/mm: Optimize init_heap_pages()

2022-06-10 Thread Julien Grall
On 09/06/2022 09:30, Julien Grall wrote: From: Julien Grall Hi all, As part of the Live-Update work, we noticed that a big part Xen boot is spent to add pages in the heap. For instance, on when running Xen in a nested envionment on a c5.metal, it takes ~1.5s. On IRC, Bertrand asked me how I

[Question] Alternative Method for git send-email

2022-06-10 Thread 박보윤
Dear Xen Project Developers,   Hi, I want to contribute to Xen Project. So I tried to follow the contribution guidelines from Xen Wiki. https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches   But I found that I cannot use smtp server directly from linux due to security policy

[PULL 15/17] ui/console: Do not return a value with ui_info

2022-06-10 Thread Gerd Hoffmann
From: Akihiko Odaki The returned value is not used and misleading. Signed-off-by: Akihiko Odaki Message-Id: <20220226115516.59830-2-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 2 +- hw/display/virtio-gpu-base.c | 6 +++--- hw/display/virtio-vga.c

[PULL 13/17] virtio-gpu: update done only on the scanout associated with rect

2022-06-10 Thread Gerd Hoffmann
From: Dongwon Kim It only needs to update the scanouts containing the rect area coming with the resource-flush request from the guest. Cc: Gerd Hoffmann Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim Message-Id: <20220505214030.4261-1-dongwon@intel.com> Signed-off-by: Gerd Hoffmann ---

[PULL 14/17] ui: move 'pc-bios/keymaps' to 'ui/keymaps'

2022-06-10 Thread Gerd Hoffmann
From: Daniel P. Berrangé The 'keymaps' directory contents is nothing to do with the firmware blobs. The 'pc-bios/keymaps' directory appears to have been used previously as a convenience for getting the files installed into a subdir of the firmware install dir. This install time arrangement does n

[PULL 17/17] virtio-gpu: Respect UI refresh rate for EDID

2022-06-10 Thread Gerd Hoffmann
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Message-Id: <20220226115516.59830-4-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann --- include/hw/virtio/virtio-gpu.h | 1 + hw/display/virtio-gpu-base.c | 1 + hw/display/virtio-gpu.c| 1 + 3 files changed, 3 insertions(+) dif

[PULL 16/17] ui: Deliver refresh rate via QemuUIInfo

2022-06-10 Thread Gerd Hoffmann
From: Akihiko Odaki This change adds a new member, refresh_rate to QemuUIInfo in include/ui/console.h. It represents the refresh rate of the physical display backend, and it is more appropriate than GUI update interval as the refresh rate which the emulated device reports: - sdl may set GUI updat

[PULL 12/17] usbredir: avoid queuing hello packet on snapshot restore

2022-06-10 Thread Gerd Hoffmann
From: Joelle van Dyne When launching QEMU with "-loadvm", usbredir_create_parser() should avoid setting up the hello packet (just as with "-incoming". On the latest version of libusbredir, usbredirparser_unserialize() will return error if the parser is not "pristine." Signed-off-by: Joelle van D

[PULL 11/17] hw/usb/hcd-ehci: fix writeback order

2022-06-10 Thread Gerd Hoffmann
From: Arnout Engelen The 'active' bit passes control over a qTD between the guest and the controller: set to 1 by guest to enable execution by the controller, and the controller sets it to '0' to hand back control to the guest. ehci_state_writeback write two dwords to main memory using DMA: the

[PULL 09/17] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" Signed-off-by: Hongren (Zenithal) Zheng Message-Id: Signed-off-by: Gerd Hoffmann --- docs/system/devices/usb.rst | 4 1 file changed, 4 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c2268d..872d9167589b

[PULL 10/17] MAINTAINERS: add myself as CanoKey maintainer

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" Signed-off-by: Hongren (Zenithal) Zheng Message-Id: Signed-off-by: Gerd Hoffmann --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5580a36b68e1..4ae9d707d5b0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @

Re: [PATCH] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Julien Grall
Hi Stefano, On 10/06/2022 01:48, Stefano Stabellini wrote: Add the new MISRA C rules agreed by the MISRA C working group to docs/misra/rules.rst. Signed-off-by: Stefano Stabellini Acked-by: Julien Grall Cheers, --- I added the rules that we agreed upon this morning together with all th

[PULL 08/17] docs: Add CanoKey documentation

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" Signed-off-by: Hongren (Zenithal) Zheng Message-Id: Signed-off-by: Gerd Hoffmann --- docs/system/device-emulation.rst | 1 + docs/system/devices/canokey.rst | 168 +++ 2 files changed, 169 insertions(+) create mode 100644 docs/s

[PULL 07/17] meson: Add CanoKey

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" Signed-off-by: Hongren (Zenithal) Zheng Message-Id: Signed-off-by: Gerd Hoffmann --- meson_options.txt | 2 ++ hw/usb/Kconfig| 5 + hw/usb/meson.build| 5 + meson.build | 6 ++ scripts/meson

[PULL 05/17] hw/usb: Add CanoKey Implementation

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" This commit added a new emulated device called CanoKey to QEMU. CanoKey implements platform independent features in canokey-core https://github.com/canokeys/canokey-core, and leaves the USB implementation to the platform. In this commit the USB part was implemen

[PULL 02/17] ui/gtk-gl-area: create the requested GL context version

2022-06-10 Thread Gerd Hoffmann
From: Volker Rümelin Since about 2018 virglrenderer (commit fa835b0f88 "vrend: don't hardcode context version") tries to open the highest available GL context version. This is done by creating the known GL context versions from the highest to the lowest until (*create_gl_context) returns a contex

[PULL 06/17] hw/usb/canokey: Add trace events

2022-06-10 Thread Gerd Hoffmann
From: "Hongren (Zenithal) Zheng" Signed-off-by: Hongren (Zenithal) Zheng Message-Id: Signed-off-by: Gerd Hoffmann --- hw/usb/canokey.c| 13 + hw/usb/trace-events | 16 2 files changed, 29 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 6c

[PULL 04/17] hw/audio/cs4231a: Const'ify global tables

2022-06-10 Thread Gerd Hoffmann
From: Bernhard Beschow The tables contain spcifically crafted constants for algorithms, so make them immutable. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220520180109.8224-3-shen...@gmail.com> Signed-off-by: Gerd Hoffmann --- hw/audio/cs4231a.c | 8 ++

[PULL 00/17] Kraxel 20220610 patches

2022-06-10 Thread Gerd Hoffmann
ags/kraxel-20220610-pull-request for you to fetch changes up to 02319a4d67d3f19039127b8dc9ca9478b6d6ccd8: virtio-gpu: Respect UI refresh rate for EDID (2022-06-10 11:11:44 +0200) usb: add CanoKey device, fixes for ehci + redir ui: fix

[PULL 03/17] ui/cocoa: Fix poweroff request code

2022-06-10 Thread Gerd Hoffmann
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220529082508.89097-1-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann --- ui/cocoa.m | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index

[PULL 01/17] ui/gtk-gl-area: implement GL context destruction

2022-06-10 Thread Gerd Hoffmann
From: Volker Rümelin The counterpart function for gd_gl_area_create_context() is currently empty. Implement the gd_gl_area_destroy_context() function to avoid GL context leaks. Signed-off-by: Volker Rümelin Message-Id: <20220605085131.7711-1-vr_q...@t-online.de> Signed-off-by: Gerd Hoffmann --

Re: [PATCH] add more MISRA C rules to docs/misra/rules.rst

2022-06-10 Thread Bertrand Marquis
Hi Stefano, > On 10 Jun 2022, at 01:48, Stefano Stabellini wrote: > > Add the new MISRA C rules agreed by the MISRA C working group to > docs/misra/rules.rst. The notes are now used to give more explanations or document deviations. We might need a proper entry in the table at some point but I t

[PATCH v3] xen: Add MISRA support to cppcheck make rule

2022-06-10 Thread Bertrand Marquis
cppcheck MISRA addon can be used to check for non compliance to some of the MISRA standard rules. Add a CPPCHECK_MISRA variable that can be set to "y" using make command line to generate a cppcheck report including cppcheck misra checks. When MISRA checking is enabled, a file with a text descript

Re: [PATCH 1/3] xen/arm: traps: Fix reference to invalid erratum ID

2022-06-10 Thread Julien Grall
Hi Michal, On 10/06/2022 09:33, Michal Orzel wrote: The correct erratum ID should be 834220. Fixes: 0a7ba2936457 ("xen/arm: arm64: Add Cortex-A57 erratum 834220 workaround") Despite my answer in #2, this is one of the exception where I would keep the fixes tag because we should try to keep t

Re: [PATCH 2/3] xen/arm: gicv2: Rename gicv2_map_hwdown_extra_mappings

2022-06-10 Thread Julien Grall
Hi, On 10/06/2022 09:33, Michal Orzel wrote: ... to gicv2_map_hwdom_extra_mappings as the former clearly contains a typo. Fixes: 86b93e00c0b6 ("xen/arm: gicv2: Export GICv2m register frames to Dom0 by device tree" NIT: In general, fixes tag are used for bug (i.e. Xen would not function prop

[xen-4.14-testing test] 170903: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170903 xen-4.14-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/170903/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-pair 12 xen-boot/src_hostfail REGR. vs. 169330 test-amd64-i38

[xen-4.15-testing test] 170904: regressions - FAIL

2022-06-10 Thread osstest service owner
flight 170904 xen-4.15-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/170904/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-debianhvm-amd64 8 xen-boot fail REGR. vs. 170870 test-amd64-i38

Re: [PATCH] x86/mm: account for PGT_pae_xen_l2 in recently added assertion

2022-06-10 Thread Andrew Cooper
On 10/06/2022 09:17, Jan Beulich wrote: > On 10.06.2022 10:12, Andrew Cooper wrote: >> On 10/06/2022 08:26, Jan Beulich wrote: >>> --- >>> The check around the TLB flush which was moved for XSA-401 also looks to >>> needlessly trigger a flush when "type" has the bit set (while "x" >>> wouldn't). Th

[PATCH 3/3] xen/console: Fix incorrect format tags for struct tm members

2022-06-10 Thread Michal Orzel
All the members of struct tm are defined as integers but the format tags used in console driver for snprintf wrongly expect unsigned values. Fix the tags to expect integers. Signed-off-by: Michal Orzel --- xen/drivers/char/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 2/3] xen/arm: gicv2: Rename gicv2_map_hwdown_extra_mappings

2022-06-10 Thread Michal Orzel
... to gicv2_map_hwdom_extra_mappings as the former clearly contains a typo. Fixes: 86b93e00c0b6 ("xen/arm: gicv2: Export GICv2m register frames to Dom0 by device tree") Signed-off-by: Michal Orzel --- xen/arch/arm/gic-v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 1/3] xen/arm: traps: Fix reference to invalid erratum ID

2022-06-10 Thread Michal Orzel
The correct erratum ID should be 834220. Fixes: 0a7ba2936457 ("xen/arm: arm64: Add Cortex-A57 erratum 834220 workaround") Signed-off-by: Michal Orzel --- xen/arch/arm/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 43f

[PATCH 0/3] small fixes

2022-06-10 Thread Michal Orzel
Small independent fixes. Michal Orzel (3): xen/arm: traps: Fix reference to invalid erratum ID xen/arm: gicv2: Rename gicv2_map_hwdown_extra_mappings xen/console: Fix incorrect format tags for struct tm members xen/arch/arm/gic-v2.c | 4 ++-- xen/arch/arm/traps.c | 2 +- xen/dri

[PATCH] iommu: add preemption support to iommu_{un,}map()

2022-06-10 Thread Roger Pau Monne
The loop in iommu_{un,}map() can be arbitrary large, and as such it needs to handle preemption. Introduce a new parameter that allow returning the number of pages that have been processed, and which presence also signals whether the function should do preemption checks. Note that the cleanup done

Re: [PATCH] x86/mm: account for PGT_pae_xen_l2 in recently added assertion

2022-06-10 Thread Jan Beulich
On 10.06.2022 10:12, Andrew Cooper wrote: > On 10/06/2022 08:26, Jan Beulich wrote: >> While PGT_pae_xen_l2 will be zapped once the type refcount of an L2 page >> reaches zero, it'll be retained as long as the type refcount is non- >> zero. Hence any checking against the requested type needs to eit

Re: [PATCH] x86/mm: account for PGT_pae_xen_l2 in recently added assertion

2022-06-10 Thread Andrew Cooper
On 10/06/2022 08:26, Jan Beulich wrote: > While PGT_pae_xen_l2 will be zapped once the type refcount of an L2 page > reaches zero, it'll be retained as long as the type refcount is non- > zero. Hence any checking against the requested type needs to either zap > the bit from the type or include it i

Re: [PATCH] IOMMU/x86: work around bogus gcc12 warning in hvm_gsi_eoi()

2022-06-10 Thread Jan Beulich
On 10.06.2022 09:20, Roger Pau Monné wrote: > On Fri, May 27, 2022 at 12:37:19PM +0200, Jan Beulich wrote: >> As per [1] the expansion of the pirq_dpci() macro causes a -Waddress >> controlled warning (enabled implicitly in our builds, if not by default) >> tying the middle part of the involved con

[PATCH] x86/mm: account for PGT_pae_xen_l2 in recently added assertion

2022-06-10 Thread Jan Beulich
While PGT_pae_xen_l2 will be zapped once the type refcount of an L2 page reaches zero, it'll be retained as long as the type refcount is non- zero. Hence any checking against the requested type needs to either zap the bit from the type or include it in the used mask. Fixes: 9186e96b199e ("x86/pv:

Re: [PATCH] IOMMU/x86: work around bogus gcc12 warning in hvm_gsi_eoi()

2022-06-10 Thread Roger Pau Monné
On Fri, May 27, 2022 at 12:37:19PM +0200, Jan Beulich wrote: > As per [1] the expansion of the pirq_dpci() macro causes a -Waddress > controlled warning (enabled implicitly in our builds, if not by default) > tying the middle part of the involved conditional expression to the > surrounding boolean