Re: [Xen-devel] preparations for 4.9.2 and 4.7.5

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 20:24, wrote: > On Tue, 6 Mar 2018, Jan Beulich wrote: >> these stable releases should go out before the end of the month. >> Please point out backport candidates you find missing from the >> respective staging branches, but which you consider relevant. >> Please note that 4.7.5

Re: [Xen-devel] [PATCH v2] vvmx: fixes after CR4 trapping optimizations

2018-03-06 Thread Tian, Kevin
> From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: Saturday, March 3, 2018 12:19 AM > > Commit 406817 doesn't update nested VMX code in order to take into > account L1 CR4 host mask when nested guest (L2) writes to CR4, and > thus the mask written to CR4_GUEST_HOST_MASK is likely not as

[Xen-devel] [linux-4.9 test] 120260: tolerable FAIL - PUSHED

2018-03-06 Thread osstest service owner
flight 120260 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/120260/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-xl-qemut-win7-amd64 17 guest-stop fail like 120047 test-amd64-amd64-xl-qemut-win7-amd64 17

Re: [Xen-devel] ThunderX support in Xen

2018-03-06 Thread Stefano Stabellini
On Tue, 6 Mar 2018, Stefano Stabellini wrote: > On Wed, 31 Jan 2018, Julien Grall wrote: > > When working on getting Xen booting on rochester{0,1} (Thunder-X in > > Osstest), > > I blacklist them with this small patch. I will clean-up it and send it on > > the ML: > > > > diff --git a/xen/arch/a

[Xen-devel] [seabios test] 120257: regressions - FAIL

2018-03-06 Thread osstest service owner
flight 120257 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/120257/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stop fail REGR. vs. 115539 Tests which did not suc

[Xen-devel] [xen-unstable-smoke test] 120288: tolerable all pass - PUSHED

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

[Xen-devel] [linux-next test] 120256: regressions - FAIL

2018-03-06 Thread osstest service owner
flight 120256 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/120256/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 10 debian-install fail REGR. vs. 120140 test-armhf-armhf-lib

[Xen-devel] [PATCH 4/3] tests/x86emul: Save and restore FPU state in the middle of emulation

2018-03-06 Thread Andrew Cooper
Using libc functions in the middle of emulation may corrupt FPU state. Save and restore FPU state around the progress marker which is the only current libc function on the success path. Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- tools/tests/x86_emulator/test_x86_emulator.c | 5 +

[Xen-devel] [PATCH 2/3] tests/x86emul: Save and restore FPU state in the emulator callbacks

2018-03-06 Thread Andrew Cooper
Currently with then native toolchain on Debian Jessie ./test_x86_emulator yeilds: Testing AVX2 256bit single native execution...okay Testing AVX2 256bit single 64-bit code sequence...[line 933] failed! The bug is that libc's memcpy() in read() uses %xmm8 (specifically, in __memcpy_sse2_unalig

[Xen-devel] [PATCH 1/3] tests/x86emul: Helpers to save and restore FPU state

2018-03-06 Thread Andrew Cooper
Introduce common helpers for saving and restoring FPU state. During emul_test_init(), calculate whether to use xsave or fxsave, and tweak the existing mxcsr_mask logic to avoid using another large static buffer. Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- tools/tests/x86_emulator/x86-

[Xen-devel] [PATCH 3/3] tests/x86emul: Improve the utility of verbose mode

2018-03-06 Thread Andrew Cooper
* Align the function call names, which aligns all subsequent data on the line. * Convert x86_segment and X86EMUL_ constants to strings rather than printing raw numbers. * Move the printing to the end of the function, and either hexdump the result or print the failure code. No change by

[Xen-devel] [PATCH 0/3] tests/x86emul: Fix register corruption in the test harness

2018-03-06 Thread Andrew Cooper
The main bugfix is in patch 2. Patch 3 is some extra debugging developed while investigating the issue. Andrew Cooper (3): tests/x86emul: Helpers to save and restore FPU state tests/x86emul: Save and restore FPU state in the emulator callbacks tests/x86emul: Improve the utility of verbose m

[Xen-devel] [PATCH v1] xen: acpi: upload _PSD info for offline CPUs too

2018-03-06 Thread Joao Martins
All uploaded PM data from offline CPUs takes the info from vCPU 0 and changing only the acpi_id. For processors which P-state coordination type is HW_ALL (0xFD) it is OK to upload bogus P-state dependency information (_PSD), because Xen will ignore cpufreq domains existence. Albeit for hardware ex

Re: [Xen-devel] [PATCH v4 7/7] xen/arm: disable CPUs with different dcache line sizes

