Re: [Xen-devel] X86 Community Call: Wed March 14, 15:00 - 16:00 UTC - Meeting Minutes

2018-04-12 Thread Ji, John
Agree with Chao. This is more accurate statement. We have spent lots of effort on adding vIOMMU support with irq remapping and should continue after George wraps up vNVDIMM design discussions with us in this short period. Best Regards John Ji -Original Message- From: Gao, Chao

Re: [Xen-devel] bug in _shadow_prealloc during migration of PV domU

2018-04-12 Thread Jan Beulich
>>> On 11.04.18 at 22:32, wrote: > I was testing 'virsh migrate domU host' and did some libvirtd debugging > on 'host'. This means the migration was attempted a few times, but did > not actually start because libvirtd was in gdb. Not sure if libvirt on > the sender does anything

[Xen-devel] Linux Dom0 console handling (again)

2018-04-12 Thread Jan Beulich
Jürgen, Boris, looks like commit 47b02f4c62 ("x86/xen: add tty0 and hvc0 as preferred consoles for dom0") doesn't get us quite there yet - non- kernel boot output (and a console prompt) still doesn't appear on the screen. For now I'm using --- a/arch/x86/xen/enlighten_pv.c +++

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread George Dunlap
> On Apr 11, 2018, at 10:31 PM, Dario Faggioli wrote: > > Il Mer 11 Apr 2018, 22:48 Olaf Hering ha scritto: > On Wed, Apr 11, Dario Faggioli wrote: > > > It will crash, again, possibly with the same stack trace, but I think > > it's worth a try. > >

Re: [Xen-devel] [PATCH v2 2/2] x86: correct ordering of operations during S3 resume

