Re: [Xen-devel] [PATCH v4 2/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread Daniel Vetter
On Wed, Mar 28, 2018 at 01:29:46PM +0300, Oleksandr Andrushchenko wrote: > Hi, Daniel! > > I just noticed I have missed one change in the patch: > the below must be static. > > On 03/28/2018 10:42 AM, Daniel Vetter wrote: > > +enum drm_mode_status display_mode_valid(struct drm_crtc *crtc, > > +

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

2018-03-29 Thread osstest service owner
flight 121322 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/121322/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 10 debian-hvm-install fail REGR. vs. 121272

Re: [Xen-devel] [PATCH v4 2/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread kbuild test robot
: https://github.com/0day-ci/linux/commits/Oleksandr-Andrushchenko/drm-xen-front-Add-support-for-Xen-PV-display-frontend/20180329-090744 base: git://people.freedesktop.org/~airlied/linux.git drm-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF

[Xen-devel] [RFC PATCH] drm/xen-front: display_mode_valid() can be static

2018-03-29 Thread kbuild test robot
Fixes: d7f404c8b4b6 ("drm/xen-front: Add support for Xen PV display frontend") Signed-off-by: Fengguang Wu --- xen_drm_front_kms.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xen/xen_drm_front_kms.c b/drivers/gpu/drm/xen/xen_drm_front_kms.c index 54504

Re: [Xen-devel] [PATCH v4 2/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread Oleksandr Andrushchenko
On 03/29/2018 10:17 AM, Daniel Vetter wrote: On Wed, Mar 28, 2018 at 01:29:46PM +0300, Oleksandr Andrushchenko wrote: Hi, Daniel! I just noticed I have missed one change in the patch: the below must be static. On 03/28/2018 10:42 AM, Daniel Vetter wrote: +enum drm_mode_status display_mode_val

[Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Jan Beulich
We don't break up port requests in case they cross emulation entity boundaries, and a write to an I/O port is necessarily the last operation of an instruction instance, so there's no need to re-invoke the full emulation path upon receiving the result from an external emulator. In case we want to p

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

2018-03-29 Thread Jan Beulich
>>> On 27.03.18 at 11:26, wrote: > @@ -2149,8 +2154,26 @@ void tsc_set_info(struct domain *d, > * When a guest is created, gtsc_khz is passed in as zero, making > * d->arch.tsc_khz == cpu_khz. Thus no need to check incarnation. > */ > +disable_vtsc = d->arch.t

Re: [Xen-devel] [PATCH v2 for-4.11] tools: set DEBUG_DIR from configure

2018-03-29 Thread Roger Pau Monné
On Wed, Mar 28, 2018 at 05:09:39PM +0100, Wei Liu wrote: > On Wed, Mar 28, 2018 at 05:07:33PM +0100, Wei Liu wrote: > > On Wed, Mar 28, 2018 at 08:34:14AM +0100, Roger Pau Monne wrote: > > > Allow the path to be set from a configure command line option. > > > > > > Signed-off-by: Roger Pau Monné

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

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Jan Beulich wrote: > >>> On 27.03.18 at 11:26, wrote: > > +khz_diff = cpu_khz > gtsc_khz ? > > + cpu_khz - gtsc_khz : gtsc_khz - cpu_khz; > abs() (or some variant of it, like __builtin_absl(), seeing that we > don't appear to have any abstraction

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

2018-03-29 Thread Roger Pau Monné
On Tue, Mar 27, 2018 at 11:26:55AM +0200, 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 us

Re: [Xen-devel] Make coverity results public

2018-03-29 Thread Roger Pau Monné
On Thu, Mar 29, 2018 at 12:30:25AM +, Julien Grall wrote: > (sorry for the formatting) > > On Wed, 28 Mar 2018, 21:48 George Dunlap, wrote: > > > On 03/28/2018 02:33 PM, Roger Pau Monné wrote: > > > Hello, > > > > > > According to the contribution guidelines document [0] the coverity > > > d

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

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Roger Pau Monné wrote: > IMO if hardware TSC scaling is supported vtsc_tolerance_khz should be > ignored, and the TSC should be scaled by the hardware always in order > to provide accurate values. Good point, I will double check that part and do nothing if hardware scaling happens

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

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 10:17, wrote: > On Thu, Mar 29, Jan Beulich wrote: > >> >>> On 27.03.18 at 11:26, wrote: >> > +khz_diff = cpu_khz > gtsc_khz ? >> > + cpu_khz - gtsc_khz : gtsc_khz - cpu_khz; >> abs() (or some variant of it, like __builtin_absl(), seeing that

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

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 29 March 2018 07:27 > To: Paul Durrant > Cc: Andrew Cooper ; xen-devel de...@lists.xenproject.org> > Subject: RE: possible I/O emulation state machine issue > > >>> On 28.03.18 at 18:22, wrote: > >> From: Jan Be

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

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 10:42, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 29 March 2018 07:27 >> >> Suppressing the stdvga port intercepts has, btw, not helped the >> situation. >> > > That surprises me. The whole string emulation should go out to QEMU without > being broken up

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

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 10:32, wrote: > On Thu, Mar 29, Roger Pau Monné wrote: > >> IMO if hardware TSC scaling is supported vtsc_tolerance_khz should be >> ignored, and the TSC should be scaled by the hardware always in order >> to provide accurate values. > > Good point, I will double check that pa

Re: [Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 29 March 2018 08:52 > To: xen-devel > Cc: Andrew Cooper ; Paul Durrant > > Subject: [PATCH RFC] x86/HVM: suppress I/O completion for port output > > We don't break up port requests in case they cross emulation en

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

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Roger Pau Monné wrote: > AFAICT in the chunk above you will disable vtsc without checking if > the hardware supports TSC scaling, which leads to inaccurate TSC values > on hardware that could provide accurate results without the software > emulation overhead. Is that really the ca

[Xen-devel] [PATCH v2] xen/acpi: off by one in read_acpi_id()

2018-03-29 Thread Dan Carpenter
If acpi_id is == nr_acpi_bits, then we access one element beyond the end of the acpi_psd[] array or we set one bit beyond the end of the bit map when we do __set_bit(acpi_id, acpi_id_present); Fixes: 59a568029181 ("xen/acpi-processor: C and P-state driver that uploads said data to hypervisor.") S

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

2018-03-29 Thread Roger Pau Monné
On Thu, Mar 29, 2018 at 10:58:34AM +0200, Olaf Hering wrote: > On Thu, Mar 29, Roger Pau Monné wrote: > > > AFAICT in the chunk above you will disable vtsc without checking if > > the hardware supports TSC scaling, which leads to inaccurate TSC values > > on hardware that could provide accurate re

Re: [Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 10:54, wrote: >> --- a/xen/arch/x86/hvm/emulate.c >> +++ b/xen/arch/x86/hvm/emulate.c >> @@ -282,7 +282,7 @@ static int hvmemul_do_io( >> rc = hvm_send_ioreq(s, &p, 0); >> if ( rc != X86EMUL_RETRY || currd->is_shutting_down ) >> vio->io

Re: [Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 29 March 2018 10:10 > To: Paul Durrant > Cc: Andrew Cooper ; xen-devel de...@lists.xenproject.org> > Subject: RE: [PATCH RFC] x86/HVM: suppress I/O completion for port output > > >>> On 29.03.18 at 10:54, wrote:

[Xen-devel] [PATCH v5 1/1] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add support for Xen para-virtualized frontend display driver. Accompanying backend [1] is implemented as a user-space application and its helper library [2], capable of running as a Weston client or DRM master. Configuration of both backend and frontend is done via X

[Xen-devel] [PATCH v5 0/1] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! Boris/Daniel, I put your R-b tags, so please do let me know if this is not acceptable, so I remove the tags. This patch series adds support for Xen [1] para-virtualized frontend display driver. It implements the protocol from include/xen/interface/io/displif

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

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Jan Beulich wrote: > When you use abs() or alike in places like this, it is more immediately > obvious to the reader what you're doing. Does every supported compiler actually understand this? int khz_diff = __builtin_abs(cpu_khz - gtsc_khz); Or do we need an inline abs() in case i

Re: [Xen-devel] [PATCH v5 0/1] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread Oleksandr Andrushchenko
On 03/29/2018 12:22 PM, Oleksandr Andrushchenko wrote: Changes since v4: For your convenience I am attaching diff between v4..v5 diff --git a/Documentation/gpu/xen-front.rst b/Documentation/gpu/xen-front.rst index 8188e03c9d23..009d942386c5 100644 --- a/Documentation/gpu/xen-front.rst +++ b/Docu

Re: [Xen-devel] [PATCH v3 2/2] x86/setup: remap Xen image up to PFN_DOWN(__pa(_end))

2018-03-29 Thread Daniel Kiper
On Tue, Feb 13, 2018 at 02:16:22AM -0700, Jan Beulich wrote: > >>> On 08.02.18 at 14:46, wrote: > > Sorry for late reply but I was busy with other stuff. > > > > On Fri, Jan 19, 2018 at 08:27:46AM -0700, Jan Beulich wrote: > >> >>> On 10.01.18 at 14:05, wrote: > >> > Current limit, PFN_DOWN(xen_p

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 March 2018 13:51 > To: Paul Durrant > Cc: Julien Grall ; Andrew Cooper > ; Wei Liu ; George > Dunlap ; Ian Jackson ; > Stefano Stabellini ; xen-devel@lists.xenproject.org; > Tim (Xen.org) > Subject: Re: [PATCH

Re: [Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 11:13, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 29 March 2018 10:10 >> >> >>> On 29.03.18 at 10:54, wrote: >> >> --- a/xen/arch/x86/hvm/emulate.c >> >> +++ b/xen/arch/x86/hvm/emulate.c >> >> @@ -282,7 +282,7 @@ static int hvmemul_do_io( >> >>

[Xen-devel] fuzz/wrappers.c fails to build due to missing x86-emulate.h

2018-03-29 Thread Olaf Hering
In my automated SLE_11 builds I often see failures like that: [ 74s] wrappers.c:5:25: error: x86-emulate.h: No such file or directory [ 74s] make[6]: *** [wrappers.o] Error 1 Just retriggering the package build fixes the error. SLE11 has make-3.81. Is that version of make perhaps too old to r

[Xen-devel] [qemu-mainline test] 121325: regressions - FAIL

2018-03-29 Thread osstest service owner
flight 121325 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/121325/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 14 xen-boot/l1 fail REGR. vs. 120095 test-amd64-amd64-

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 March 2018 12:41 > To: Paul Durrant > Cc: Julien Grall ; Andrew Cooper > ; Wei Liu ; George > Dunlap ; Ian Jackson ; > Stefano Stabellini ; xen-devel@lists.xenproject.org; > Konrad Rzeszutek Wilk ; Tim (Xen.org)

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread George Dunlap
On 03/29/2018 07:52 AM, Juergen Gross wrote: > Hi all, > > The cut-off date for Xen 4.11 is March 30th, 2018. If you want your > features to be included for the release, please make sure they are > committed by March 30th, 2018. March 30th is a public holiday here in the UK. Is it the same in Ge

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

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 11:23, wrote: > On Thu, Mar 29, Jan Beulich wrote: > >> When you use abs() or alike in places like this, it is more immediately >> obvious to the reader what you're doing. > > Does every supported compiler actually understand this? > int khz_diff = __builtin_abs(cpu_khz - gtsc

Re: [Xen-devel] [PATCH RFC] x86/HVM: suppress I/O completion for port output

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 29 March 2018 10:41 > To: Paul Durrant > Cc: Andrew Cooper ; xen-devel de...@lists.xenproject.org> > Subject: RE: [PATCH RFC] x86/HVM: suppress I/O completion for port output > > >>> On 29.03.18 at 11:13, wrote:

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Juergen Gross
On 29/03/18 11:53, George Dunlap wrote: > On 03/29/2018 07:52 AM, Juergen Gross wrote: >> Hi all, >> >> The cut-off date for Xen 4.11 is March 30th, 2018. If you want your >> features to be included for the release, please make sure they are >> committed by March 30th, 2018. > > March 30th is a pu

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 11:56:59AM +0200, Juergen Gross wrote: > On 29/03/18 11:53, George Dunlap wrote: > > On 03/29/2018 07:52 AM, Juergen Gross wrote: > >> Hi all, > >> > >> The cut-off date for Xen 4.11 is March 30th, 2018. If you want your > >> features to be included for the release, please m

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 11:56, wrote: > On 29/03/18 11:53, George Dunlap wrote: >> On 03/29/2018 07:52 AM, Juergen Gross wrote: >>> Hi all, >>> >>> The cut-off date for Xen 4.11 is March 30th, 2018. If you want your >>> features to be included for the release, please make sure they are >>> committed by

Re: [Xen-devel] fuzz/wrappers.c fails to build due to missing x86-emulate.h

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 11:46, wrote: > In my automated SLE_11 builds I often see failures like that: > > [ 74s] wrappers.c:5:25: error: x86-emulate.h: No such file or directory > [ 74s] make[6]: *** [wrappers.o] Error 1 > > Just retriggering the package build fixes the error. SLE11 has make-3.81

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

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Jan Beulich wrote: > Actually I was wrong - we have an abstraction already, just that > it's upper case: ABS(). But it requires its input to have signed type. Would this be acceptable? khz_diff = ABS((long)cpu_khz - (long)gtsc_khz); Olaf signature.asc Description: PGP signature

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread George Dunlap
On 03/29/2018 10:56 AM, Juergen Gross wrote: > On 29/03/18 11:53, George Dunlap wrote: >> On 03/29/2018 07:52 AM, Juergen Gross wrote: >>> Hi all, >>> >>> The cut-off date for Xen 4.11 is March 30th, 2018. If you want your >>> features to be included for the release, please make sure they are >>> c

Re: [Xen-devel] [PATCH v18 06/11] x86/hvm/ioreq: add a new mappable resource type...

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 March 2018 12:55 > To: Paul Durrant > Cc: JulienGrall ; Andrew Cooper > ; Wei Liu ; George > Dunlap ; Ian Jackson ; > Stefano Stabellini ; xen-devel@lists.xenproject.org; > Konrad Rzeszutek Wilk ; Tim (Xen.org)

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 12:22, wrote: > On 03/29/2018 10:56 AM, Juergen Gross wrote: >> On 29/03/18 11:53, George Dunlap wrote: >>> On 03/29/2018 07:52 AM, Juergen Gross wrote: Hi all, The cut-off date for Xen 4.11 is March 30th, 2018. If you want your features to be included for th

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

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 12:05, wrote: > On Thu, Mar 29, Jan Beulich wrote: > >> Actually I was wrong - we have an abstraction already, just that >> it's upper case: ABS(). But it requires its input to have signed type. > > Would this be acceptable? > khz_diff = ABS((long)cpu_khz - (long)gtsc_khz); I

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 04:35:27AM -0600, Jan Beulich wrote: > >>> On 29.03.18 at 12:22, wrote: > > On 03/29/2018 10:56 AM, Juergen Gross wrote: > >> On 29/03/18 11:53, George Dunlap wrote: > >>> On 03/29/2018 07:52 AM, Juergen Gross wrote: > Hi all, > > The cut-off date for Xen 4.1

Re: [Xen-devel] [PATCH v2 for-4.11] tools: set DEBUG_DIR from configure

2018-03-29 Thread Wei Liu
On Wed, Mar 28, 2018 at 08:34:14AM +0100, Roger Pau Monne wrote: > Allow the path to be set from a configure command line option. > > Signed-off-by: Roger Pau Monné Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://l

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread George Dunlap
On 03/29/2018 11:35 AM, Jan Beulich wrote: On 29.03.18 at 12:22, wrote: >> On 03/29/2018 10:56 AM, Juergen Gross wrote: >>> On 29/03/18 11:53, George Dunlap wrote: On 03/29/2018 07:52 AM, Juergen Gross wrote: > Hi all, > > The cut-off date for Xen 4.11 is March 30th, 2018. If

Re: [Xen-devel] [PATCH v18 10/11] common: add a new mappable resource type: XENMEM_resource_grant_table

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 March 2018 13:55 > To: Paul Durrant > Cc: Andrew Cooper ; Wei Liu > ; George Dunlap ; Ian > Jackson ; Stefano Stabellini > ; xen-devel@lists.xenproject.org; Tim (Xen.org) > > Subject: Re: [PATCH v18 10/11] comm

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Juergen Gross
On 29/03/18 12:50, Wei Liu wrote: > On Thu, Mar 29, 2018 at 04:35:27AM -0600, Jan Beulich wrote: > On 29.03.18 at 12:22, wrote: >>> On 03/29/2018 10:56 AM, Juergen Gross wrote: On 29/03/18 11:53, George Dunlap wrote: > On 03/29/2018 07:52 AM, Juergen Gross wrote: >> Hi all, >>

Re: [Xen-devel] fuzz/wrappers.c fails to build due to missing x86-emulate.h

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Jan Beulich wrote: > wrappers.o: $(x86_emulate.h) Thanks. This did probably help, the build got further. Will send a patch. But another unrelated regression appeared. Olaf signature.asc Description: PGP signature ___ Xen-devel mailing

[Xen-devel] seabios regression in staging

2018-03-29 Thread Olaf Hering
It seems the latest seabios that was pulled into staging recently fails to compile, at least in SLE_11: [ 86s] Compile checking out/src/hw/blockcmd.o [ 86s] src/hw/blockcmd.c: In function 'scsi_rep_luns_scan': [ 86s] src/hw/blockcmd.c:229: error: unknown field 'cdbcmd' specified in initia

[Xen-devel] [PATCH v1] fuzz: wrappers.c depends on x86_emulate.h

2018-03-29 Thread Olaf Hering
In my automated SLE_11 builds I often see failures like that: [ 74s] wrappers.c:5:25: error: x86-emulate.h: No such file or directory [ 74s] make[6]: *** [wrappers.o] Error 1 Signed-off-by: Olaf Hering --- tools/fuzz/x86_instruction_emulator/Makefile | 2 ++ 1 file changed, 2 insertions(+)

Re: [Xen-devel] [PATCH v1] fuzz: wrappers.c depends on x86_emulate.h

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 14:01, wrote: > --- a/tools/fuzz/x86_instruction_emulator/Makefile > +++ b/tools/fuzz/x86_instruction_emulator/Makefile > @@ -18,6 +18,8 @@ asm: > > asm/%: asm ; > > +wrappers.o: $(x86_emulate.h) > + > x86-emulate.c x86-emulate.h wrappers.c: %: > [ -L $* ] || ln -sf

[Xen-devel] [PATCH v6] new config option vtsc_tolerance_khz to avoid TSC emulation

2018-03-29 Thread Olaf Hering
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. One option to avoid the TSC option is to run domUs with

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 12:50, wrote: > On Thu, Mar 29, 2018 at 04:35:27AM -0600, Jan Beulich wrote: >> >>> On 29.03.18 at 12:22, wrote: >> > On 03/29/2018 10:56 AM, Juergen Gross wrote: >> >> On 29/03/18 11:53, George Dunlap wrote: >> >>> On 03/29/2018 07:52 AM, Juergen Gross wrote: >> Hi all, >

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 11:53, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 26 March 2018 12:41 >> >> >>> On 22.03.18 at 12:55, wrote: >> > --- a/xen/include/xlat.lst >> > +++ b/xen/include/xlat.lst >> > @@ -86,6 +86,7 @@ >> > ! memory_map memory.h >> > ! mem

Re: [Xen-devel] [PATCH v18 10/11] common: add a new mappable resource type: XENMEM_resource_grant_table

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 13:02, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 26 March 2018 13:55 >> >> >>> On 26.03.18 at 14:16, wrote: >> On 22.03.18 at 12:55, wrote: >> >> --- a/xen/common/grant_table.c >> >> +++ b/xen/common/grant_table.c >> >> @@ -3863,6 +3863,35 @@ int me

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 29 March 2018 13:29 > To: Paul Durrant > Cc: Julien Grall ; Andrew Cooper > ; George Dunlap > ; Ian Jackson ; Wei Liu > ; StefanoStabellini ; xen- > de...@lists.xenproject.org; Konrad Rzeszutek Wilk > ; Tim (Xen.or

Re: [Xen-devel] [PATCH v4 5/7] xen/x86: disable global pages for domains with XPTI active

2018-03-29 Thread Jan Beulich
>>> On 27.03.18 at 11:07, wrote: > 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

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf > Of Paul Durrant > Sent: 29 March 2018 13:43 > To: 'Jan Beulich' > Cc: StefanoStabellini ; Wei Liu > ; Andrew Cooper ; Tim > (Xen.org) ; George Dunlap ; > Julien Grall ; xen-devel@lists.xenpro

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

2018-03-29 Thread osstest service owner
flight 121327 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/121327/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt-raw 10 debian-di-installfail REGR. vs. 121315 build-arm64-pvops

[Xen-devel] [PATCH 1/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Xen zero-copy helper DRM driver, add user-space API of the driver: 1. DRM_IOCTL_XEN_ZCOPY_DUMB_FROM_REFS This will create a DRM dumb buffer from grant references provided by the frontend. The intended usage is: - Frontend - creates a dumb/display buff

[Xen-devel] [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-03-29 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! When using Xen PV DRM frontend driver then on backend side one will need to do copying of display buffers' contents (filled by the frontend's user-space) into buffers allocated at the backend side. Taking into account the size of display buffers and frames pe

Re: [Xen-devel] [PATCH v3 06/39] ARM: evtchn: Handle level triggered IRQs correctly

2018-03-29 Thread Andre Przywara
Hi, On 28/03/18 18:46, Stefano Stabellini wrote: > On Wed, 28 Mar 2018, Andre Przywara wrote: >> On 28/03/18 01:01, Stefano Stabellini wrote: >>> On Wed, 21 Mar 2018, Andre Przywara wrote: The event channel IRQ has level triggered semantics, however the current VGIC treats everything as

Re: [Xen-devel] [PATCH v4 4/7] xen/x86: use invpcid for flushing the TLB

2018-03-29 Thread Jan Beulich
>>> On 27.03.18 at 11:07, wrote: > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -63,6 +63,10 @@ boolean_param("nosmp", opt_nosmp); > static unsigned int __initdata max_cpus; > integer_param("maxcpus", max_cpus); > > +/* opt_invpcid: If false, don't use INVPCID instruction even

Re: [Xen-devel] [PATCH v5 1/1] drm/xen-front: Add support for Xen PV display frontend

2018-03-29 Thread kbuild test robot
Hi Oleksandr, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on next-20180329] [cannot apply to v4.16-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [Xen-devel] [PATCH v4 7/7] xen/x86: use PCID feature

2018-03-29 Thread Jan Beulich
>>> On 27.03.18 at 11:07, wrote: > --- a/xen/arch/x86/domain_page.c > +++ b/xen/arch/x86/domain_page.c > @@ -51,7 +51,7 @@ static inline struct vcpu *mapcache_current_vcpu(void) > if ( (v = idle_vcpu[smp_processor_id()]) == current ) > sync_local_execstate(); > /* We

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 15:17, wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf >> Of Paul Durrant >> Sent: 29 March 2018 13:43 >> To: 'Jan Beulich' >> Cc: StefanoStabellini ; Wei Liu >> ; Andrew Cooper ; Tim >> (Xen.org) ; George Dunla

Re: [Xen-devel] [PATCH v4 4/7] xen/x86: use invpcid for flushing the TLB

2018-03-29 Thread Juergen Gross
On 29/03/18 15:44, Jan Beulich wrote: On 27.03.18 at 11:07, wrote: >> --- a/xen/arch/x86/setup.c >> +++ b/xen/arch/x86/setup.c >> @@ -63,6 +63,10 @@ boolean_param("nosmp", opt_nosmp); >> static unsigned int __initdata max_cpus; >> integer_param("maxcpus", max_cpus); >> >> +/* opt_invpcid:

Re: [Xen-devel] [PATCH v18 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf > Of Jan Beulich > Sent: 29 March 2018 15:25 > To: Paul Durrant > Cc: StefanoStabellini ; Wei Liu > ; Andrew Cooper ; Tim > (Xen.org) ; George Dunlap ; > Julien Grall ; xen-devel@lists.xenproje

Re: [Xen-devel] Cut-off date for Xen 4.11 is March 30th, 2018

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 06:25:06AM -0600, Jan Beulich wrote: > >>> On 29.03.18 at 12:50, wrote: > > On Thu, Mar 29, 2018 at 04:35:27AM -0600, Jan Beulich wrote: > >> >>> On 29.03.18 at 12:22, wrote: > >> > On 03/29/2018 10:56 AM, Juergen Gross wrote: > >> >> On 29/03/18 11:53, George Dunlap wrote

Re: [Xen-devel] seabios regression in staging

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 01:42:43PM +0200, Olaf Hering wrote: > It seems the latest seabios that was pulled into staging recently fails > to compile, at least in SLE_11: > > [ 86s] Compile checking out/src/hw/blockcmd.o > [ 86s] src/hw/blockcmd.c: In function 'scsi_rep_luns_scan': > [ 86s]

Re: [Xen-devel] seabios regression in staging

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Wei Liu wrote: > Do you use a non-default seabios configuration? Osstest seems to be > happy with the update. Not sure how I would create a non-default seabios or toolchain build. osstest does not use SLE11, so it can not possibly spot such compile errors. It would certainly be c

Re: [Xen-devel] [PATCH v3 32/39] ARM: new VGIC: Implement arch_move_irqs()

2018-03-29 Thread Andre Przywara
Hi, On 28/03/18 19:47, Stefano Stabellini wrote: > On Wed, 21 Mar 2018, Andre Przywara wrote: >> When a VCPU moves to another CPU, we need to adjust the target affinity >> of any hardware mapped vIRQs, to observe our "physical-follows-virtual" >> policy. >> Implement arch_move_irqs() to adjust the

Re: [Xen-devel] seabios regression in staging

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 04:53:41PM +0200, Olaf Hering wrote: > On Thu, Mar 29, Wei Liu wrote: > > > Do you use a non-default seabios configuration? Osstest seems to be > > happy with the update. > > Not sure how I would create a non-default seabios or toolchain build. > > osstest does not use SL

Re: [Xen-devel] [PATCH v4 7/7] xen/x86: use PCID feature

2018-03-29 Thread Juergen Gross
On 29/03/18 16:19, Jan Beulich wrote: On 27.03.18 at 11:07, wrote: >> --- a/xen/arch/x86/domain_page.c >> +++ b/xen/arch/x86/domain_page.c >> @@ -51,7 +51,7 @@ static inline struct vcpu *mapcache_current_vcpu(void) >> if ( (v = idle_vcpu[smp_processor_id()]) == current ) >>

[Xen-devel] [PATCH] ARM: new VGIC: evtchn: fix potential race in vcpu_mark_events_pending()

2018-03-29 Thread Andre Przywara
Stefano pointed out the following situation: -- 1) vcpuA/cpuA is running, it has already handled the event, cleared evtchn_upcall_pending and EOIed the event_irq but hasn't trapped into Xen yet. It is still in guest mode. 2) Xen on cpuB calls vcpu_mark_events_pending(vcpuA), th

Re: [Xen-devel] seabios regression in staging

2018-03-29 Thread Olaf Hering
On Thu, Mar 29, Wei Liu wrote: > I think this is a problem with seabios upstream. We should ask them to > fix it and do another release. https://mail.coreboot.org/pipermail/seabios/2017-November/011932.html gcc-4.6+ is now required. Olaf signature.asc Description: PGP signature __

Re: [Xen-devel] [PATCH v4 7/7] xen/x86: use PCID feature

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 17:15, wrote: > On 29/03/18 16:19, Jan Beulich wrote: > On 27.03.18 at 11:07, wrote: >>> @@ -102,7 +103,21 @@ void write_cr3_cr4(unsigned long cr3, unsigned long >>> cr4) >>> t = pre_flush(); >>> >>> if ( read_cr4() & X86_CR4_PGE ) >>> +/* >>> +

[Xen-devel] Upping gcc requirement for x86

2018-03-29 Thread Wei Liu
Hi all Seabios has bumped their requirement to 4.6 (released 7 years ago). We either need to bump our too or have a separate entry for seabios. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo

[Xen-devel] [PATCH v19 09/11] tools/libxenforeignmemory: reduce xenforeignmemory_restrict code footprint

2018-03-29 Thread Paul Durrant
By using a static inline stub in private.h for OS where this functionality is not implemented, the various duplicate stubs in the OS-specific source modules can be avoided. Signed-off-by: Paul Durrant Reviewed-by: Roger Pau Monné Acked-by: Wei Liu --- Cc: Ian Jackson v4: - Removed extraneous

[Xen-devel] [PATCH v19 00/11] x86: guest resource mapping

2018-03-29 Thread Paul Durrant
This series introduces support for direct mapping of guest resources. The resources are: - IOREQ server pages - Grant tables v19: - Respond to Jan's latest comments and fix grant table verion setting lost in re-base v18: - Re-base - Use the now-reference-counted emulating domain to host ior

[Xen-devel] [PATCH v19 06/11] x86/hvm/ioreq: add a new mappable resource type...

2018-03-29 Thread Paul Durrant
... XENMEM_resource_ioreq_server This patch adds support for a new resource type that can be mapped using the XENMEM_acquire_resource memory op. If an emulator makes use of this resource type then, instead of mapping gfns, the IOREQ server will allocate pages which are assigned to the emulating d

[Xen-devel] [PATCH v19 07/11] x86/mm: add an extra command to HYPERVISOR_mmu_update...

2018-03-29 Thread Paul Durrant
...to allow the calling domain to prevent translation of specified l1e value. Despite what the comment in public/xen.h might imply, specifying a command value of MMU_NORMAL_PT_UPDATE will not simply update an l1e with the specified value. Instead, mod_l1_entry() tests whether foreign_dom has PG_tr

[Xen-devel] [PATCH v19 02/11] x86/hvm/ioreq: simplify code and use consistent naming

2018-03-29 Thread Paul Durrant
This patch re-works much of the ioreq server initialization and teardown code: - The hvm_map/unmap_ioreq_gfn() functions are expanded to call through to hvm_alloc/free_ioreq_gfn() rather than expecting them to be called separately by outer functions. - Several functions now test the validity o

[Xen-devel] [PATCH v19 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2018-03-29 Thread Paul Durrant
Certain memory resources associated with a guest are not necessarily present in the guest P2M. This patch adds the boilerplate for new memory op to allow such a resource to be priv-mapped directly, by either a PV or HVM tools domain. NOTE: Whilst the new op is not intrinsicly specific to the x86

[Xen-devel] [PATCH v19 03/11] x86/hvm/ioreq: use gfn_t in struct hvm_ioreq_page

2018-03-29 Thread Paul Durrant
This patch adjusts the ioreq server code to use type-safe gfn_t values where possible. No functional change. Signed-off-by: Paul Durrant Reviewed-by: Roger Pau Monné Reviewed-by: Wei Liu Acked-by: Jan Beulich --- Cc: Andrew Cooper v18: - Trivial re-base. --- xen/arch/x86/hvm/ioreq.c

[Xen-devel] [PATCH v19 08/11] tools/libxenforeignmemory: add support for resource mapping

2018-03-29 Thread Paul Durrant
A previous patch introduced a new HYPERVISOR_memory_op to acquire guest resources for direct priv-mapping. This patch adds new functionality into libxenforeignmemory to make use of a new privcmd ioctl [1] that uses the new memory op to make such resources available via mmap(2). [1] http://xenbit

[Xen-devel] [PATCH v19 01/11] x86/hvm/ioreq: maintain an array of ioreq servers rather than a list

2018-03-29 Thread Paul Durrant
A subsequent patch will remove the current implicit limitation on creation of ioreq servers which is due to the allocation of gfns for the ioreq structures and buffered ioreq ring. It will therefore be necessary to introduce an explicit limit and, since this limit should be small, it simplifies th

[Xen-devel] [PATCH v19 04/11] x86/hvm/ioreq: defer mapping gfns until they are actually requested

2018-03-29 Thread Paul Durrant
A subsequent patch will introduce a new scheme to allow an emulator to map ioreq server pages directly from Xen rather than the guest P2M. This patch lays the groundwork for that change by deferring mapping of gfns until their values are requested by an emulator. To that end, the pad field of the

Re: [Xen-devel] seabios regression in staging

2018-03-29 Thread Wei Liu
On Thu, Mar 29, 2018 at 05:36:32PM +0200, Olaf Hering wrote: > On Thu, Mar 29, Wei Liu wrote: > > > I think this is a problem with seabios upstream. We should ask them to > > fix it and do another release. > > https://mail.coreboot.org/pipermail/seabios/2017-November/011932.html > > gcc-4.6+ is

Re: [Xen-devel] Upping gcc requirement for x86

2018-03-29 Thread Jan Beulich
>>> On 29.03.18 at 17:45, wrote: > Seabios has bumped their requirement to 4.6 (released 7 years ago). We > either need to bump our too or have a separate entry for seabios. Ideally we would then come to common grounds with what the ARM folks demand. I don't think we should have minimal requireme

[Xen-devel] [PATCH v19 10/11] common: add a new mappable resource type: XENMEM_resource_grant_table

2018-03-29 Thread Paul Durrant
This patch allows grant table frames to be mapped using the XENMEM_acquire_resource memory op. NOTE: This patch expands the on-stack mfn_list array in acquire_resource() but it is still small enough to remain on-stack. Signed-off-by: Paul Durrant --- Cc: Jan Beulich Cc: Andrew Cooper Cc:

[Xen-devel] [PATCH v19 11/11] tools/libxenctrl: use new xenforeignmemory API to seed grant table

2018-03-29 Thread Paul Durrant
A previous patch added support for priv-mapping guest resources directly (rather than having to foreign-map, which requires P2M modification for HVM guests). This patch makes use of the new API to seed the guest grant table unless the underlying infrastructure (i.e. privcmd) doesn't support it, in

Re: [Xen-devel] [PATCH 1/1] xen-netback: process malformed sk_buff correctly to avoid BUG_ON()

2018-03-29 Thread David Miller
From: Dongli Zhang Date: Wed, 28 Mar 2018 07:42:16 +0800 > The "BUG_ON(!frag_iter)" in function xenvif_rx_next_chunk() is triggered if > the received sk_buff is malformed, that is, when the sk_buff has pattern > (skb->data_len && !skb_shinfo(skb)->nr_frags). Below is a sample call > stack: We sh

[Xen-devel] Freeze date for 4.11 shifted by one week

2018-03-29 Thread Juergen Gross
Hi all, as the original freeze date (March 30th, 2018) is a holiday in many countries and some of the maintainers have been very busy with security work during most of the development phase of Xen 4.11 I've decided to shift the freeze date of Xen 4.11 by one week. So the new freeze date will be A

Re: [Xen-devel] [PATCH] xl/libxl: add pvcalls support

2018-03-29 Thread Ian Jackson
Stefano Stabellini writes ("[PATCH] xl/libxl: add pvcalls support"): > Add pvcalls support to libxl and xl. Create the appropriate pvcalls > entries in xenstore. ... > + ~/device/pvcalls/$DEVID/* [] > + > +Paravirtualized POSIX function calls frontend. Described by > +[docs/misc/pvcalls.markdow

Re: [Xen-devel] Make coverity results public

2018-03-29 Thread Stefano Stabellini
On Thu, 29 Mar 2018, Roger Pau Monné wrote: > On Thu, Mar 29, 2018 at 12:30:25AM +, Julien Grall wrote: > > (sorry for the formatting) > > > > On Wed, 28 Mar 2018, 21:48 George Dunlap, wrote: > > > > > On 03/28/2018 02:33 PM, Roger Pau Monné wrote: > > > > Hello, > > > > > > > > According to

Re: [Xen-devel] Upping gcc requirement for x86

2018-03-29 Thread George Dunlap
On Thu, Mar 29, 2018 at 4:45 PM, Wei Liu wrote: > Hi all > > Seabios has bumped their requirement to 4.6 (released 7 years ago). We > either need to bump our too or have a separate entry for seabios. RHEL / CentOS 6 are still supported, and they come with GCC 4.4. Other potential options: 1. Ha

[Xen-devel] [xen-4.6-testing test] 121328: regressions - FAIL

2018-03-29 Thread osstest service owner
flight 121328 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/121328/ 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. 119227 Tests w

  1   2   >