2018-03-06 Thread Stefano Stabellini
On Tue, 6 Mar 2018, Julien Grall wrote: > Hi Stefano, > > Something is wrong with your threading again. Patch #2-7 have "In-Reply-To" > matching patch #1 and not the cover letter. Thanks, I lost my git configuration. > On 02/03/18 19:06, Stefano Stabellini wrote: > > Even different cpus in big.

Re: [Xen-devel] osstest planned outage consultation

2018-03-06 Thread Ian Jackson
Jan Beulich writes ("Re: osstest planned outage consultation"): > The most recent flights don't look too bad anymore (at least > most of the have started disappearing again), so > there's some hop for pushes soon. I hope to get around to > push another batch of backports today, in particular to ge

Re: [Xen-devel] preparations for 4.9.2 and 4.7.5

2018-03-06 Thread Stefano Stabellini
On Tue, 6 Mar 2018, Jan Beulich wrote: > All, > > these stable releases should go out before the end of the month. > Please point out backport candidates you find missing from the > respective staging branches, but which you consider relevant. > Please note that 4.7.5 is expected to be the last xe

Re: [Xen-devel] [PATCH 1/1] x86/PVHv2: Add memory map pointer to hvm_start_info struct

2018-03-06 Thread Daniel Kiper
On Fri, Mar 02, 2018 at 02:29:29PM -0800, Maran Wilson wrote: > On 3/2/2018 1:20 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Mar 02, 2018 at 12:54:29PM -0800, Maran Wilson wrote: > >>The start info structure that is defined as part of the x86/HVM direct boot > >>ABI and used for starting Xen PVH gu

[Xen-devel] [xen-unstable test] 120253: regressions - FAIL

2018-03-06 Thread osstest service owner
flight 120253 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/120253/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 17 debian-hvm-install/l1/l2 fail REGR. vs. 120037 Tests whic

Re: [Xen-devel] [PATCH] SUPPORT.md: Clarify stubdomain support

2018-03-06 Thread Wei Liu
On Tue, Mar 06, 2018 at 06:18:12PM +, George Dunlap wrote: > On 03/06/2018 06:08 PM, Wei Liu wrote: > > On Tue, Mar 06, 2018 at 05:08:43PM +, George Dunlap wrote: > >> We don't promise to protect you against rogue stub domain binaries; > >> only from the running domain once the guest has co

Re: [Xen-devel] Setting up a Xen x86 community call

2018-03-06 Thread Janakarajan Natarajan
On 03/02/2018 09:39 AM, Lars Kurth wrote: Hi all, (sorry for the extensive distribution list - I went through MAINTAINERS and people who may have an interest) I would like to start organizing a recurring x86 community call to discuss and sync-up on upcoming features for Xen on x86. This call w

Re: [Xen-devel] [PATCH] SUPPORT.md: Clarify stubdomain support

2018-03-06 Thread Ian Jackson
George Dunlap writes ("[PATCH] SUPPORT.md: Clarify stubdomain support"): > We don't promise to protect you against rogue stub domain binaries; > only from the running domain once the guest has come up. Acked-by: Ian Jackson ___ Xen-devel mailing list X

Re: [Xen-devel] [PATCH] SUPPORT.md: Clarify stubdomain support

2018-03-06 Thread George Dunlap
On 03/06/2018 06:08 PM, Wei Liu wrote: > On Tue, Mar 06, 2018 at 05:08:43PM +, George Dunlap wrote: >> We don't promise to protect you against rogue stub domain binaries; >> only from the running domain once the guest has come up. >> >> Signed-off-by: George Dunlap >> --- >> CC: Ian Jackson >

[Xen-devel] [xen-unstable-smoke test] 120286: tolerable all pass - PUSHED

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

Re: [Xen-devel] [PATCH 28/57] ARM: new VGIC: Add acccessor to new struct vgic_irq instance

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The new VGIC implementation centers around a struct vgic_irq instance per virtual IRQ. Provide a function to retrieve the right instance for a given IRQ number and (in case of private interrupts) the right VCPU. This also includes the correspond

Re: [Xen-devel] [PATCH] SUPPORT.md: Clarify stubdomain support

2018-03-06 Thread Wei Liu
On Tue, Mar 06, 2018 at 05:08:43PM +, George Dunlap wrote: > We don't promise to protect you against rogue stub domain binaries; > only from the running domain once the guest has come up. > > Signed-off-by: George Dunlap > --- > CC: Ian Jackson > CC: Wei Liu > CC: Andrew Cooper > CC: Jan B

Re: [Xen-devel] [PATCH 27/57] ARM: new VGIC: Add data structure definitions

2018-03-06 Thread Andre Przywara
Hi, On 06/03/18 17:46, Julien Grall wrote: > Hi Andre, > > On 05/03/18 16:03, Andre Przywara wrote: >> Add a new header file for the new and improved GIC implementation. >> The big change is that we now have a struct vgic_irq per IRQ instead >> of spreading all the information over various bitmap