2018-04-12 Thread Jan Beulich
>>> On 11.04.18 at 22:21, wrote: > @@ -243,17 +244,21 @@ static int enter_state(u32 state) > if ( (state == ACPI_STATE_S3) && error ) > tboot_s3_error(error); > > +console_end_sync(); > + > +error = microcode_resume_cpu(0); > +if (error &&

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Jan Beulich
>>> On 11.04.18 at 23:31, wrote: > Il Mer 11 Apr 2018, 22:48 Olaf Hering ha scritto: > >> On Wed, Apr 11, Dario Faggioli wrote: >> >> > It will crash, again, possibly with the same stack trace, but I think >> > it's worth a try. >> >>

[Xen-devel] [xen-unstable test] 122170: tolerable FAIL - PUSHED

2018-04-12 Thread osstest service owner
flight 122170 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/122170/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 14 saverestore-support-checkfail like 122155 test-armhf-armhf-libvirt-xsm 14

Re: [Xen-devel] X86 Community Call: Wed March 14, 15:00 - 16:00 UTC - Meeting Minutes

2018-04-12 Thread Lars Kurth
> On 12 Apr 2018, at 08:32, George Dunlap wrote: > > > >> On Apr 12, 2018, at 2:18 AM, Chao Gao wrote: >> >> On Wed, Apr 11, 2018 at 05:10:40PM +, Lars Kurth wrote: >>> ## Longer Term - Agreed to Pause >>> >>> ### [PATCH v4 00/28] add

Re: [Xen-devel] [PATCH 4/7] xen/arm: When CPU dies, free percpu area immediatelly

2018-04-12 Thread Julien Grall
On 12/04/18 00:46, Stefano Stabellini wrote: On Wed, 11 Apr 2018, Julien Grall wrote: On 11/04/18 14:19, Mirela Simonovic wrote: Freeing percpu area is done when a non-boot CPU is disabled upon suspend. This use to be scheduled for execution after a period of time, what caused the following

Re: [Xen-devel] [PATCH 7/7] xen/arm: Restore IRQ affinity after hotplugging a CPU

2018-04-12 Thread Mirela Simonovic
Hi Stefano, v->processor has to be updated before the sched_move_irqs is called. Since updating v->processor is done after the 'if (v->affinity_broken)' check I had to put sched_move_irqs below, where it is. Thanks, Mirela On Thu, Apr 12, 2018 at 2:20 AM, Stefano Stabellini

Re: [Xen-devel] bug in _shadow_prealloc during migration of PV domU

2018-04-12 Thread Juergen Gross
On 11/04/18 22:32, Olaf Hering wrote: > I was testing 'virsh migrate domU host' and did some libvirtd debugging > on 'host'. This means the migration was attempted a few times, but did > not actually start because libvirtd was in gdb. Not sure if libvirt on > the sender does anything with the domU

Re: [Xen-devel] [PATCH 5/7] xen/arm: Remove __initdata and __init to enable CPU hotplug

2018-04-12 Thread Julien Grall
Hi, On 12/04/18 01:07, Stefano Stabellini wrote: On Wed, 11 Apr 2018, Mirela Simonovic wrote: diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index 5666efcd3a..d15ea8df5e 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -52,8 +52,8 @@ nodemask_t __read_mostly

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 11.04.18 at 13:53, wrote: > > * Jan Beulich wrote: > > > >> Additionally, x86 maintainers: is there a particular reason this (or > >> any functionally equivalent patch) isn't upstream yet? As indicated > >>

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 12.04.18 at 09:32, wrote: > > > * Jan Beulich wrote: > > > >> >>> On 11.04.18 at 13:53, wrote: > >> > * Jan Beulich wrote: > >> > > >> >> Additionally, x86

Re: [Xen-devel] Weird altp2m behaviour when switching early to a new view

2018-04-12 Thread Razvan Cojocaru
On 04/11/2018 11:17 PM, Tamas K Lengyel wrote: > On Wed, Apr 11, 2018 at 12:39 AM, Razvan Cojocaru > wrote: >> Also related to this part of the altp2m design, I've also noticed that >> creating a new EPT view with libxc involves this function: >> >> int

Re: [Xen-devel] X86 Community Call: Wed March 14, 15:00 - 16:00 UTC - Meeting Minutes

2018-04-12 Thread George Dunlap
> On Apr 12, 2018, at 2:18 AM, Chao Gao wrote: > > On Wed, Apr 11, 2018 at 05:10:40PM +, Lars Kurth wrote: >> ## Longer Term - Agreed to Pause >> >> ### [PATCH v4 00/28] add vIOMMU support with irq remapping function of >> ### virtual VT-d >> >> Sent in for meeting

Re: [Xen-devel] [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-12 Thread Jan Beulich
>>> On 12.04.18 at 09:32, wrote: > * Jan Beulich wrote: > >> >>> On 11.04.18 at 13:53, wrote: >> > * Jan Beulich wrote: >> > >> >> Additionally, x86 maintainers: is there a particular reason this (or >> >> any

Re: [Xen-devel] [PATCH 0/7] xen/arm: CPU hotplug fixes

2018-04-12 Thread Julien Grall
On 11/04/18 17:37, Mirela Simonovic wrote: Hi Julien, Hi, May I ask you to configure your mail client to use > for quoting and use plain text? Otherwise, this is going to be really difficult to follow the discussion after few round (see already below). On Wed, Apr 11, 2018 at 6:02 PM,

Re: [Xen-devel] bug in _shadow_prealloc during migration of PV domU

2018-04-12 Thread Juergen Gross
On 12/04/18 10:01, Juergen Gross wrote: > On 11/04/18 22:32, Olaf Hering wrote: >> I was testing 'virsh migrate domU host' and did some libvirtd debugging >> on 'host'. This means the migration was attempted a few times, but did >> not actually start because libvirtd was in gdb. Not sure if

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Dario Faggioli
On Thu, 2018-04-12 at 09:38 +, George Dunlap wrote: > > On Apr 11, 2018, at 10:31 PM, Dario Faggioli > > wrote: > > (XEN) Xen BUG at sched_credit.c:876 > > (XEN) [ Xen-4.11.20180410T125709.50f8ba84a5- > > 7.bug1087289_411 x86_64 debug=y Not tainted ] > > (XEN)

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

2018-04-12 Thread osstest service owner
flight 122172 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/122172/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-shadow 21 guest-start.2fail REGR. vs. 122143

Re: [Xen-devel] [PATCH 3/7] xen/arm/psci: Implement CPU_OFF PSCI call (physical interface)

2018-04-12 Thread Mirela Simonovic
Hi Julien, On Wed, Apr 11, 2018 at 4:46 PM, Julien Grall wrote: > Hi, > > On 11/04/18 14:19, Mirela Simonovic wrote: >> >> This patch adds the PSCI CPU_OFF call to the EL3 in order to >> trigger powering down of the calling CPU when the CPU is stopped. >> If CPU_OFF call

Re: [Xen-devel] [PATCH 2/7] xen/arm/vgic-v2: Ignore write to GICD_ISACTIVERn registers

2018-04-12 Thread Mirela Simonovic
Hi, On Thu, Apr 12, 2018 at 1:31 AM, Stefano Stabellini wrote: > On Wed, 11 Apr 2018, Julien Grall wrote: >> On 11/04/18 14:19, Mirela Simonovic wrote: >> > Guests attempt to write into these registers on resume (for example Linux). >> > Without this patch a data abort

[Xen-devel] [PATCH] tools/kdd: silence gcc 8 warning a different way

2018-04-12 Thread Jan Beulich
Older gcc doesn't like "#pragma GCC diagnostic" inside functions. Signed-off-by: Jan Beulich --- a/tools/debugger/kdd/kdd.c +++ b/tools/debugger/kdd/kdd.c @@ -695,10 +695,10 @@ static void kdd_handle_read_ctrl(kdd_sta KDD_LOG(s, "Request outside of known control

[Xen-devel] [PATCH for-4.11 v3 0/11] Provide support matrix generator

2018-04-12 Thread Ian Jackson
This series provides code to generate a feature support matrix, to replace the one on the wiki. You can see an example of the output here: https://xenbits.xen.org/people/iwj/2018/support-matrix-example-v3a/t.html https://xenbits.xen.org/people/iwj/2018/support-matrix-example-v3b/t.html There

[Xen-devel] [PATCH 02/11] SUPPORT.md: Syntax: Fix a typo "States"

2018-04-12 Thread Ian Jackson
Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: George Dunlap Acked-by: Lars Kurth --- SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORT.md

[Xen-devel] [PATCH 09/11] docs: Provide support-matrix-generate, to generate a support matrix in HTML

2018-04-12 Thread Ian Jackson
This archaeology script: - figures out what the current and previous Xen versions were - looks for appropriate git branches for them - finds SUPPORT.md for each one - feeds its findings to parse-support-md We do not intend to integrate this into docs/Makefile, because it relies on the git

[Xen-devel] [PATCH 07/11] docs/Makefile: Format SUPPORT.md into the toplevel

2018-04-12 Thread Ian Jackson
Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: Lars Kurth --- docs/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index d82463f..b300bb6

[Xen-devel] [PATCH 01/11] SUPPORT.md: Syntax: Fix some bullet lists

2018-04-12 Thread Ian Jackson
Continuations of bullet list items must be indented by exactly 4 spaces (according to pandoc_markdown(5) on Debian jessie). This is most easily achieved by making the bullet list items have two spaces before the `*'. Signed-off-by: Ian Jackson Release-acked-by:

[Xen-devel] [PATCH 03/11] SUPPORT.md: Syntax: Provide a title rather than a spurious empty section

2018-04-12 Thread Ian Jackson
This commits (more or less) this file to be processed with pandoc, rather than other markdown processors. There is, unfortunately, no widely-accepted way to declare a title for the document. I tested feeding the document to markdown(1) on Debian jessie and it reproduced the % line as if it were

[Xen-devel] [PATCH 10/11] docs/parse-support-md: Unify identical [*] in footnotes

2018-04-12 Thread Ian Jackson
A section in the SUPPORT.md may mention multiple Status, something: Supported and then have some text. The text is linked to from [*] footnotes in the table. But, this means that each bit of text needs to apply to multiple rows. Before this commit this was a separate [*] after each

[Xen-devel] [PATCH 11/11] docs/parse-support-md: Identical [*]: only use extra table cell if necessary

2018-04-12 Thread Ian Jackson
Otherwise paste [*] right onto the end. I'm not sure if this is desirable. Signed-off-by: Ian Jackson --- v3: New patch --- docs/parse-support-md | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/parse-support-md

[Xen-devel] [PATCH 08/11] docs: Provide parse-support-md

2018-04-12 Thread Ian Jackson
This utility reads json format pandoc output, from parsing one or more SUPPORT.md files, and generates an HTML table element containing the principal version and feature information. This is rather hairier than I anticipated when I started out; hence the 400-odd-line Perl script. Machinery to

[Xen-devel] [PATCH 06/11] docs/Makefile: Introduce GENERATE_PANDOC_RULE_RAW

2018-04-12 Thread Ian Jackson
We are going to want to format SUPPORT.md which does not match the filename patterns in docs/. So provide a way to make an ad-hoc rule using pandoc with the standard options. No functional change in this patch. Signed-off-by: Ian Jackson Release-acked-by: Juergen

Re: [Xen-devel] [PATCH 5/7] xen/arm: Remove __initdata and __init to enable CPU hotplug

2018-04-12 Thread Mirela Simonovic
Hi Julien, On Thu, Apr 12, 2018 at 2:56 PM, Julien Grall wrote: > Hi, > > On 12/04/18 13:50, Mirela Simonovic wrote: >> >> Hi, >> >> On Thu, Apr 12, 2018 at 11:03 AM, Julien Grall >> wrote: >>> >>> Hi, >>> >>> On 12/04/18 01:07, Stefano Stabellini

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

2018-04-12 Thread Oleksandr Andrushchenko
On 04/12/2018 05:31 PM, Konrad Rzeszutek Wilk wrote: On Wed, Mar 21, 2018 at 09:15:36AM +0200, Oleksandr Andrushchenko wrote: On 03/20/2018 10:22 PM, Takashi Iwai wrote: On Mon, 19 Mar 2018 08:22:19 +0100, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko

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

2018-04-12 Thread osstest service owner
flight 122178 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/122178/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 153f5c7a93be09403891404c06e5b0e24eb019a3 baseline version: ovmf

Re: [Xen-devel] [RFC v2] xen/arm: Suspend to RAM Support in Xen for ARM

2018-04-12 Thread Mirela Simonovic
Hi Peng, Sorry for late response, this email got buried and I accidentally saw it now. On Thu, Apr 12, 2018 at 4:26 AM, Peng Fan wrote: > Hi Edgar, > >> -Original Message- >> From: Edgar E. Iglesias [mailto:edgar.igles...@xilinx.com] >> Sent: 2018年3月26日 19:43 >> To:

Re: [Xen-devel] possible I/O emulation state machine issue

2018-04-12 Thread Jan Beulich
>>> On 28.03.18 at 18:35, wrote: > Its one of the many items on the TODO list, along with maintaining a > proper virtual TLB to avoid rewalks during a single emulation. Having thought about this some more I agree that for correctness a virtual TLB would be sufficient.

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

2018-04-12 Thread Konrad Rzeszutek Wilk
On Wed, Mar 21, 2018 at 09:15:36AM +0200, Oleksandr Andrushchenko wrote: > On 03/20/2018 10:22 PM, Takashi Iwai wrote: > > On Mon, 19 Mar 2018 08:22:19 +0100, > > Oleksandr Andrushchenko wrote: > > > From: Oleksandr Andrushchenko > > > > > > Hello, all! > > > >

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Olaf Hering
Am Thu, 12 Apr 2018 12:16:34 +0200 schrieb Dario Faggioli : > Olaf, new patch. Please, remove _everything_ and apply _only_ this one. dies after the first iteration. BUG_ON(!test_bit(_VPF_migrating, >pause_flags)); (XEN) Xen BUG at schedule.c:1570 (XEN) [

Re: [Xen-devel] [PATCH 5/7] xen/arm: Remove __initdata and __init to enable CPU hotplug

2018-04-12 Thread Julien Grall
Hi, On 12/04/18 13:50, Mirela Simonovic wrote: Hi, On Thu, Apr 12, 2018 at 11:03 AM, Julien Grall wrote: Hi, On 12/04/18 01:07, Stefano Stabellini wrote: On Wed, 11 Apr 2018, Mirela Simonovic wrote: diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Dario Faggioli
On Thu, 2018-04-12 at 14:45 +0200, Olaf Hering wrote: > Am Thu, 12 Apr 2018 12:16:34 +0200 > schrieb Dario Faggioli : > > > Olaf, new patch. Please, remove _everything_ and apply _only_ this > > one. > > dies after the first iteration. > >

[Xen-devel] [PATCH 05/11] docs/gen-html-index: Support documents at the toplevel

2018-04-12 Thread Ian Jackson
There are none yet. Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: Lars Kurth --- docs/gen-html-index | 4 1 file changed, 4 insertions(+) diff --git a/docs/gen-html-index b/docs/gen-html-index

Re: [Xen-devel] [PATCH 5/7] xen/arm: Remove __initdata and __init to enable CPU hotplug

2018-04-12 Thread Mirela Simonovic
Hi, On Thu, Apr 12, 2018 at 11:03 AM, Julien Grall wrote: > Hi, > > On 12/04/18 01:07, Stefano Stabellini wrote: >> >> On Wed, 11 Apr 2018, Mirela Simonovic wrote: >>> >>> diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c >>> index 5666efcd3a..d15ea8df5e 100644

[Xen-devel] [PATCH 04/11] docs/gen-html-index: Extract titles from HTML documents

2018-04-12 Thread Ian Jackson
Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: Lars Kurth --- docs/gen-html-index | 13 + 1 file changed, 13 insertions(+) diff --git a/docs/gen-html-index b/docs/gen-html-index index

Re: [Xen-devel] [PATCH 10/11] docs/parse-support-md: Unify identical [*] in footnotes

2018-04-12 Thread Juergen Gross
On 12/04/18 14:28, Ian Jackson wrote: > A section in the SUPPORT.md may mention multiple >Status, something: Supported > and then have some text. The text is linked to from [*] footnotes > in the table. But, this means that each bit of text needs to > apply to multiple rows. > > Before this

Re: [Xen-devel] [PATCH 11/11] docs/parse-support-md: Identical [*]: only use extra table cell if necessary

2018-04-12 Thread Juergen Gross
On 12/04/18 14:28, Ian Jackson wrote: > Otherwise paste [*] right onto the end. > > I'm not sure if this is desirable. > > Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Juergen ___

Re: [Xen-devel] [PATCH 3/7] xen/arm/psci: Implement CPU_OFF PSCI call (physical interface)

2018-04-12 Thread Julien Grall
On 12/04/18 12:33, Mirela Simonovic wrote: On Wed, Apr 11, 2018 at 4:46 PM, Julien Grall wrote: On 11/04/18 14:19, Mirela Simonovic wrote: local_irq_disable(); cpu_is_dead = true; /* Make sure the write happens before we sleep forever */

Re: [Xen-devel] [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization

2018-04-12 Thread Boris Ostrovsky
On 04/12/2018 12:55 PM, Oleksandr Andrushchenko wrote: > On 04/12/2018 07:55 PM, Boris Ostrovsky wrote: >> On 04/12/2018 12:11 PM, Oleksandr Andrushchenko wrote: >>> Hello, Konrad, Takashi! >>> >>> Could you please review the *Linux Kernel* version of the changes? >>> As I said in the cover letter

Re: [Xen-devel] [PATCH for-4.11 v3 0/11] Provide support matrix generator

2018-04-12 Thread Lars Kurth
On 12/04/2018, 13:28, "Ian Jackson" wrote: This series provides code to generate a feature support matrix, to replace the one on the wiki. You can see an example of the output here:

Re: [Xen-devel] Weird altp2m behaviour when switching early to a new view

2018-04-12 Thread Razvan Cojocaru
On 04/11/2018 11:04 AM, Razvan Cojocaru wrote: >> After much debugging, it turns out that the >> "p2m_is_ram(p2mt)" test in hvm_hap_nested_page_fault() fails if I switch >> to the new altp2m view fast enough, and that in turn disables the >> logdirty processing gated on it > > Actually as it

[Xen-devel] [PATCH 01/11] SUPPORT.md: Syntax: Fix some bullet lists

2018-04-12 Thread Ian Jackson
Continuations of bullet list items must be indented by exactly 4 spaces (according to pandoc_markdown(5) on Debian jessie). This is most easily achieved by making the bullet list items have two spaces before the `*'. Signed-off-by: Ian Jackson Release-acked-by:

Re: [Xen-devel] [PATCH 01/11] SUPPORT.md: Syntax: Fix some bullet lists

2018-04-12 Thread Ian Jackson
Ian Jackson writes ("[PATCH 01/11] SUPPORT.md: Syntax: Fix some bullet lists"): > Continuations of bullet list items must be indented by exactly 4 > spaces (according to pandoc_markdown(5) on Debian jessie). Please disregard this and the next mail, which were sent by mistake. I think I managed to

[Xen-devel] [xen-unstable-smoke test] 122191: regressions - trouble: blocked/fail

2018-04-12 Thread osstest service owner
flight 122191 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/122191/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm 6 xen-buildfail REGR. vs. 122174 build-amd64

[Xen-devel] [xen-unstable-smoke test] 122193: regressions - trouble: blocked/fail

2018-04-12 Thread osstest service owner
flight 122193 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/122193/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm 6 xen-buildfail REGR. vs. 122174 build-amd64

Re: [Xen-devel] Setting up a call to discuss PCI Emulation - Future Direction

2018-04-12 Thread Lars Kurth
On 12/04/2018, 17:41, "Roger Pau Monne" wrote: On Thu, Apr 12, 2018 at 05:32:57PM +0100, Lars Kurth wrote: >may work. For me Mon, Wed and Fri’s generally work at those time-slots. >Next week is a little busy for me, so I would prefer the following

Re: [Xen-devel] [PATCH 7/7] xen/arm: Restore IRQ affinity after hotplugging a CPU

2018-04-12 Thread Dario Faggioli
On Wed, 2018-04-11 at 15:19 +0200, Mirela Simonovic wrote: > Secondary pCPUs will be offlined on system suspend and hotplugged > on resume. When offlining secondary CPUs all interrupts targeted > to those CPUs will be routed to the boot CPU. The boot CPU > is responsible for finalizing suspend

[Xen-devel] [GIT PULL] xen: fixes for 4.17-rc1

2018-04-12 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.17-rc1-tag xen: fixes for 4.17-rc1 It contains only a few fixes of Xen related core code and drivers. Thanks. Juergen arch/x86/xen/enlighten_pv.c | 8

[Xen-devel] [PATCH 5/5] xen/sndif: Add explicit back and front parameter negotiation

2018-04-12 Thread Oleksandr Andrushchenko
In order to provide explicit stream parameter negotiation between backend and frontend the following changes are introduced in the protocol: add XENSND_OP_HW_PARAM_QUERY request to read/update configuration space for the parameters given: request passes desired parameter's intervals/masks and the

[Xen-devel] [PATCH 4/5] xen/sndif: Add explicit back and front synchronization

2018-04-12 Thread Oleksandr Andrushchenko
In order to provide explicit synchronization between backend and frontend the following changes are introduced in the protocol: - add new ring buffer for sending asynchronous events from backend to frontend to report number of bytes played by the frontend (XENSND_EVT_CUR_POS) - introduce

[Xen-devel] [PATCH 1/5] xen/sndif: Introduce protocol version

2018-04-12 Thread Oleksandr Andrushchenko
Protocol version was referenced in the protocol description, but missed its definition. Fix this by adding a constant for current protocol version. Signed-off-by: Oleksandr Andrushchenko --- include/xen/interface/io/sndif.h | 7 +++ 1 file changed, 7

[Xen-devel] [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization

2018-04-12 Thread Oleksandr Andrushchenko
Hello, all! This is the syncup version of the sound protocol changes for Linux Kernel with the only difference from the corresponding Xen version being spaces to tabs conversion. Regradless of this only change I have dropped R-b tags received for Xen version. In order to provide explicit

Re: [Xen-devel] [PATCH for-4.11 v3 0/11] Provide support matrix generator

2018-04-12 Thread Ian Jackson
Ian Jackson writes ("Re: [PATCH for-4.11 v3 0/11] Provide support matrix generator"): > For 8-11 I'm awaiting any opinions about the output and in particular > whether to include > > + 11/11] docs/parse-support-md: Identical [*]: only use extra > > table cell if necessary AFter

Re: [Xen-devel] Linux Dom0 console handling (again)

2018-04-12 Thread Boris Ostrovsky
On 04/12/2018 04:06 AM, Jan Beulich wrote: > Jürgen, Boris, > > looks like commit 47b02f4c62 ("x86/xen: add tty0 and hvc0 as > preferred consoles for dom0") doesn't get us quite there yet - non- > kernel boot output (and a console prompt) still doesn't appear on > the screen. Hmm.. I get both

Re: [Xen-devel] [PATCH RESEND] xen/sndif: Sync up with the canonical definition in Xen

2018-04-12 Thread Konrad Rzeszutek Wilk
On Thu, Apr 12, 2018 at 01:46:33PM -0400, Boris Ostrovsky wrote: > On 04/12/2018 01:26 PM, Oleksandr Andrushchenko wrote: > > This is the sync up with the canonical definition of the sound > > protocol in Xen: > > > > 1. Protocol version was referenced in the protocol description, > >but

Re: [Xen-devel] Setting up a call to discuss PCI Emulation - Future Direction

2018-04-12 Thread Roger Pau Monné
On Thu, Apr 12, 2018 at 05:32:57PM +0100, Lars Kurth wrote: >Hi all, > > > >I had an action to set up a call on discussing the future direction of PCI >Emulation. I CC’ed everyone who raised an interest. I propose to use >Gotomeeting unless there are objections. > > >

[Xen-devel] [PATCH 1/3] x86/pv: Introduce and use x86emul_read_dr()

2018-04-12 Thread Andrew Cooper
do_get_debugreg() has several bugs: * The %cr4.de condition is inverted. %dr4/5 should be accessible only when %cr4.de is disabled. * When %cr4.de is disabled, emulation should yield #UD rather than complete with zero. * Using -EINVAL for errors is a broken ABI, as it overlaps with

Re: [Xen-devel] [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization

2018-04-12 Thread Oleksandr Andrushchenko
On 04/12/2018 07:55 PM, Boris Ostrovsky wrote: On 04/12/2018 12:11 PM, Oleksandr Andrushchenko wrote: Hello, Konrad, Takashi! Could you please review the *Linux Kernel* version of the changes? As I said in the cover letter below there is no functional changes comparing to the corresponding Xen

[Xen-devel] [PATCH 3/3] x86/traps: Misc non-functional improvements to set_debugreg()

2018-04-12 Thread Andrew Cooper
* Change 'int i' to being unsigned, and move it into its most narrow scope. * Fold the access_ok() checks for %dr{0..3}. This halves the compiled size of the function. * Additional newlines in appropriate places. Signed-off-by: Andrew Cooper --- CC: Jan Beulich

[Xen-devel] [PATCH 2/3] x86/pv: Introduce and use x86emul_write_dr()

2018-04-12 Thread Andrew Cooper
set_debugreg() has several bugs: * %dr4/5 should function correctly as aliases of %dr6/7 when CR4.DE is clear. * Attempting to set the upper 32 bits of %dr6/7 should fail with #GP[0] rather than be silently corrected and complete. * For emulation, the #UD and #GP[0] cases need properly

[Xen-devel] [PATCH for-4.11 0/3] x86/pv: Fixes to debug register handling

2018-04-12 Thread Andrew Cooper
At this point, I think these patches are plausible candidates for inclusion into 4.11. Whether they want backporting is a slightly harder matter, as these patches necesserily alter some error values for the get/set_debug_reg() hypercalls. If however there is objection to these going into 4.11,

Re: [Xen-devel] [PATCH RESEND] xen/sndif: Sync up with the canonical definition in Xen

2018-04-12 Thread Boris Ostrovsky
On 04/12/2018 01:26 PM, Oleksandr Andrushchenko wrote: > This is the sync up with the canonical definition of the sound > protocol in Xen: > > 1. Protocol version was referenced in the protocol description, >but missed its definition. Fixed by adding a constant >for current protocol

[Xen-devel] [PATCH v7 3/9] xen/x86: support per-domain flag for xpti

2018-04-12 Thread Juergen Gross
Instead of switching XPTI globally on or off add a per-domain flag for that purpose. This allows to modify the xpti boot parameter to support running dom0 without Meltdown mitigations. Using "xpti=nodom0" as boot parameter will achieve that. Move the xpti boot parameter handling to

[Xen-devel] [PATCH v7 5/9] xen/x86: disable global pages for domains with XPTI active

2018-04-12 Thread Juergen Gross
Instead of flushing the TLB from global pages when switching address spaces with XPTI being active just disable global pages via %cr4 completely when a domain subject to XPTI is active. This avoids the need for extra TLB flushes as loading %cr3 will remove all TLB entries. In order to avoid

[Xen-devel] [PATCH 02/11] SUPPORT.md: Syntax: Fix a typo "States"

2018-04-12 Thread Ian Jackson
Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: George Dunlap Acked-by: Lars Kurth --- SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORT.md

Re: [Xen-devel] [PATCH 0/5] SUPPORT.md: Distinguish descriptions from caveats

2018-04-12 Thread Ian Jackson
Ian Jackson writes ("[PATCH 0/5] SUPPORT.md: Distinguish descriptions from caveats"): > The new support matrix output puts a [*] after each entry in the > support matrix in many cases where the linked-to text is simply a > longer description of the feature. Example output:

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Dario Faggioli
On Thu, 2018-04-12 at 15:15 +0200, Dario Faggioli wrote: > On Thu, 2018-04-12 at 14:45 +0200, Olaf Hering wrote: > > > > dies after the first iteration. > > > > BUG_ON(!test_bit(_VPF_migrating, >pause_flags)); > > > Update. I replaced this: +BUG_ON(vcpu_runnable(prev)); +

Re: [Xen-devel] [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization

2018-04-12 Thread Boris Ostrovsky
On 04/12/2018 12:11 PM, Oleksandr Andrushchenko wrote: > Hello, Konrad, Takashi! > > Could you please review the *Linux Kernel* version of the changes? > As I said in the cover letter below there is no functional changes > comparing to the corresponding Xen version, but spaces to tabs. > Still,

Re: [Xen-devel] crash in csched_load_balance after xl vcpu-pin

2018-04-12 Thread Dario Faggioli
On Thu, 2018-04-12 at 17:38 +0200, Dario Faggioli wrote: > On Thu, 2018-04-12 at 15:15 +0200, Dario Faggioli wrote: > > On Thu, 2018-04-12 at 14:45 +0200, Olaf Hering wrote: > > > > > > dies after the first iteration. > > > > > > BUG_ON(!test_bit(_VPF_migrating, >pause_flags)); > > > >

[Xen-devel] [PATCH RESEND] xen/sndif: Sync up with the canonical definition in Xen

2018-04-12 Thread Oleksandr Andrushchenko
This is the sync up with the canonical definition of the sound protocol in Xen: 1. Protocol version was referenced in the protocol description, but missed its definition. Fixed by adding a constant for current protocol version. 2. Some of the request descriptions have "reserved" fields

[Xen-devel] [PATCH 3/5] xen/sndif: Make requests and responses 64 octets long

2018-04-12 Thread Oleksandr Andrushchenko
Extend the size of the requests and responses to 64 octets. Bump protocol version to 2. Signed-off-by: Oleksandr Andrushchenko --- include/xen/interface/io/sndif.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[Xen-devel] [PATCH 2/5] xen/sndif: Fix missed "reserved" fields in comments

2018-04-12 Thread Oleksandr Andrushchenko
Some of the request descriptions have "reserved" fields missed: fix this by adding corresponidng entries. Signed-off-by: Oleksandr Andrushchenko --- include/xen/interface/io/sndif.h | 4 1 file changed, 4 insertions(+) diff --git

[Xen-devel] Setting up a call to discuss PCI Emulation - Future Direction

2018-04-12 Thread Lars Kurth
Hi all, I had an action to set up a call on discussing the future direction of PCI Emulation. I CC’ed everyone who raised an interest. I propose to use Gotomeeting unless there are objections. As far as I can tell, we have people in the following time-zones: PST to EST and BST. Not sure where

[Xen-devel] [PATCH v7 2/9] xen/x86: add a function for modifying cr3

2018-04-12 Thread Juergen Gross
Instead of having multiple places with more or less identical asm statements just have one function doing a write to cr3. As this function should be named write_cr3() rename the current write_cr3() function to switch_cr3(). Suggested-by: Andrew Copper Signed-off-by:

[Xen-devel] [PATCH v7 4/9] xen/x86: use invpcid for flushing the TLB

2018-04-12 Thread Juergen Gross
If possible use the INVPCID instruction for flushing the TLB instead of toggling cr4.pge for that purpose. While at it remove the dependency on cr4.pge being required for mtrr loading, as this will be required later anyway. Add a command line option "invpcid" for controlling the use of INVPCID

[Xen-devel] [PATCH v7 6/9] xen/x86: use flag byte for decision whether xen_cr3 is valid

2018-04-12 Thread Juergen Gross
Today cpu_info->xen_cr3 is either 0 to indicate %cr3 doesn't need to be switched on entry to Xen, or negative for keeping the value while indicating not to restore %cr3, or positive in case %cr3 is to be restored. Switch to use a flag byte instead of a negative xen_cr3 value in order to allow

[Xen-devel] [PATCH v7 8/9] xen/x86: add some cr3 helpers

2018-04-12 Thread Juergen Gross
Add some helper macros to access the address and pcid parts of cr3. Use those helpers where appropriate. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- V6: - new patch (Andrew Cooper) --- xen/arch/x86/debug.c| 2 +-

[Xen-devel] [PATCH v7 0/9] xen/x86: various XPTI speedups

2018-04-12 Thread Juergen Gross
This patch series aims at reducing the overhead of the XPTI Meltdown mitigation. Patch 1 had been posted before, the main changes in this patch are due to addressing Jan's comments on my first version. The main objective of that patch is to avoid copying the L4 page table each time the guest is

[Xen-devel] [PATCH v7 1/9] x86/xpti: avoid copying L4 page table contents when possible

2018-04-12 Thread Juergen Gross
For mitigation of Meltdown the current L4 page table is copied to the cpu local root page table each time a 64 bit pv guest is entered. Copying can be avoided in cases where the guest L4 page table hasn't been modified while running the hypervisor, e.g. when handling interrupts or any hypercall

[Xen-devel] [PATCH v7 9/9] xen/x86: use PCID feature

2018-04-12 Thread Juergen Gross
Avoid flushing the complete TLB when switching %cr3 for mitigation of Meltdown by using the PCID feature if available. We are using 4 PCID values for a 64 bit pv domain subject to XPTI and 2 values for the non-XPTI case: - guest active and in kernel mode - guest active and in user mode -

[Xen-devel] [PATCH v7 7/9] xen/x86: convert pv_guest_cr4_to_real_cr4() to a function

2018-04-12 Thread Juergen Gross
pv_guest_cr4_to_real_cr4() is becoming more and more complex. Convert it from a macro to an ordinary function. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- V6: - new patch, split off from (old) patch 7 (Andrew Cooper) --- xen/arch/x86/mm.c

[Xen-devel] [PATCH 5/5] SUPPORT.md: Document the new text ordering rule

2018-04-12 Thread Ian Jackson
Signed-off-by: Ian Jackson --- SUPPORT.md | 5 + 1 file changed, 5 insertions(+) diff --git a/SUPPORT.md b/SUPPORT.md index 5ae84cf..098262b 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -725,6 +725,11 @@ The file is in markdown format. The machine-readable

[Xen-devel] [PATCH 4/5] SUPPORT.md: Move descriptions up before Status info

2018-04-12 Thread Ian Jackson
This turns all the things which were treated as caveats, but which don't need to be footnoted in the matrix, into descriptions. For the benefit of the support matrix generator, this patch (or a version of it) should be backported to 4.10. Signed-off-by: Ian Jackson

[Xen-devel] [PATCH 2/5] docs/parse-support-md: internals: Rename HasText to HasCaveat

2018-04-12 Thread Ian Jackson
No functional change. Signed-off-by: Ian Jackson --- docs/parse-support-md | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/parse-support-md b/docs/parse-support-md index 5bf8405..6953930 100755 --- a/docs/parse-support-md +++

[Xen-devel] [PATCH 1/5] docs/parse-support-md: internals: Introduce docref_a

2018-04-12 Thread Ian Jackson
No functional change. Signed-off-by: Ian Jackson --- docs/parse-support-md | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/parse-support-md b/docs/parse-support-md index decda33..5bf8405 100755 --- a/docs/parse-support-md +++

[Xen-devel] [PATCH 3/5] SUPPORT.md, support matrix: Treat commentary before status as description

2018-04-12 Thread Ian Jackson
Running text in feature sections in the markdown document currently might be (i) a caveat, qualifying or clarifying the support statement (ii) a plain description of the feature. Caveats can be version-specific and deserve the [*] annotation in the relevant feature matrix cell. They must link to

[Xen-devel] [PATCH 0/5] SUPPORT.md: Distinguish descriptions from caveats

2018-04-12 Thread Ian Jackson
The new support matrix output puts a [*] after each entry in the support matrix in many cases where the linked-to text is simply a longer description of the feature. Remedy this by distinguishing text which expands on a feature description from text which qualifies its support status. There are

Re: [Xen-devel] Xen and safety certification, Minutes of the meeting on Apr 4th

2018-04-12 Thread Praveen Kumar
Hi All, >> We'd like to explore both FreeRTOS in dom0 and dom0-less options. I think >> there were some patches while ago for dom0-less xen. > > "Dom0-less" is a great name actually :-) > > Up until now, we discussed this topic under the name of "create multiple > guests from device tree". There

Re: [Xen-devel] [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization

2018-04-12 Thread Oleksandr Andrushchenko
Hello, Konrad, Takashi! Could you please review the *Linux Kernel* version of the changes? As I said in the cover letter below there is no functional changes comparing to the corresponding Xen version, but spaces to tabs. Still, formally, I have to drop the R-b tags and request for the new

  1   2   >