[Xen-devel] [PATCH v2 2/2] xen/kbdif: add multi-touch support

2017-01-25 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Signed-off-by: Oleksandr Andrushchenko --- xen/include/public/io/kbdif.h | 210 ++ 1 file changed, 210 insertions(+) diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h index 446aed2478b5..74883267d6e6

[Xen-devel] [PATCH v2 0/2] xen/kbdif: add multi-touch support

2017-01-25 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hi, all! This series updates existing kbdif protocol documentation and adds multi-touch support Thank you, Oleksandr Andrushchenko Changes since v1: * removed mtouch folder * changed mtouch xenstore parameters' names * single multi-touch device per driver, if m

[Xen-devel] [PATCH v2 1/2] xen/kbdif: update protocol documentation

2017-01-25 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Reviewed-by: Stefano Stabellini Signed-off-by: Oleksandr Andrushchenko --- xen/include/public/io/kbdif.h | 248 +- 1 file changed, 221 insertions(+), 27 deletions(-) diff --git a/xen/include/public/io/kbdif.h b/xen/include/

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

2017-01-25 Thread osstest service owner
flight 104690 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104690/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [PATCH RFC 4/6] COLO-Proxy: Add primary userspace colo proxy start args

2017-01-25 Thread Zhang Chen
Qemu need this args to start userspace colo-proxy. Signed-off-by: Zhang Chen --- tools/libxl/libxl_dm.c | 104 tools/libxl/libxl_nic.c | 232 tools/libxl/libxl_types.idl | 31 +- tools/libxl/xl_cmdimpl.c| 58 +++

[Xen-devel] [PATCH RFC 0/6] COLO-Proxy: Make Xen COLO use userspace colo-proxy

2017-01-25 Thread Zhang Chen
Hi~ All~ Happy Chinese New Year~~ Because of some reason, We no longer support COLO kernel proxy. So we send this patch set to make Xen use userspace colo-proxy in qemu. Below is a COLO userspace proxy ascii figure: Primary qemu Secondar

[Xen-devel] [PATCH RFC 1/6] COLO-Proxy: Add remus command to open userspace proxy

2017-01-25 Thread Zhang Chen
Add remus '-p' to enable userspace colo proxy(in qemu). Signed-off-by: Zhang Chen --- docs/man/xl.pod.1.in | 4 tools/libxl/libxl_colo.h | 5 + tools/libxl/libxl_colo_save.c | 2 ++ tools/libxl/libxl_types.idl | 17 + tools/libxl/xl_cmdimpl.c | 13

[Xen-devel] [PATCH RFC 2/6] COLO-Proxy: Setup userspace colo-proxy on primary side

2017-01-25 Thread Zhang Chen
In this patch we close kernel COLO-Proxy on primary side. Signed-off-by: Zhang Chen --- tools/libxl/libxl_colo_proxy.c | 30 ++ tools/libxl/libxl_colo_save.c | 9 +++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_colo_proxy.

[Xen-devel] [PATCH RFC 3/6] COLO-Proxy: Setup userspace colo-proxy on secondary side

2017-01-25 Thread Zhang Chen
In this patch we add a function to close kernel COLO-Proxy on secondary side. Signed-off-by: Zhang Chen --- tools/libxl/libxl_colo_restore.c | 9 +++-- tools/libxl/libxl_create.c | 9 +++-- tools/libxl/libxl_types.idl | 1 + tools/libxl/xl_cmdimpl.c | 18 +++

[Xen-devel] [PATCH RFC 6/6] COLO-Proxy: Use socket to get checkpoint event.

2017-01-25 Thread Zhang Chen
We use old kernel colo proxy way to get the checkpoint event from qemu. This patch have some TODO job. Qemu compare need add a API to support this(I will add this in qemu). Signed-off-by: Zhang Chen --- tools/libxl/libxl_colo.h | 2 ++ tools/libxl/libxl_colo_proxy.c | 12 too

[Xen-devel] [PATCH RFC 5/6] COLO-Proxy: Add secondary userspace colo-proxy start args

2017-01-25 Thread Zhang Chen
Qemu need this args to start userspace colo-proxy. Signed-off-by: Zhang Chen --- tools/libxl/libxl_dm.c | 45 +++ tools/libxl/libxl_nic.c | 66 + tools/libxl/libxl_types.idl | 15 ++- tools/libxl/xl_cmdimpl.