Re: [Xen-devel] Merging 4.10.0-shim-comet-3 tag into staging-4.10

2018-03-06 Thread Wei Liu
On Tue, Mar 06, 2018 at 09:14:50AM -0700, Jan Beulich wrote: > >>> On 06.03.18 at 11:56, wrote: > > Wei Liu writes ("Merging 4.10.0-shim-comet-3 tag into staging-4.10"): > >> Please check if the shape and form of this branch is OK. And please > >> indicate if anything is missing. > > > > The bran

Re: [Xen-devel] [PATCH 27/57] ARM: new VGIC: Add data structure definitions

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: Add a new header file for the new and improved GIC implementation. The big change is that we now have a struct vgic_irq per IRQ instead of spreading all the information over various bitmaps in the ranks. We include this new header conditionally

Re: [Xen-devel] [PATCH 26/57] ARM: vPL011: Use the VGIC's level triggered IRQs handling if available

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The emulated ARM SBSA UART is using level triggered IRQ semantics, however the current VGIC can only handle edge triggered IRQs, really. Disable the existing workaround for this problem in case we have the new VGIC in place, which can properly h

Re: [Xen-devel] [PATCH 24/57] ARM: timer: Handle level triggered IRQs correctly

2018-03-06 Thread Julien Grall
On 06/03/18 17:15, Julien Grall wrote: On 05/03/18 16:03, Andre Przywara wrote:   /*    * Arch timer interrupt really ought to be level triggered, since the    * design of the timer/comparator mechanism is based around that diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 7411bff7a

Re: [Xen-devel] [PATCH 24/57] ARM: timer: Handle level triggered IRQs correctly

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The ARM Generic Timer uses a level-sensitive interrupt semantic. We easily catch when the line goes high, as this triggers the hardware IRQ. However we have to sync the state of the interrupt condition at certain points to catch when the line go

[Xen-devel] [PATCH] SUPPORT.md: Clarify stubdomain support

2018-03-06 Thread George Dunlap
We don't promise to protect you against rogue stub domain binaries; only from the running domain once the guest has come up. Signed-off-by: George Dunlap --- CC: Ian Jackson CC: Wei Liu CC: Andrew Cooper CC: Jan Beulich CC: Tim Deegan CC: Stefano Stabellini CC: Konrad Wilk CC: Julien Grall

Re: [Xen-devel] [PATCH 23/57] ARM: GIC: allow reading pending state of a hardware IRQ

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: To synchronize level triggered interrupts which are mapped into a guest, we need to update the virtual line level at certain points in time. For a hardware mapped interrupt the GIC is the only place where we can easily access this information. I

[Xen-devel] [PATCH] x86/mwait-idle: add Gemini Lake support

2018-03-06 Thread Jan Beulich
From: David E. Box Gemini Lake uses the same C-states as Broxton and also uses the IRTL MSR's to determine maximum C-state latency. Signed-off-by: David E. Box Acked-by: Len Brown Signed-off-by: Rafael J. Wysocki [Linux commit 1b2e87687d3f951a66900cab6f1583d94099d2f7] Signed-off-by: Jan Beuli

Re: [Xen-devel] [PATCH 22/57] ARM: GIC: Allow tweaking the active and pending state of an IRQ

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: When playing around with hardware mapped, level triggered virtual IRQs, there is the need to explicitly set the active or pending state of an interrupt at some point. To prepare the GIC for that, we introduce a set_active_state() and a set_pendi

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 17:04:41 +0100, Oleksandr Andrushchenko wrote: > > If we decide to negotiate the parameters, then it can't be done > at .open stage as well, as at this moment we don't know stream > parameters yet, e.g. we don't know the number of channels, PCM > format etc.

Re: [Xen-devel] [PATCH 20/57] ARM: GICv2: fix GICH_V2_LR definitions

2018-03-06 Thread Julien Grall
Hi, On 06/03/18 15:58, Andre Przywara wrote: Hi, On 06/03/18 15:46, Julien Grall wrote: Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The bit definition for the CPUID mask in the GICv2 LR register was wrong, fortunately the current implementation does not use that bit. Fix it up (it's s

Re: [Xen-devel] Merging 4.10.0-shim-comet-3 tag into staging-4.10

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 11:56, wrote: > Wei Liu writes ("Merging 4.10.0-shim-comet-3 tag into staging-4.10"): >> Please check if the shape and form of this branch is OK. And please >> indicate if anything is missing. > > The branch shape looks good to me. Same here - feel free to push to the actual s

Re: [Xen-devel] [PATCH 21/57] ARM: GICv2: extend LR read/write functions to cover EOI and source

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: So far our LR read/write functions do not handle the EOI bit and the source CPUID bits in an LR, because the current VGIC implementation does not use them. Extend the gic_lr data structure to hold these bits of information as well, packing it on

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 05:06 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 15:48:53 +0100, Oleksandr Andrushchenko wrote: And, now an open question for XEN comes: what kind of restriction should be applied to the frontend. Obviously it depends on the backend, so there must be some communication, and the r

Re: [Xen-devel] [PATCH 20/57] ARM: GICv2: fix GICH_V2_LR definitions

2018-03-06 Thread Andre Przywara
Hi, On 06/03/18 15:46, Julien Grall wrote: > Hi Andre, > > On 05/03/18 16:03, Andre Przywara wrote: >> The bit definition for the CPUID mask in the GICv2 LR register was >> wrong, fortunately the current implementation does not use that bit. >> Fix it up (it's starting at bit 10, not bit 9) and c

Re: [Xen-devel] [PATCH] libxl/pvh: force PVH guests to use the xenstore shutdown

2018-03-06 Thread Ian Jackson
Roger Pau Monné writes ("Re: [PATCH] libxl/pvh: force PVH guests to use the xenstore shutdown"): > On Tue, Dec 19, 2017 at 02:48:47PM +, Ian Jackson wrote: > > I think this is a candidate for backporting as far as 4.9 ? > > Yes, 4.10 only though (that's when the PVH guest type was introduced)

Re: [Xen-devel] [PATCH 20/57] ARM: GICv2: fix GICH_V2_LR definitions

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The bit definition for the CPUID mask in the GICv2 LR register was wrong, fortunately the current implementation does not use that bit. Fix it up (it's starting at bit 10, not bit 9) and clean up some nearby definitions on the way. This will be

Re: [Xen-devel] [PATCH 19/57] ARM: GICv3: poke_irq: make RWP optional

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: A GICv3 hardware implementation can be implemented in several parts that communicate with each other (think multi-socket systems). To make sure that critical settings have arrived at all endpoints, some bits are tracked using the RWP bit in the

[Xen-devel] preparations for 4.9.2 and 4.7.5

2018-03-06 Thread Jan Beulich
All, these stable releases should go out before the end of the month. Please point out backport candidates you find missing from the respective staging branches, but which you consider relevant. Please note that 4.7.5 is expected to be the last xenproject.org managed release from its branch. Jan

Re: [Xen-devel] [PATCH 18/57] ARM: GICv2: introduce gicv2_poke_irq()

2018-03-06 Thread Julien Grall
Hi, On 06/03/18 15:23, Julien Grall wrote: Hi, On 05/03/18 16:03, Andre Przywara wrote: The GICv2 uses bitmaps spanning several MMIO registers for holding some interrupt state. Similar to GICv3, add a poke helper functions to set a bit for a given irq_desc in one of those bitmaps. At the mom

Re: [Xen-devel] [PATCH 18/57] ARM: GICv2: introduce gicv2_poke_irq()

2018-03-06 Thread Julien Grall
Hi, On 05/03/18 16:03, Andre Przywara wrote: The GICv2 uses bitmaps spanning several MMIO registers for holding some interrupt state. Similar to GICv3, add a poke helper functions to set a bit for a given irq_desc in one of those bitmaps. At the moment there is only one use in gic-v2.c, but ther

Re: [Xen-devel] [PATCH 17/57] ARM: Introduce kick_vcpu()

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: If we change something in a vCPU that affects its runnability or otherwise needs the vCPU's attention, we might need to tell the scheduler about it. We are using this in one place (vIRQ injection) at the moment, but will need this at more places

[Xen-devel] [ovmf test] 120254: all pass - PUSHED

2018-03-06 Thread osstest service owner
flight 120254 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/120254/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 20203d3f98d671d7d7d78f33bbb02cf1d1b3cabe baseline version: ovmf b77e1a240e0aa222b2498

Re: [Xen-devel] [PATCH 16/57] ARM: GICv3: rename HYP interface definitions to use ICH_ prefix

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: On a GICv3 in non-compat mode the hypervisor interface is always accessed via system registers. Those register names have a "ICH_" prefix in the manual, to differentiate them from the MMIO registers. Also those registers are mostly 64-bit (compa

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 15:48:53 +0100, Oleksandr Andrushchenko wrote: > > > And, now an open question for XEN comes: what kind of restriction > > should be applied to the frontend. Obviously it depends on the > > backend, so there must be some communication, and the restriction must > >>

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 04:27 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 15:13:13 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 03:48 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 14:30:05 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 02:52 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 13:05:1

[Xen-devel] [xen-4.8-testing test] 120250: regressions - FAIL

2018-03-06 Thread osstest service owner
flight 120250 xen-4.8-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/120250/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pygrub broken in 120178 test-amd64-i386-migrupgrade

Re: [Xen-devel] [RFC 06/11] fwnode xen spacific changes

2018-03-06 Thread Julien Grall
On 06/03/18 10:27, Manish Jaggi wrote: On 01/19/2018 12:21 AM, Julien Grall wrote: Hi Manish, Please use scripts/get_maintainers.pl to CC relevant maintainers. I have done it for you this time. Title: s/spacific/specific/ On 02/01/18 09:28, manish.ja...@linaro.org wrote: From: Manish

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 15:13:13 +0100, Oleksandr Andrushchenko wrote: > > On 03/06/2018 03:48 PM, Takashi Iwai wrote: > > On Tue, 06 Mar 2018 14:30:05 +0100, > > Oleksandr Andrushchenko wrote: > >> On 03/06/2018 02:52 PM, Takashi Iwai wrote: > >>> On Tue, 06 Mar 2018 13:05:16 +0100, > >>> Oleksandr A

Re: [Xen-devel] [RFC 06/11] fwnode xen spacific changes

2018-03-06 Thread Julien Grall
On 06/03/18 13:44, Manish Jaggi wrote: Hi Julien, On 01/19/2018 12:21 AM, Julien Grall wrote: diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index 6734ae8efd..f78482ca0c 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -6,6 +6,8 @@   e

[Xen-devel] [xen-unstable-smoke test] 120282: tolerable all pass - PUSHED

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

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 03:48 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 14:30:05 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 02:52 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 13:05:16 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 01:32 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 12:25:0

Re: [Xen-devel] [PATCH 15/57] ARM: GICv2: Extend and adjust register definitions

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: The new VGIC will shortly use more bits of the various GIC registers, so add the respective definitions from the manual. This series does not seem to use any of the new value you added. Did I miss anything? Note that I am not against this pat

Re: [Xen-devel] [PATCH v2] tools/xenstore: try to get minimum thread stack size for watch thread

2018-03-06 Thread Ian Jackson
Juergen Gross writes ("Re: [Xen-devel] [PATCH v2] tools/xenstore: try to get minimum thread stack size for watch thread"): > On 06/03/18 12:24, Olaf Hering wrote: > > +ifeq ($(CONFIG_Linux),y) > > +LDLIBS_libxenstore += -ldl > > +endif > > So we need to add this to xenstore.pc, right? Yes. Ian.

Re: [Xen-devel] [PATCH 14/57] ARM: VGIC: Introduce gic_get_nr_lrs()

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: So far the number of list registers (LRs) a GIC implements is only needed in the hardware facing side of the VGIC code (gic-vgic.c). The new VGIC will need this information in more and multiple places, so export a function that returns the numbe

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 14:30:05 +0100, Oleksandr Andrushchenko wrote: > > On 03/06/2018 02:52 PM, Takashi Iwai wrote: > > On Tue, 06 Mar 2018 13:05:16 +0100, > > Oleksandr Andrushchenko wrote: > >> On 03/06/2018 01:32 PM, Takashi Iwai wrote: > >>> On Tue, 06 Mar 2018 12:25:07 +0100, > >>> Oleksandr A

Re: [Xen-devel] [PATCH 04/57] ARM: GICv3: simplify GICv3 redistributor stride handling

2018-03-06 Thread Julien Grall
On 05/03/18 17:08, Julien Grall wrote: On 05/03/18 16:03, Andre Przywara wrote: Instead of hard coding the architected redistributor stride into the code, lets use a clear #define to the two values for GICv3 and GICv4 and clarify the algorithm to determine the needed stride value. Signed-off-

Re: [Xen-devel] [RFC 06/11] fwnode xen spacific changes

2018-03-06 Thread Manish Jaggi
Hi Julien, On 01/19/2018 12:21 AM, Julien Grall wrote: diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index 6734ae8efd..f78482ca0c 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -6,6 +6,8 @@   enum device_type   {   DEV_DT, +    DEV

Re: [Xen-devel] [RFC 06/11] fwnode xen spacific changes

2018-03-06 Thread Manish Jaggi
Hi Julien, On 01/19/2018 12:21 AM, Julien Grall wrote: diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index 6734ae8efd..f78482ca0c 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -6,6 +6,8 @@   enum device_type   {   DEV_DT, +    DEV

Re: [Xen-devel] [PATCH v4 06/20] x86emul: place test blobs in executable section

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 12:28, wrote: > On 28/02/18 13:00, Jan Beulich wrote: >> --- unstable.orig/tools/tests/x86_emulator/Makefile >> +++ unstable/tools/tests/x86_emulator/Makefile >> @@ -91,7 +91,7 @@ $(addsuffix .h,$(TESTCASES)): %.h: %.c t >> $(MAKE) -f testcase.mk TESTCASE=$* XEN_TAR

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 02:52 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 13:05:16 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 01:32 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 12:25:07 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 12:52 PM, Takashi Iwai wrote: On Mon, 05 Feb 2018 09:24:5

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 13:05:16 +0100, Oleksandr Andrushchenko wrote: > > On 03/06/2018 01:32 PM, Takashi Iwai wrote: > > On Tue, 06 Mar 2018 12:25:07 +0100, > > Oleksandr Andrushchenko wrote: > >> On 03/06/2018 12:52 PM, Takashi Iwai wrote: > >>> On Mon, 05 Feb 2018 09:24:58 +0100, > >>> Oleksandr A

Re: [Xen-devel] [Qemu-devel] [PATCH v2 08/30] hw/i386: use the BYTE-based definitions

2018-03-06 Thread Igor Mammedov
On Mon, 5 Mar 2018 08:27:10 -0300 Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé My apolog

Re: [Xen-devel] [PATCH v2] tools/xenstore: try to get minimum thread stack size for watch thread

2018-03-06 Thread Juergen Gross
On 06/03/18 12:24, Olaf Hering wrote: > On Fri, Mar 02, Wei Liu wrote: > >> But still, Juergen must have tested the change, so I wonder why it >> doesn't work in your setup. What is your build environment? Gcc version? > > Unclear what the difference is between building in clean chroot and locall

Re: [Xen-devel] [PATCH v3] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 12:07, wrote: > On 06/03/18 10:41, Olaf Hering wrote: >> With this option the host admin can decide how a domU should behave when >> it is migrated across systems of the same class. Since there is always >> some jitter when Xen calibrates the cpu_khz value, all hosts of the same

Re: [Xen-devel] [Xen-users] Only one CPU available to Xen? (nr_cpus : 1)

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 12:50, wrote: > Regarding the second method of having UEFI loading directly the Xen > EFI, I tried this out yesterday using the instructions on the Xen wiki > (https://wiki.xenproject.org/wiki/Xen_EFI#Xen_as_EFI_binary_.28loading.29) > but I get the following error message right

Re: [Xen-devel] [PATCH v3] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-06 Thread Olaf Hering
Am Tue, 6 Mar 2018 11:07:54 + schrieb Andrew Cooper : > We should see about using better sources of information.  For one, many > Intel systems actually expose the TSC frequency in the bottom of the > PLATFORM_INFO MSR, although this isn't architectural, and has been > replaced with CPUID info

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 01:32 PM, Takashi Iwai wrote: On Tue, 06 Mar 2018 12:25:07 +0100, Oleksandr Andrushchenko wrote: On 03/06/2018 12:52 PM, Takashi Iwai wrote: On Mon, 05 Feb 2018 09:24:58 +0100, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Hi, all! Foreword This change

Re: [Xen-devel] [PATCH 12/57] ARM: VGIC: carve out struct vgic_cpu and struct vgic_dist

2018-03-06 Thread Julien Grall
Hi Andre, On 05/03/18 16:03, Andre Przywara wrote: Currently we describe the VGIC specific fields in a structure *embedded* in struct arch_domain and struct arch_vcpu. These members there are however related to the current VGIC implementation, and will be substantially different in the future. T

Re: [Xen-devel] [PATCH 11/57] ARM: VGIC: change to level-IRQ compatible IRQ injection interface

2018-03-06 Thread Julien Grall
Hi, On 05/03/18 16:03, Andre Przywara wrote: At the moment vgic_vcpu_inject_irq() is the interface for Xen internal code and virtual devices to inject IRQs into a guest. This interface has two shortcomings: 1) It requires a VCPU pointer, which we may not know (and don't need!) for shared interru

Re: [Xen-devel] [PATCH] xen/arm: p2m: Prevent deadlock when using memaccess

2018-03-06 Thread Sergej Proskurin
Hi Julien, On 03/06/2018 12:37 PM, Julien Grall wrote: > On 06/03/18 11:06, Sergej Proskurin wrote: >> Hi Julien, > > Hi Sergej, > >> >> On 02/28/2018 04:25 PM, Julien Grall wrote: >>> Commit 7d623b358a4 "arm/mem_access: Add long-descriptor based gpt" >>> assumed the read-write lock can be taken

Re: [Xen-devel] [Xen-users] Only one CPU available to Xen? (nr_cpus : 1)

2018-03-06 Thread John Naggets
On Tue, Mar 6, 2018 at 11:39 AM, Jan Beulich wrote: > As indicated in another reply, try using GrUB's "chainloader" > directive or boot xen.efi directly from the EFI shell or the EFI > boot loader. Sorry for my naive question but how do I chainload Xen with GRUB? I did not find any documentation

Re: [Xen-devel] [PATCH 10/57] ARM: VGIC: rename gic_event_needs_delivery()

2018-03-06 Thread Julien Grall
Hi, On 05/03/18 16:03, Andre Przywara wrote: gic_event_needs_delivery() is not named very intuitively, especially the gic_ prefix is somewhat misleading. Rename it to vgic_pending_irq(), which makes it clear that this relates to the virtual GIC and is about interrupts. Signed-off-by: Andre Przy

Re: [Xen-devel] Merging 4.10.0-shim-comet-3 tag into staging-4.10

2018-03-06 Thread Wei Liu
On Mon, Mar 05, 2018 at 07:44:49PM +, Wei Liu wrote: > Building that branch seems to produce the expected binaries. I will do > some smoke tests tomorrow to make sure I haven't screwed things up. Travis build result is positive for both x86 and ARM (although ARM tools aren't built yet). Teste

Re: [Xen-devel] [RFC QEMU PATCH v4 00/10] Implement vNVDIMM for Xen HVM guest

2018-03-06 Thread Anthony PERARD
On Tue, Mar 06, 2018 at 12:16:08PM +0800, Haozhong Zhang wrote: > On 03/02/18 12:03 +, Anthony PERARD wrote: > > On Wed, Feb 28, 2018 at 05:36:59PM +0800, Haozhong Zhang wrote: > > > On 02/27/18 17:22 +, Anthony PERARD wrote: > > > > On Thu, Dec 07, 2017 at 06:18:02PM +0800, Haozhong Zhang

Re: [Xen-devel] [PATCH] xen/arm: p2m: Prevent deadlock when using memaccess

2018-03-06 Thread Julien Grall
On 06/03/18 11:06, Sergej Proskurin wrote: Hi Julien, Hi Sergej, On 02/28/2018 04:25 PM, Julien Grall wrote: Commit 7d623b358a4 "arm/mem_access: Add long-descriptor based gpt" assumed the read-write lock can be taken recursively. However, this assumption is wrong and will lead to deadlock w

Re: [Xen-devel] [PATCH v3] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-06 Thread Olaf Hering
Am Tue, 6 Mar 2018 11:07:54 + schrieb Andrew Cooper : > > One option to avoid the TSC option is to run domUs with tsc_mode=native. > > This has the drawback that migrating a domU from a "2.3GHz" class host > > to a "2.4GHz" class host may change the rate at wich the TSC counter > > increases,

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Tue, 06 Mar 2018 12:25:07 +0100, Oleksandr Andrushchenko wrote: > > On 03/06/2018 12:52 PM, Takashi Iwai wrote: > > On Mon, 05 Feb 2018 09:24:58 +0100, > > Oleksandr Andrushchenko wrote: > >> From: Oleksandr Andrushchenko > >> > >> Hi, all! > >> > >> Foreword > >> > >> > >> This chang

Re: [Xen-devel] [PATCH v4 06/20] x86emul: place test blobs in executable section

2018-03-06 Thread Andrew Cooper
On 28/02/18 13:00, Jan Beulich wrote: > This allows the section contents to be disassembled without going > through any extra hoops, simplifying the analysis of problems in test > and/or emulation code. > > The blobs being emitted as (r/o) data means we need to accept an > assembler warning here (a

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Oleksandr Andrushchenko
On 03/06/2018 12:52 PM, Takashi Iwai wrote: On Mon, 05 Feb 2018 09:24:58 +0100, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Hi, all! Foreword This change is aimed to add support for explicit back and front synchronization during playback and capture in response to c

Re: [Xen-devel] [PATCH v2] tools/xenstore: try to get minimum thread stack size for watch thread

2018-03-06 Thread Olaf Hering
On Fri, Mar 02, Wei Liu wrote: > But still, Juergen must have tested the change, so I wonder why it > doesn't work in your setup. What is your build environment? Gcc version? Unclear what the difference is between building in clean chroot and locally. This change fixes it for me: --- a/tools/Rul

Re: [Xen-devel] [PATCH v3] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-06 Thread Olaf Hering
Am Tue, 6 Mar 2018 11:07:54 + schrieb Andrew Cooper : > This looks like it should be part of the set_tsc_info hypercall, not a > separate hypercall. How would one adjust the value at runtime with set_tsc_info of a running domU? It seems to me set_tsc_info does way more than just applying some

Re: [Xen-devel] [PATCH] xen/arm: p2m: Prevent deadlock when using memaccess

2018-03-06 Thread Julien Grall
Hi Stefano, On 02/03/18 23:42, Stefano Stabellini wrote: On Wed, 28 Feb 2018, Julien Grall wrote: Commit 7d623b358a4 "arm/mem_access: Add long-descriptor based gpt" assumed the read-write lock can be taken recursively. However, this assumption is wrong and will lead to deadlock when the lock is

Re: [Xen-devel] [PATCH 01/57] tools: ARM: vGICv3: Avoid inserting optional DT properties

2018-03-06 Thread Julien Grall
On 05/03/18 17:18, Wei Liu wrote: On Mon, Mar 05, 2018 at 04:39:09PM +, Julien Grall wrote: (+ tools maintainers) Hi Andre, Please don't forget to CC the relevant maintainers. On 05/03/18 16:03, Andre Przywara wrote: When creating a GICv3 devicetree node, we currently insert the redist

Re: [Xen-devel] Merging 4.10.0-shim-comet-3 tag into staging-4.10

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 11:41, wrote: > On Tue, Mar 06, 2018 at 01:21:52AM -0700, Jan Beulich wrote: >> >>> On 05.03.18 at 20:44, wrote: >> > I merged 4.10.0-shim-comet-3 tag into staging-4.10, went through all >> > commits since then and cherry-picked relevant patches from master to >> > staging-4.10

Re: [Xen-devel] [xen-4.9-testing test] 120239: regressions - FAIL

2018-03-06 Thread Jan Beulich
>>> On 06.03.18 at 12:01, wrote: > Jan Beulich writes ("Re: [Xen-devel] [xen-4.9-testing test] 120239: > regressions - > FAIL"): >> (other than >> adding "async-show-all", as already suggested in the reply to that >> other flight report). > > Thanks for the reminder. I'm about to push the patc

Re: [Xen-devel] [PATCH v1] pv_console: remove unnecessary #ifdefs

2018-03-06 Thread Wei Liu
On Tue, Mar 06, 2018 at 08:51:56AM +, Sergey Dyasli wrote: > The header for PV console contains empty function definitions in case of > !CONFIG_XEN_GUEST specially to avoid #ifdefs in a code that uses them > to make the code look cleaner. > > Unfortunately, during the release of shim-comet, PV

Re: [Xen-devel] [PATCH v3] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-06 Thread Andrew Cooper
On 06/03/18 10:41, Olaf Hering wrote: > Add an option to control when vTSC emulation will be activated for a > domU with tsc_mode=default. Without such option each TSC access from > domU will be emulated, which causes a significant perfomance drop for > workloads that make use of rdtsc. > > Add a n

Re: [Xen-devel] [PATCH] xen/arm: p2m: Prevent deadlock when using memaccess

2018-03-06 Thread Sergej Proskurin
Hi Julien, On 02/28/2018 04:25 PM, Julien Grall wrote: > Commit 7d623b358a4 "arm/mem_access: Add long-descriptor based gpt" > assumed the read-write lock can be taken recursively. However, this > assumption is wrong and will lead to deadlock when the lock is > contended. > > To avoid the nested l

Re: [Xen-devel] [xen-4.9-testing test] 120239: regressions - FAIL

2018-03-06 Thread Ian Jackson
Jan Beulich writes ("Re: [Xen-devel] [xen-4.9-testing test] 120239: regressions - FAIL"): > (other than > adding "async-show-all", as already suggested in the reply to that > other flight report). Thanks for the reminder. I'm about to push the patch below. I looked at the docs for async-show-al

Re: [Xen-devel] [PATCH] xen: xenbus: use put_device() instead of kfree()

2018-03-06 Thread Juergen Gross
On 06/03/18 11:10, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error! Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind Yadav Reviewed-by: Juergen Gross Juergen __

Re: [Xen-devel] [PATCH v4 7/7] xen/arm: disable CPUs with different dcache line sizes

2018-03-06 Thread Julien Grall
Hi Stefano, Something is wrong with your threading again. Patch #2-7 have "In-Reply-To" matching patch #1 and not the cover letter. On 02/03/18 19:06, Stefano Stabellini wrote: Even different cpus in big.LITTLE systems are expected to have the same dcache line size. Unless the minimum of all

Re: [Xen-devel] Merging 4.10.0-shim-comet-3 tag into staging-4.10

2018-03-06 Thread Ian Jackson
Wei Liu writes ("Merging 4.10.0-shim-comet-3 tag into staging-4.10"): > Please check if the shape and form of this branch is OK. And please > indicate if anything is missing. The branch shape looks good to me. > Building that branch seems to produce the expected binaries. I will do > some smoke t

Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization

2018-03-06 Thread Takashi Iwai
On Mon, 05 Feb 2018 09:24:58 +0100, Oleksandr Andrushchenko wrote: > > From: Oleksandr Andrushchenko > > Hi, all! > > Foreword > > > This change is aimed to add support for explicit back and front > synchronization during playback and capture in response to comments > raised during up

  1   2   >