[Xen-devel] [qemu-upstream-4.3-testing baseline-only test] 68460: tolerable FAIL

2017-01-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68460 qemu-upstream-4.3-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68460/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd

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

2017-01-25 Thread osstest service owner
flight 104688 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104688/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [qemu-mainline test] 104662: tolerable FAIL - PUSHED

2017-01-25 Thread osstest service owner
flight 104662 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/104662/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt-xsm 13 saverestore-support-checkfail like 104643 test-amd64-amd64-xl-qemuu-

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

2017-01-25 Thread osstest service owner
flight 104682 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104682/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

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

2017-01-25 Thread osstest service owner
flight 104654 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/104654/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-xsm 4 host-build-prep fail in 104638 REGR. vs. 104614 Tests which are fa

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

2017-01-25 Thread osstest service owner
flight 104679 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104679/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [ovmf baseline-only test] 68462: all pass

2017-01-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68462 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68462/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 5734d486b6aa0b69a39b2c8d52b355400bcf2551 jobs: bu

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

2017-01-25 Thread osstest service owner
flight 104676 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104676/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

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

2017-01-25 Thread osstest service owner
flight 104673 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104673/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH] xen: credit2: clear bit instead of skip step in runq_tickle()

2017-01-25 Thread Dario Faggioli
On Wed, 2017-01-18 at 03:30 -0700, Jan Beulich wrote: > > > > On 18.01.17 at 11:21, wrote: > > On 18/01/17 00:30, Dario Faggioli wrote: > > > index ef8e0d8..d086264 100644 > > > --- a/xen/common/sched_credit2.c > > > +++ b/xen/common/sched_credit2.c > > > @@ -985,7 +985,7 @@ runq_tickle(const stru

[Xen-devel] [PATCH 9/9] xen/tools: tracing: always report how long next slice will be.

2017-01-25 Thread Dario Faggioli
In fact, it is quite useful a pice of information, to know how long it is the "next time slice" a vCPU has been granted. It allows one to assume (and then check) when the scheduler is supposed to run next, and other things. While this information is indeed reported when a context switch happens, i

[Xen-devel] [PATCH 8/9] xen/tools: tracing: trace (Credit2) runq traversal.

2017-01-25 Thread Dario Faggioli
When traversing a Credit2 runqueue to select the best candidate vCPU to be run next, show in the trace which vCPUs we consider. A bit verbose, but quite useful, considering that we may end up looking at, but then discarding, one of more vCPU. This will help understand which ones are skipped and wh

[Xen-devel] [PATCH 6/9] xen: credit2: don't miss accounting while doing a credit reset.

2017-01-25 Thread Dario Faggioli
A credit reset basically means going through all the vCPUs of a runqueue and altering their credits, as a consequence of a 'scheduling epoch' having come to an end. Blocked or runnable vCPUs are fine, all the credits they've spent running so far have been accounted to them when they were scheduled

[Xen-devel] [PATCH 4/9] xen: credit2: group the runq manipulating functions.

2017-01-25 Thread Dario Faggioli
So that they're all close among each other, and also near to the comment describind the runqueue organization (which is also moved). No functional change intended. Signed-off-by: Dario Faggioli --- Cc: George Dunlap Cc: Anshul Makkar --- xen/common/sched_credit2.c | 572 +

[Xen-devel] [PATCH 7/9] xen/tools: tracing: credits can go negative, so use int.

2017-01-25 Thread Dario Faggioli
For Credit2, in both the trace records, inside Xen, and in their parsing, in xenalyze. In fact, it is a lot easier to figure out how much negative credits have gone for a certain vCPU by looking at a negative integer, rather than to an overflowed unsigned. Signed-off-by: Dario Faggioli --- Cc: G

[Xen-devel] [PATCH 5/9] xen: credit2: always mark a tickled pCPU as... tickled!

2017-01-25 Thread Dario Faggioli
In fact, whether or not a pCPU has been tickled, and is therefore about to re-schedule, is something we look at and base decisions on in various places. So, let's make sure that we do that basing on accurate information. While there, also tweak a little bit smt_idle_mask_clear() (used for impleme

[Xen-devel] [PATCH 0/9] xen: credit2: improve style, and tracing; fix two bugs

2017-01-25 Thread Dario Faggioli
Hello, This series contains mostly style or cosmetic fixes for Credit2, with the following two exceptions: - 2 actual fixes for (not so severe) behavioral bugs (patches 5 and 6); - some tracing improvements (last 3 patches). More info on the specific changelogs. The series is also available as

[Xen-devel] [PATCH 2/9] xen: credit2: make accessor helpers inline functions instead of macros

2017-01-25 Thread Dario Faggioli
There isn't any particular reason for the accessor helpers to be macro, so turn them into 'static inline'-s, which are better. Note that it is necessary to move the function definitions below the structure declarations. No functional change intended. Signed-off-by: Dario Faggioli --- Cc: George

[Xen-devel] [PATCH 3/9] xen: credit2: tidy up functions names by removing leading '__'.

2017-01-25 Thread Dario Faggioli
There is no reason for having pretty much all of the functions whose names begin with double underscores ('__') to actually look like that. In fact, that is misleading and makes the code hard to read and understand. So, remove the '__'-s. The only two that we keep are __runq_insert() and __runq_a

[Xen-devel] [PATCH 1/9] xen: credit2: improve comments' style and definition of CSFLAG-s

2017-01-25 Thread Dario Faggioli
Most of the comments describing the meaning of the vCPU flags used by the scheduler miss the 'wings' (or have other minor style issues). Also, use 1U (instead of 1) as the base of shiftings. No functional change intended. Signed-off-by: Dario Faggioli --- Cc: George Dunlap Cc: Anshul Makkar -

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

2017-01-25 Thread osstest service owner
flight 104668 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/104668/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 8b17ad862c235b3226c3d118e5b2f929860ef7ec baseline version: ovmf 2bdfb11df9ca0ea0a136e

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

2017-01-25 Thread osstest service owner
flight 104671 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104671/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

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

2017-01-25 Thread osstest service owner
flight 104669 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104669/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [qemu-upstream-4.2-testing baseline-only test] 68459: tolerable FAIL

2017-01-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68459 qemu-upstream-4.2-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68459/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd6

Re: [Xen-devel] [PATCH v4] kexec: implemented XEN KEXEC STATUS to determine if an image is loaded

2017-01-25 Thread Daniel Kiper
On Wed, Jan 25, 2017 at 09:31:15AM -0600, Eric DeVolder wrote: [...] > diff --git a/kexec/kexec.c b/kexec/kexec.c > index 500e5a9..ec16247 100644 > --- a/kexec/kexec.c > +++ b/kexec/kexec.c > @@ -51,6 +51,9 @@ > #include "kexec-lzma.h" > #include > > +#define KEXEC_LOADED_PATH "/sys/kernel/kex

Re: [Xen-devel] [PATCH v13 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-01-25 Thread Daniel Kiper
On Wed, Jan 25, 2017 at 04:20:30PM -0600, Doug Goldstein wrote: > On 1/25/17 4:11 PM, Daniel Kiper wrote: > > This way Xen can be loaded on EFI platforms using GRUB2 and > > other boot loaders which support multiboot2 protocol. > > > > Signed-off-by: Daniel Kiper > > --- > > v13 - suggestions/fix

Re: [Xen-devel] [PATCH] arm/monitor: flush the icache during SMC traps

2017-01-25 Thread Julien Grall
Hi Tamas, On 25/01/2017 20:02, Tamas K Lengyel wrote: During an SMC trap it is possible that the user may change the memory By user, do you mean the monitor application? from where the SMC was fetched. However, without flushing the icache the SMC may still trigger if the pCPU was idle during

Re: [Xen-devel] [PATCH v3] arm/p2m: Fix regression during domain shutdown with active mem_access

2017-01-25 Thread Julien Grall
Hi Tamas, On 25/01/2017 16:12, Tamas K Lengyel wrote: The change in commit 438c5fe4f0c introduced a regression for domains where mem_acces is or was active. When relinquish_p2m_mapping attempts to clear a page where the order is not 0 the following ASSERT is triggered: ASSERT(!p2m->mem_acce

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

2017-01-25 Thread osstest service owner
flight 104666 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104666/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH v13 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-01-25 Thread Doug Goldstein
On 1/25/17 4:11 PM, Daniel Kiper wrote: > This way Xen can be loaded on EFI platforms using GRUB2 and > other boot loaders which support multiboot2 protocol. > > Signed-off-by: Daniel Kiper > --- > v13 - suggestions/fixes: > - move vga_text_buffer and efi_platform to .init.data section >

[Xen-devel] [PATCH v13 8/9] x86/boot: rename sym_phys() to sym_offs()

2017-01-25 Thread Daniel Kiper
This way macro name better describes its function. Currently it is used to calculate symbol offset in relation to the beginning of Xen image mapping. However, value returned by sym_offs() for a given symbol is not always equal its physical address. There is no functional change. Suggested-by: Jan

[Xen-devel] [PATCH v13 7/9] x86: make Xen early boot code relocatable

2017-01-25 Thread Daniel Kiper
Every multiboot protocol (regardless of version) compatible image must specify its load address (in ELF or multiboot header). Multiboot protocol compatible loader have to load image at specified address. However, there is no guarantee that the requested memory region (in case of Xen it starts at 2

[Xen-devel] [PATCH v13 3/9] efi: create new early memory allocator

2017-01-25 Thread Daniel Kiper
There is a problem with place_string() which is used as early memory allocator. It gets memory chunks starting from start symbol and goes down. Sadly this does not work when Xen is loaded using multiboot2 protocol because then the start lives on 1 MiB address and we should not allocate a memory fro

[Xen-devel] [PATCH v13 9/9] x86: add multiboot2 protocol support for relocatable images

2017-01-25 Thread Daniel Kiper
Add multiboot2 protocol support for relocatable images. Only GRUB2 with "multiboot2: Add support for relocatable images" patch understands that feature. Older multiboot protocol (regardless of version) compatible loaders ignore it and everything works as usual. Signed-off-by: Daniel Kiper Acked-b

[Xen-devel] [PATCH v13 6/9] x86/setup: use XEN_IMG_OFFSET instead of...

2017-01-25 Thread Daniel Kiper
..calculating its value during runtime. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Reviewed-by: Doug Goldstein --- xen/arch/x86/setup.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index e6f6ef1..24b4b23 100644 ---

[Xen-devel] [PATCH v13 2/9] efi: build xen.gz with EFI code

2017-01-25 Thread Daniel Kiper
Build xen.gz with EFI code. We need this to support multiboot2 protocol on EFI platforms. If we wish to load non-ELF file using multiboot (v1) or multiboot2 then it must contain "linear" (or "flat") representation of code and data. This is requirement of both boot protocols. Currently, PE file con

[Xen-devel] [PATCH v13 1/9] x86: add multiboot2 protocol support

2017-01-25 Thread Daniel Kiper
Add multiboot2 protocol support. Alter min memory limit handling as we now may not find it from either multiboot (v1) or multiboot2. This way we are laying the foundation for EFI + GRUB2 + Xen development. Signed-off-by: Daniel Kiper Reviewed-by: Jan Beulich Reviewed-by: Doug Goldstein Reviewe

[Xen-devel] [PATCH v13 0/9] x86: multiboot2 protocol support

2017-01-25 Thread Daniel Kiper
Hi, I am sending thirteenth version of multiboot2 protocol support for legacy BIOS and EFI platforms. This patch series release contains fixes for all known/confirmed issues. The final goal is xen.efi binary file which could be loaded by EFI loader, multiboot (v1) protocol (only on legacy BIOS pl

[Xen-devel] [PATCH v13 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-01-25 Thread Daniel Kiper
This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper --- v13 - suggestions/fixes: - move vga_text_buffer and efi_platform to .init.data section (suggested by Jan Beulich), - reduce number of err

[Xen-devel] [PATCH v13 5/9] x86: change default load address from 1 MiB to 2 MiB

2017-01-25 Thread Daniel Kiper
Subsequent patches introducing relocatable early boot code play with page tables using 2 MiB huge pages. If load address is not aligned at 2 MiB then code touching such page tables must have special cases for start and end of Xen image memory region. So, let's make life easier and move default load

[Xen-devel] [seabios baseline-only test] 68458: tolerable FAIL

2017-01-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68458 seabios real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68458/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stop

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

2017-01-25 Thread osstest service owner
flight 104664 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104664/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [linux-3.16 baseline-only test] 68457: tolerable trouble: blocked/broken/fail/pass

2017-01-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68457 linux-3.16 real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68457/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-arm64-arm64-libvirt-xsm 1 build-check(1)

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

2017-01-25 Thread osstest service owner
flight 104661 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104661/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH] arm/monitor: flush the icache during SMC traps

2017-01-25 Thread Razvan Cojocaru
On 01/25/2017 10:02 PM, Tamas K Lengyel wrote: > During an SMC trap it is possible that the user may change the memory > from where the SMC was fetched. However, without flushing the icache > the SMC may still trigger if the pCPU was idle during the trap. Flush > the icache to ensure consistency. >

[Xen-devel] [PATCH] arm/monitor: flush the icache during SMC traps

2017-01-25 Thread Tamas K Lengyel
During an SMC trap it is possible that the user may change the memory from where the SMC was fetched. However, without flushing the icache the SMC may still trigger if the pCPU was idle during the trap. Flush the icache to ensure consistency. Signed-off-by: Tamas K Lengyel --- Cc: Razvan Cojocaru

[Xen-devel] [qemu-mainline test] 104643: tolerable FAIL - PUSHED

2017-01-25 Thread osstest service owner
flight 104643 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/104643/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt-xsm 13 saverestore-support-checkfail like 104633 test-amd64-amd64-xl-qemuu-

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

2017-01-25 Thread osstest service owner
flight 104658 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104658/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH v1 2/3] x86/xen/time: setup vcpu 0 time info page

2017-01-25 Thread Boris Ostrovsky
On 01/25/2017 12:33 PM, Joao Martins wrote: > In order to support pvclock vdso on xen we need to setup the time > info page for vcpu 0 and register the page with Xen using the > VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall > will also forcefully update the pvti which will set som

[Xen-devel] [linux-next test] 104640: tolerable FAIL

2017-01-25 Thread osstest service owner
flight 104640 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/104640/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-arm64-arm64-libvirt-xsm 1 build-check(1) blocked n/a test-arm64-arm64-xl

Re: [Xen-devel] [early RFC] ARM PCI Passthrough design document

2017-01-25 Thread Julien Grall
Hi Stefano, On 24/01/17 20:07, Stefano Stabellini wrote: On Tue, 24 Jan 2017, Julien Grall wrote: ## Discovering and register hostbridge Both ACPI and Device Tree do not provide enough information to fully instantiate an host bridge driver. In the case of ACPI, some data may come from ASL, T

Re: [Xen-devel] [PATCH v2 2/3] xen-platform: add support for unplugging NVMe disks...

2017-01-25 Thread Stefano Stabellini
On Wed, 25 Jan 2017, Paul Durrant wrote: > On 25 January 2017, at 17:54, Stefano Stabellini > wrote: > > > > > > >On Wed, 25 Jan 2017, Paul Durrant wrote: > >> > -Original Message- > >> > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > >> > Sent: 24 January 2017 23:49 > >> > T

Re: [Xen-devel] [PATCH v2 2/3] xen-platform: add support for unplugging NVMe disks...

2017-01-25 Thread Paul Durrant
On 25 January 2017, at 17:54, Stefano Stabellini wrote: > > >On Wed, 25 Jan 2017, Paul Durrant wrote: >> > -Original Message- >> > From: Stefano Stabellini [mailto:sstabell...@kernel.org] >> > Sent: 24 January 2017 23:49 >> > To: Paul Durrant >> > Cc: qemu-de...@nongnu.org; xen-de...@lis

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

2017-01-25 Thread osstest service owner
flight 104655 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104655/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH v2 2/3] xen-platform: add support for unplugging NVMe disks...

2017-01-25 Thread Stefano Stabellini
On Wed, 25 Jan 2017, Paul Durrant wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > > Sent: 24 January 2017 23:49 > > To: Paul Durrant > > Cc: qemu-de...@nongnu.org; xen-de...@lists.xenproject.org; Stefano > > Stabellini ; Anthony Perard > > ; Mic

Re: [Xen-devel] [PATCH 1/7] x86emul/test: remove extraneous commas in debug messages

2017-01-25 Thread Andrew Cooper
On 25/01/17 16:36, Wei Liu wrote: > On Wed, Jan 25, 2017 at 09:33:05AM -0700, Jan Beulich wrote: > On 25.01.17 at 16:44, wrote: >>> --- a/tools/tests/x86_emulator/test_x86_emulator.c >>> +++ b/tools/tests/x86_emulator/test_x86_emulator.c >>> @@ -42,7 +42,7 @@ static int read( >>> struct x

Re: [Xen-devel] [PATCH] docs/misc: update the meaning of the 'disk unplug' flag

2017-01-25 Thread Stefano Stabellini
On Wed, 25 Jan 2017, Paul Durrant wrote: > The documentation states that a value of '1' will cause unplug of > emulated IDE disks. This is not quite correct, as QEMU will also unplug > emulated SCSI disks at the same time. > > Signed-off-by: Paul Durrant Reviewed-by: Stefano Stabellini > Cc:

[Xen-devel] [PATCH v1 2/3] x86/xen/time: setup vcpu 0 time info page

2017-01-25 Thread Joao Martins
In order to support pvclock vdso on xen we need to setup the time info page for vcpu 0 and register the page with Xen using the VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall will also forcefully update the pvti which will set some of the necessary flags for vdso. Afterwards we che

[Xen-devel] [PATCH v1 1/3] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-01-25 Thread Joao Martins
Right now there is only a pvclock_pvti_cpu0_va() which is defined on kvmclock since: commit dac16fba6fc5 ("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap") The only user of this interface was kvm. This commit moves pvclock_pvti_cpu0_va to pvclock which is a more generic place

[Xen-devel] [PATCH v1 0/3] x86/xen: pvclock vdso support

2017-01-25 Thread Joao Martins
Hey, This small series presents support for vDSO for Xen domains. PVCLOCK_TSC_STABLE_BIT can be set starting Xen 4.8 which is required for vdso time related calls. In order to have it on, you need to have the hypervisor clocksource be TSC e.g. with the following boot params "clocksource=tsc tsc=st

[Xen-devel] [PATCH v1 3/3] MAINTAINERS: xen, kvm: track pvclock-abi.h changes

2017-01-25 Thread Joao Martins
This file defines an ABI shared between guest and hypervisor(s) (KVM, Xen) and as such there should be an correspondent entry in MAINTAINERS file. Notice that there's already a text notice at the top of the header file, hence this commit simply enforces it more explicitly and have both peers notice

[Xen-devel] [PATCH 2/2] x86/VMX: fix vmentry failure with TSX bits in LBR

2017-01-25 Thread Sergey Dyasli
During VM entry, H/W will automatically load guest's MSRs from MSR-load area in the same way as they would be written by WRMSR. However, under the following conditions: 1. LBR (Last Branch Record) MSRs were placed in the MSR-load area 2. Address format of LBR includes TSX bits 61:62 3

[Xen-devel] [PATCH 1/2] x86/VMX: introduce vmx_find_guest_msr()

2017-01-25 Thread Sergey Dyasli
Currently there can be up to 256 entries in a guest's MSR array and all entries are stored in the order they were added. Such design requires to perform a linear scan of the whole array in order to find the MSR with required index which can be a costly operation. To avoid that, reuse the existing

[Xen-devel] [PATCH 0/2] x86/VMX: fix for vmentry failure with TSX bits in LBR

2017-01-25 Thread Sergey Dyasli
The first patch is a general optimization which is nice to have prior to the second patch which contains the real fix. A similar bug was fixed in Linux's perf subsystem in Jun 2016: commit 19fc9ddd61e059cc45464bdf6e8fa304bb94080f ("perf/x86/intel: Fix MSR_LAST_BRANCH_FROM_x bug when no TS

Re: [Xen-devel] [PATCH RFC 1/8] golang/xenlight: Create stub package

2017-01-25 Thread George Dunlap
On Mon, Jan 23, 2017 at 4:43 PM, Ronald Rojas wrote: > +func (Ctx *Context) Open() (err error) { > + if Ctx.ctx != nil { > + return > + } > + > + ret := C.libxl_ctx_alloc(unsafe.Pointer(&Ctx.ctx), C.LIBXL_VERSION, > 0, nil) Just discovered there's a bug here (in

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

2017-01-25 Thread osstest service owner
flight 104651 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104651/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

[Xen-devel] [xen-unstable test] 104638: regressions - trouble: blocked/broken/fail/pass

2017-01-25 Thread osstest service owner
flight 104638 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/104638/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-xsm 4 host-build-prep fail REGR. vs. 104614 Tests which are fa

Re: [Xen-devel] [DOC v3] Xen transport for 9pfs

2017-01-25 Thread Konrad Rzeszutek Wilk
On Thu, Jan 05, 2017 at 04:54:37PM -0800, Stefano Stabellini wrote: > Changes in v3: > - clarify a few statements > - rename port- to event-channel- > - use grant_ref_t ref[1] instead of ref[] > > Changes in v2: > - fix copy/paste error > - rename ring-ref- to ring-ref > - fix memory barriers > -

Re: [Xen-devel] [PATCH 3/5] hotplug/linux: Improve iptables logic

2017-01-25 Thread Ian Jackson
Sylvain Munaut writes ("Re: [PATCH 3/5] hotplug/linux: Improve iptables logic"): > And just moving the 'out' rule outside of frob_iptables alltogether > seems hackish to me, especially when you add IPv6 later on because you > have iptables manipulations spread around. Sorry for the terseness of my

Re: [Xen-devel] [PATCH RFC 1/8] golang/xenlight: Create stub package

2017-01-25 Thread Wei Liu
On Mon, Jan 23, 2017 at 11:43:30AM -0500, Ronald Rojas wrote: [...] > + > +subdir-distclean-firmware: .phony > + $(MAKE) -C firmware distclean > + This looks unrelated. > subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony > $(MAKE) -C debugger/gdbsx clean > > diff --

[Xen-devel] [PATCH RFC 1/2] hotplug/linux: Break out frob_iptable_command, and improve logging

2017-01-25 Thread Ian Jackson
Move the actual execution of `iptable' into a new function which captures the stderr, and logs it. The actual `iptables' command is a parameter to `frob_iptable_command' so that in future we can reuse this subroutine for `ip6tables'. No functional change other than to log messages. Signed-off-by

[Xen-devel] [PATCH RFC 2/2] tools/hotplug: Insert output filter only once

2017-01-25 Thread Ian Jackson
Break frob_iptable into two subroutines frob_iptable_in and frob_iptable_out_all. frob_iptable_in must be called with the iptables command name and appropriate parameters (for each source address or condition, as necessary). frob_iptable_out_all must be called exactly once. Signed-off-by: Ian Ja

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

2017-01-25 Thread osstest service owner
flight 104649 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104649/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104630 build-armhf

Re: [Xen-devel] [PATCH net-next] xen-netfront: reject short packets and handle non-linear packets

2017-01-25 Thread Eric Dumazet
On Wed, 2017-01-25 at 16:26 +, Paul Durrant wrote: > Sowmini points out two vulnerabilities in xen-netfront: > > a) The code assumes that skb->len is at least ETH_HLEN. > b) The code assumes that at least ETH_HLEN octets are in the linear >port of the socket buffer. > > This patch adds te

Re: [Xen-devel] [PATCH 1/7] x86emul/test: remove extraneous commas in debug messages

2017-01-25 Thread Wei Liu
On Wed, Jan 25, 2017 at 09:33:05AM -0700, Jan Beulich wrote: > >>> On 25.01.17 at 16:44, wrote: > > --- a/tools/tests/x86_emulator/test_x86_emulator.c > > +++ b/tools/tests/x86_emulator/test_x86_emulator.c > > @@ -42,7 +42,7 @@ static int read( > > struct x86_emulate_ctxt *ctxt) > > { > >

Re: [Xen-devel] [PATCH 1/7] x86emul/test: remove extraneous commas in debug messages

2017-01-25 Thread Jan Beulich
>>> On 25.01.17 at 16:44, wrote: > --- a/tools/tests/x86_emulator/test_x86_emulator.c > +++ b/tools/tests/x86_emulator/test_x86_emulator.c > @@ -42,7 +42,7 @@ static int read( > struct x86_emulate_ctxt *ctxt) > { > if ( verbose ) > -printf("** %s(%u, %p,, %u,)\n", __func__, seg,

[Xen-devel] [PATCH net-next] xen-netfront: reject short packets and handle non-linear packets

2017-01-25 Thread Paul Durrant
Sowmini points out two vulnerabilities in xen-netfront: a) The code assumes that skb->len is at least ETH_HLEN. b) The code assumes that at least ETH_HLEN octets are in the linear port of the socket buffer. This patch adds tests for both of these, and in the case of the latter pulls sufficient

[Xen-devel] [PATCH v3] arm/p2m: Fix regression during domain shutdown with active mem_access

2017-01-25 Thread Tamas K Lengyel
The change in commit 438c5fe4f0c introduced a regression for domains where mem_acces is or was active. When relinquish_p2m_mapping attempts to clear a page where the order is not 0 the following ASSERT is triggered: ASSERT(!p2m->mem_access_enabled || page_order == 0); This regression was unfo

Re: [Xen-devel] Xen Security Advisory 154 (CVE-2016-2270) - x86: inconsistent cachability flags on guest mappings

2017-01-25 Thread David Woodhouse
On Wed, 2017-01-25 at 07:21 -0700, Jan Beulich wrote: > > If there wasn't INVALID_MFN to be taken care of, the !mfn_valid() > check could simply move down, and be combined with the > direct_mmio one. As discussed on IRC, once we fix the overflow with order > 0, I think INVALID_MFN is OK. Not that

Re: [Xen-devel] xen/arm: Domain not fully destroyed when using credit2

2017-01-25 Thread Dario Faggioli
On Wed, 2017-01-25 at 12:38 +, Julien Grall wrote: > Hi Dario, > Hey, > On 25/01/17 11:10, Dario Faggioli wrote: > > My point was that, still from scheduling perspective, neither > > Credit1 > > nor Credit2 sets a wakeup timer for idle pCPUs. > > > > Well, in Credit1, the master_ticker timer

Re: [Xen-devel] [PATCH] [incremental] xsm/build: Further build fixes following the DMop series

2017-01-25 Thread Wei Liu
On Wed, Jan 25, 2017 at 02:24:28PM +, Andrew Cooper wrote: > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Daniel De Graaf > CC: Paul Durrant > CC: Ian Jackson > > Might be better to merge into one single patch when committed? Yes, we should squash the two patches (the other

Re: [Xen-devel] xennet_start_xmit assumptions

2017-01-25 Thread Sowmini Varadhan
On (01/25/17 15:06), Paul Durrant wrote: > > Making netfront cope with a fully non-linear skb looks like it would > be quite intrusive and probably not worth it so I opted for just doing > the ETH_HLEN pull-tail if necessary. Can you check it works for you? I tested it, and it works fine, but n

[Xen-devel] [PATCH 2/7] x86_emulate: lift a bunch of macros to header file

2017-01-25 Thread Wei Liu
Some of them can be shared between hypervisor and userspace fuzzing / test code. Instead of lifting the ones as we need, lift them all. And then remove the ones in test program. Signed-off-by: Wei Liu --- tools/tests/x86_emulator/test_x86_emulator.c | 9 --- xen/arch/x86/x86_emulate/x86_emulat

[Xen-devel] [PATCH 4/7] x86emul/test: use x86-defns.h

2017-01-25 Thread Wei Liu
Signed-off-by: Wei Liu --- tools/tests/x86_emulator/x86_emulate.h | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/tests/x86_emulator/x86_emulate.h b/tools/tests/x86_emulator/x86_emulate.h index 3a6badee46..3a1d8ccad2 100644 --- a/tools/tests/x86_emulator/x86_emul

[Xen-devel] [PATCH 6/7] fuzz/x86emul: print out minimal input size

2017-01-25 Thread Wei Liu
... so that users can know how big the initial input should be. Signed-off-by: Wei Liu --- .../fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c | 8 tools/fuzz/x86_instruction_emulator/x86-insn-emulator-fuzzer.c| 5 + 2 files changed, 13 insertions(+) diff --git a/

[Xen-devel] [PATCH 3/7] x86: extract macros to x86-defns.h

2017-01-25 Thread Wei Liu
... so that they can be used by userspace x86 instruction emulator test program and fuzzer as well. No functional change. Signed-off-by: Wei Liu --- xen/include/asm-x86/processor.h | 121 +- xen/include/asm-x86/x86-defns.h | 125 ++

[Xen-devel] [PATCH 0/7] fuzz: update x86emul fuzzer

2017-01-25 Thread Wei Liu
Wei Liu (7): x86emul/test: remove extraneous commas in debug messages x86_emulate: lift a bunch of macros to header file x86: extract macros to x86-defns.h x86emul/test: use x86-defns.h fuzz/x86emul: update fuzzer fuzz/x86emul: print out minimal input size fuzz: update README.afl exam

[Xen-devel] [PATCH 5/7] fuzz/x86emul: update fuzzer

2017-01-25 Thread Wei Liu
Provide the fuzzer with more ops, and more sophisticated input structure. Based on a patch originally written by Andrew and George. Signed-off-by: Andrew Cooper Signed-off-by: George Dunlap Signed-off-by: Wei Liu --- .../x86-insn-emulator-fuzzer.c | 653 +++

[Xen-devel] [PATCH 7/7] fuzz: update README.afl example

2017-01-25 Thread Wei Liu
Signed-off-by: Wei Liu --- tools/fuzz/README.afl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/fuzz/README.afl b/tools/fuzz/README.afl index 431b4a8cbf..68e0fa396f 100644 --- a/tools/fuzz/README.afl +++ b/tools/fuzz/README.afl @@ -20,9 +20,10 @@ Use the x86 instru

  1   2   >