Re: [Xen-devel] [PATCHv2 1/3] x86/fpu: improve check for XSAVE* not writing FIP/FDP fields

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 18:42, wrote: > On 23/02/16 14:59, Jan Beulich wrote: > On 23.02.16 at 12:05, wrote: >>> --- a/xen/arch/x86/xstate.c >>> +++ b/xen/arch/x86/xstate.c >>> @@ -263,41 +263,24 @@ void xsave(struct vcpu *v, uint64_t mask) >>> >>> if ( word_size <= 0 || !is_pv_32bit_vcpu(v

Re: [Xen-devel] [PATCH] version: Document guest_handle

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 20:04, wrote: > From 7da6d169835acb4aa93bfa48b1ae6b8e198f8e5f Mon Sep 17 00:00:00 2001 > From: Konrad Rzeszutek Wilk > Date: Fri, 19 Feb 2016 09:26:02 -0500 > Subject: [PATCH] version: Document guest_handle > > And what it is usually used for. > > Signed-off-by: Konrad Rzeszu

[Xen-devel] [PATCH v2] xl: Improve return and exit codes of parse_config_data().

2016-02-23 Thread Harmandeep Kaur
Turning parse_config_data() exit codes towards using the EXIT_[SUCCESS|FAILURE] constants, instead of arbitrary numbers or libxl return codes. Signed-off-by: Harmandeep Kaur Reviewed-by: Dario Faggioli --- v2: Changelog edit. --- tools/libxl/xl_cmdimpl.c | 112 +++---

Re: [Xen-devel] [PATCH 2/3] x86/xsaves: fix overwriting between non-lazy/lazy xsave[sc]

2016-02-23 Thread Shuai Ruan
On Mon, Feb 22, 2016 at 10:08:52AM -0700, Jan Beulich wrote: > >>> On 22.02.16 at 06:35, wrote: > > First of all I wonder on what basis you collect your Cc lists on > patches. > I send the bugs-fix patch as whole. I just get the Cc lists using the script based on the whole patchset. May be I wil

Re: [Xen-devel] [PATCH 3/3] vVMX: use latched VMCS machine address

2016-02-23 Thread Li, Liang Z
> >> -void virtual_vmcs_enter(void *vvmcs) > >> +void virtual_vmcs_enter(const struct vcpu *v) > >> { > >> -__vmptrld(pfn_to_paddr(domain_page_map_to_mfn(vvmcs))); > >> +__vmptrld(v->arch.hvm_vmx.vmcs_shadow_maddr); > > > > Debug shows v->arch.hvm_vmx.vmcs_shadow_maddr will equal to 0 at

Re: [Xen-devel] [PATCH 3/3] x86/xsaves: ebx may return wrong value using CPUID eax=0xdh, ecx =1

2016-02-23 Thread Shuai Ruan
On Mon, Feb 22, 2016 at 10:18:42AM -0700, Jan Beulich wrote: > > (1ULL << sub_leaf) ) > > +{ > > +domain_cpuid(d, input, sub_leaf, &_eax, &_ebx, > > + &_ecx, &_edx); > > +

[Xen-devel] [linux-4.1 test] 83683: regressions - FAIL

2016-02-23 Thread osstest service owner
flight 83683 linux-4.1 real [real] http://logs.test-lab.xenproject.org/osstest/logs/83683/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-rumpuserxen 6 xen-build fail REGR. vs. 66399 build-i386-rumpuserxen

Re: [Xen-devel] [PATCH v5 1/6] x86/hvm: Collect information of TSC scaling ratio

2016-02-23 Thread Haozhong Zhang
On 02/23/16 08:37, Jan Beulich wrote: > >>> On 23.02.16 at 15:16, wrote: > > On 02/23/2016 09:10 AM, Jan Beulich wrote: > > On 23.02.16 at 15:00, wrote: > >>> On 02/22/2016 09:04 PM, Haozhong Zhang wrote: > >>> > > +if ( cpu_has_tsc_ratio ) > +svm_function_table

[Xen-devel] [ovmf test] 83704: regressions - FAIL

2016-02-23 Thread osstest service owner
flight 83704 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/83704/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 17 guest-start/debianhvm.repeat fail REGR. vs. 65543 test-amd64-amd64-

Re: [Xen-devel] [PATCH 3/3] x86/xsaves: ebx may return wrong value using CPUID eax=0xdh, ecx =1

2016-02-23 Thread Shuai Ruan
On Mon, Feb 22, 2016 at 10:18:42AM -0700, Jan Beulich wrote: > > @@ -4703,7 +4703,19 @@ void hvm_cpuid(unsigned int input, unsigned int > > *eax, unsigned int *ebx, > > for ( sub_leaf = 2; sub_leaf < 63; sub_leaf++ ) > > if ( (v->arch.xcr0 | v->arch.hv

Re: [Xen-devel] [libvirt] [FOR 1.3.0 PATCH] conf: add net device prefix for Xen

2016-02-23 Thread Jim Fehlig
On 02/22/2016 04:15 PM, Joao Martins wrote: > > On 12/08/2015 04:06 PM, Jim Fehlig wrote: >> Daniel P. Berrange wrote: >>> On Mon, Dec 07, 2015 at 10:59:32PM -0700, Jim Fehlig wrote: On 12/07/2015 11:52 AM, Daniel P. Berrange wrote: > On Mon, Dec 07, 2015 at 09:42:21AM -0700, Jim Fehlig wr

Re: [Xen-devel] [libvirt] [PATCH V2 4/4] libxl: add support for rbd qdisk

2016-02-23 Thread Jim Fehlig
On 02/22/2016 07:35 AM, Ján Tomko wrote: > On Wed, Feb 17, 2016 at 05:33:45PM -0700, Jim Fehlig wrote: >> xl/libxl already supports qemu's network-based block backends >> such as nbd and rbd. libvirt has supported configuring such >> s for long time too. This patch adds support for rbd >> disks in

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

2016-02-23 Thread osstest service owner
flight 83674 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/83674/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 5 libvirt-buildfail in 83463 REGR. vs. 81632 Tests which are f

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Wu, Feng
> -Original Message- > From: Doug Goldstein [mailto:car...@cardoe.com] > Sent: Wednesday, February 24, 2016 11:02 AM > To: Jan Beulich ; Wu, Feng > Cc: Tian, Kevin ; Keir Fraser ; George > Dunlap ; Andrew Cooper > ; Dario Faggioli ; xen- > de...@lists.xen.org > Subject: Re: [Xen-devel] [

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Doug Goldstein
On 2/23/16 10:34 AM, Jan Beulich wrote: On 23.02.16 at 09:34, wrote: > >> --- a/xen/include/asm-x86/hvm/hvm.h >> +++ b/xen/include/asm-x86/hvm/hvm.h >> @@ -565,6 +565,12 @@ const char *hvm_efer_valid(const struct vcpu *v, >> uint64_t value, >> signed int cr0_pg);

[Xen-devel] [linux-linus test] 83655: regressions - FAIL

2016-02-23 Thread osstest service owner
flight 83655 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/83655/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-rumpuserxen6 xen-build fail REGR. vs. 59254 build-amd64-rumpuserx

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, February 24, 2016 12:34 AM > To: Wu, Feng > Cc: Andrew Cooper ; Dario Faggioli > ; George Dunlap ; > Tian, Kevin ; xen-devel@lists.xen.org; Keir Fraser > > Subject: Re: [PATCH v13 1/2] vmx: VT-d poste

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Wu, Feng
> -Original Message- > From: George Dunlap [mailto:george.dun...@citrix.com] > Sent: Tuesday, February 23, 2016 7:07 PM > To: Wu, Feng ; xen-devel@lists.xen.org > Cc: Keir Fraser ; Jan Beulich ; Andrew > Cooper ; Tian, Kevin ; > George Dunlap ; Dario Faggioli > > Subject: Re: [PATCH v13

Re: [Xen-devel] [RFC v2 2/7] tables.h: add linker table support

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 04:06:55PM -0800, H. Peter Anvin wrote: > On 02/23/2016 03:36 PM, Luis R. Rodriguez wrote: > > > >> 4. the only useful operator on a range is "is address X inside this > >>range"; this operator is likely *not* useful for a table, since

Re: [Xen-devel] [RFC v2 2/7] tables.h: add linker table support

2016-02-23 Thread H. Peter Anvin
On 02/23/2016 03:36 PM, Luis R. Rodriguez wrote: > >> 4. the only useful operator on a range is "is address X inside this >>range"; this operator is likely *not* useful for a table, since >>if you have to ever invoke it you are probably doing something very >>wrong. > > kprobe uses it

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Andrew Cooper
On 23/02/2016 23:44, Luis R. Rodriguez wrote: > On Tue, Feb 23, 2016 at 10:44:56PM +, Andrew Cooper wrote: >> On 23/02/2016 22:18, Luis R. Rodriguez wrote: >>> On Tue, Feb 23, 2016 at 05:00:12PM -0500, Konrad Rzeszutek Wilk wrote: On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez

Re: [Xen-devel] [libvirt] [PATCH V2 4/4] libxl: add support for rbd qdisk

2016-02-23 Thread Jim Fehlig
Ján Tomko wrote: > On Wed, Feb 17, 2016 at 05:33:45PM -0700, Jim Fehlig wrote: >> xl/libxl already supports qemu's network-based block backends >> such as nbd and rbd. libvirt has supported configuring such >> s for long time too. This patch adds support for rbd >> disks in the libxl driver by gene

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 10:44:56PM +, Andrew Cooper wrote: > On 23/02/2016 22:18, Luis R. Rodriguez wrote: > > On Tue, Feb 23, 2016 at 05:00:12PM -0500, Konrad Rzeszutek Wilk wrote: > >> On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez wrote: > >>> For a while now I've been installin

Re: [Xen-devel] [RFC v2 2/7] tables.h: add linker table support

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 3:22 PM, H. Peter Anvin wrote: > On 02/23/2016 03:08 PM, Luis R. Rodriguez wrote: >> >> OK yes I see the issue now. I've modified this to use const, and >> retested the kprobe patch and it works well still. kprobe would not >> use LINKTABLE_TEXT, instead it uses its own mac

Re: [Xen-devel] [RFC v2 2/7] tables.h: add linker table support

2016-02-23 Thread H. Peter Anvin
On 02/23/2016 03:08 PM, Luis R. Rodriguez wrote: > > OK yes I see the issue now. I've modified this to use const, and > retested the kprobe patch and it works well still. kprobe would not > use LINKTABLE_TEXT, instead it uses its own macro, however users of > LINKTABLE_TEXT would then have const d

Re: [Xen-devel] Introduction to the Community and Getting Started

2016-02-23 Thread Jesus M. Gonzalez-Barahona
Thanks a lot, Lars. Akanksha, sorry for the long delay in answering, i had completely missed your message. I guess Lars comments are a good intro to how to start. Please, let me know if you need something else, or comment on how you are progressing. Saludos, Jesus. On Tue, 2016-02-23 at

Re: [Xen-devel] [RFC v2 2/7] tables.h: add linker table support

2016-02-23 Thread Luis R. Rodriguez
On Fri, Feb 19, 2016 at 1:48 PM, Luis R. Rodriguez wrote: > On Fri, Feb 19, 2016 at 12:25:55PM -0800, H. Peter Anvin wrote: >> On 02/19/2016 05:45 AM, Luis R. Rodriguez wrote: >> > + >> > +/** >> > + * DOC: Regular linker linker table constructors >> > + * >> > + * Regular constructors are expecte

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Andrew Cooper
On 23/02/2016 22:18, Luis R. Rodriguez wrote: > On Tue, Feb 23, 2016 at 05:00:12PM -0500, Konrad Rzeszutek Wilk wrote: >> On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez wrote: >>> For a while now I've been installing Xen from source on my Debian box, >>> with a default configuration al

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Konrad Rzeszutek Wilk
On Tue, Feb 23, 2016 at 11:18:09PM +0100, Luis R. Rodriguez wrote: > On Tue, Feb 23, 2016 at 05:00:12PM -0500, Konrad Rzeszutek Wilk wrote: > > On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez wrote: > > > For a while now I've been installing Xen from source on my Debian box, > > > with

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 05:00:12PM -0500, Konrad Rzeszutek Wilk wrote: > On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez wrote: > > For a while now I've been installing Xen from source on my Debian box, > > with a default configuration always. This is party why I've run into > > compile

Re: [Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Konrad Rzeszutek Wilk
On Tue, Feb 23, 2016 at 12:48:18PM -0800, Luis R. Rodriguez wrote: > For a while now I've been installing Xen from source on my Debian box, > with a default configuration always. This is party why I've run into > compile issues before it seems, but I've also just picked up on > another possible iss

Re: [Xen-devel] [libvirt] [FOR 1.3.0 PATCH] conf: add net device prefix for Xen

2016-02-23 Thread Joao Martins
On 02/22/2016 11:15 PM, Joao Martins wrote: > > > On 12/08/2015 04:06 PM, Jim Fehlig wrote: >> Daniel P. Berrange wrote: >>> On Mon, Dec 07, 2015 at 10:59:32PM -0700, Jim Fehlig wrote: On 12/07/2015 11:52 AM, Daniel P. Berrange wrote: > On Mon, Dec 07, 2015 at 09:42:21AM -0700, Jim Feh

[Xen-devel] [linux-mingo-tip-master test] 83636: regressions - FAIL

2016-02-23 Thread osstest service owner
flight 83636 linux-mingo-tip-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/83636/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-xsm 15 guest-localmigratefail REGR. vs. 60684 build-i386

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Andrew Cooper
On 23/02/2016 20:41, Konrad Rzeszutek Wilk wrote: > . snip.. >>> + * Note that because of this NOP code the do_nmi is not safely patchable. >>> + * Also if we do receive 'real' NMIs we have lost them. >> The MCE path needs consideration as well. Unlike the NMI path however, >> that one cannot be i

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Konrad Rzeszutek Wilk
> > > +static void reschedule_fn(void *unused) > > > +{ > > > +smp_mb(); /* Synchronize with setting do_work */ > > > +raise_softirq(SCHEDULE_SOFTIRQ); > > > > As you have to IPI each processor to raise a schedule softirq, you can > > set a per-cpu "xsplice enter rendezvous" variable. Thi

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Konrad Rzeszutek Wilk
On Tue, Feb 23, 2016 at 03:41:57PM -0500, Konrad Rzeszutek Wilk wrote: > .. snip.. > > > + * Note that because of this NOP code the do_nmi is not safely patchable. > > > + * Also if we do receive 'real' NMIs we have lost them. > > > > The MCE path needs consideration as well. Unlike the NMI path

[Xen-devel] Xen default install - no cpufreq on dom0 ?

2016-02-23 Thread Luis R. Rodriguez
For a while now I've been installing Xen from source on my Debian box, with a default configuration always. This is party why I've run into compile issues before it seems, but I've also just picked up on another possible issue. My system on dom0 overheats and shuts itself off. For a while I didn't

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Konrad Rzeszutek Wilk
> > Also above, you've got: > list_for_each_entry_safe_reverse ( data, tmp, &applied_list, list ) > > but it needs to be: > list_for_each_entry_safe_reverse ( data, tmp, &applied_list, applied_list ) Totally mised it. > > I'm not sure why this was changed from how I had it... I had issues appl

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Konrad Rzeszutek Wilk
On Mon, Feb 22, 2016 at 03:00:31PM +, Ross Lagerwall wrote: > On 02/12/2016 06:05 PM, Konrad Rzeszutek Wilk wrote: > snip > >+static void xsplice_do_single(unsigned int total_cpus) > >+{ > >+nmi_callback_t saved_nmi_callback; > >+struct payload *data, *tmp; > >+s_time_t timeout; > >

Re: [Xen-devel] [PATCH v3 07/23] xsplice: Implement support for applying/reverting/replacing patches. (v5)

2016-02-23 Thread Konrad Rzeszutek Wilk
. snip.. > > + * Note that because of this NOP code the do_nmi is not safely patchable. > > + * Also if we do receive 'real' NMIs we have lost them. > > The MCE path needs consideration as well. Unlike the NMI path however, > that one cannot be ignored. > > In both cases, it might be best to see

Re: [Xen-devel] [PATCH v3 01/11] x86/boot: enumerate documentation for the x86 hardware_subarch

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 11:34:09AM +0100, Luis R. Rodriguez wrote: > On Tue, Feb 23, 2016 at 09:51:19AM +0100, Ingo Molnar wrote: > > > > * Luis R. Rodriguez wrote: > > > > > Although hardware_subarch has been in place since the x86 boot > > > protocol 2.07 it hasn't been used much. Enumerate cu

[Xen-devel] [PATCH] x86/hvm: Print %cs:%rip in triple fault error message

2016-02-23 Thread Andrew Cooper
It provides a little more information than just "something went wrong". Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- xen/arch/x86/hvm/emulate.c| 2 +- xen/arch/x86/hvm/hvm.c| 8 ++-- xen/include/asm-x86/hvm/emulate.h | 1 + 3 files changed, 8 insertions(+), 3 del

Re: [Xen-devel] [PATCH] version: Document guest_handle

2016-02-23 Thread Konrad Rzeszutek Wilk
On Mon, Feb 22, 2016 at 05:32:53AM -0700, Jan Beulich wrote: > >>> On 19.02.16 at 15:32, wrote: > > --- a/xen/include/public/version.h > > +++ b/xen/include/public/version.h > > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > > #define XENVER_pagesize 7 > > > > /* arg

Re: [Xen-devel] [PATCH v3] xen: Work around Clang generating .data.rel.ro section for init-only files

2016-02-23 Thread Andrew Cooper
On 23/02/16 18:36, Andrew Cooper wrote: > Clang-3.8 generates several .data.rel.ro sections when compiling Xen. As > these contain no global symbols, they should be .data.rel.ro.local. This > breaks the SPECIAL_DATA_SECTIONS check when converting the transition units to > being init-only. > > For

[Xen-devel] [PATCH v3] xen: Work around Clang generating .data.rel.ro section for init-only files

2016-02-23 Thread Andrew Cooper
Clang-3.8 generates several .data.rel.ro sections when compiling Xen. As these contain no global symbols, they should be .data.rel.ro.local. This breaks the SPECIAL_DATA_SECTIONS check when converting the transition units to being init-only. For alternatives.c, explicitly move the nops arrays in

Re: [Xen-devel] [PATCH] xl: Improve return and exit codes of parse_config_data().

2016-02-23 Thread Dario Faggioli
On Fri, 2016-02-19 at 22:07 +0530, Harmandeep Kaur wrote: > Turning parse_config_data() exit codes towards using the > EXIT_[SUCCESS|FAILURE] constants, instead of instead of arbitrary > repetition of "instead of" > numbers or libxl return codes. > - for main_*: arbitrary -> EXIT_SUCCESS|E

Re: [Xen-devel] [PATCH v3 10/11] x86/rtc: replace paravirt rtc check with x86 specific solution

2016-02-23 Thread Luis R. Rodriguez
On Tue, Feb 23, 2016 at 11:57:16AM +, David Vrabel wrote: > On 23/02/16 07:24, Luis R. Rodriguez wrote: > > --- a/arch/x86/xen/enlighten.c > > +++ b/arch/x86/xen/enlighten.c > [...] > > @@ -1526,8 +1525,6 @@ asmlinkage __visible void __init > > xen_start_kernel(void) > > > > /* Install X

Re: [Xen-devel] Mini-OS as Dom0

2016-02-23 Thread Wei Liu
On Tue, Feb 23, 2016 at 07:38:15PM +0200, Oleksii Kurochko wrote: > Hello. > > Any updates? > > With best regards, > Oleksii > > 2016-02-09 14:23 GMT+02:00 Oleksii Kurochko : > > > Hello. > > > > I want to use Mini-OS as Dom0. > > > > What should be done for this purpose? > > Someone tried to

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Wei Liu
On Tue, Feb 23, 2016 at 10:24:50AM -0700, Jan Beulich wrote: > >>> On 23.02.16 at 18:09, wrote: > > On Tue, Feb 23, 2016 at 08:46:14AM -0700, Jan Beulich wrote: > >> >>> On 23.02.16 at 15:31, wrote: > >> > On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: > >> >> >>> On 19.02.16 at 17:

[Xen-devel] [linux-next test] 83634: regressions - trouble: blocked/broken/fail/pass

2016-02-23 Thread osstest service owner
flight 83634 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/83634/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt 3 host-install(3) broken REGR. vs. 83118 test-amd64-amd64-xl-qe

Re: [Xen-devel] [PATCHv2 1/3] x86/fpu: improve check for XSAVE* not writing FIP/FDP fields

2016-02-23 Thread David Vrabel
On 23/02/16 14:59, Jan Beulich wrote: On 23.02.16 at 12:05, wrote: >> --- a/xen/arch/x86/xstate.c >> +++ b/xen/arch/x86/xstate.c >> @@ -263,41 +263,24 @@ void xsave(struct vcpu *v, uint64_t mask) >> >> if ( word_size <= 0 || !is_pv_32bit_vcpu(v) ) >> { >> -typeof(ptr->fpu_

Re: [Xen-devel] Mini-OS as Dom0

2016-02-23 Thread Oleksii Kurochko
Hello. Any updates? With best regards, Oleksii 2016-02-09 14:23 GMT+02:00 Oleksii Kurochko : > Hello. > > I want to use Mini-OS as Dom0. > > What should be done for this purpose? > Someone tried to do something like that? Maybe there are some patches. > > With best regards, > Oleksii > __

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 18:24, wrote: On 23.02.16 at 18:09, wrote: >> On Tue, Feb 23, 2016 at 08:46:14AM -0700, Jan Beulich wrote: >>> >>> On 23.02.16 at 15:31, wrote: >>> > On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: >>> >> >>> On 19.02.16 at 17:05, wrote: >>> >> > On Wed, Feb

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 18:09, wrote: > On Tue, Feb 23, 2016 at 08:46:14AM -0700, Jan Beulich wrote: >> >>> On 23.02.16 at 15:31, wrote: >> > On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: >> >> >>> On 19.02.16 at 17:05, wrote: >> >> > On Wed, Feb 17, 2016 at 05:28:08PM +, Wei Liu w

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Wei Liu
On Tue, Feb 23, 2016 at 08:46:14AM -0700, Jan Beulich wrote: > >>> On 23.02.16 at 15:31, wrote: > > On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: > >> >>> On 19.02.16 at 17:05, wrote: > >> > On Wed, Feb 17, 2016 at 05:28:08PM +, Wei Liu wrote: > >> >> Hi all > >> >> > >> >> To

Re: [Xen-devel] [PATCH V14 4/6] libxl: add pvusb API

2016-02-23 Thread George Dunlap
On Fri, Feb 19, 2016 at 10:39 AM, Chunyan Liu wrote: > Add pvusb APIs, including: > - attach/detach (create/destroy) virtual usb controller. > - attach/detach usb device > - list usb controller and usb devices > - some other helper functions > > Signed-off-by: Simon Cao > Signed-off-by: George Du

[Xen-devel] [PATCH v2 3/8] xen/x86: Construct the {l2, l3}_bootmap at compile time

2016-02-23 Thread Andrew Cooper
... rather than at runtime. The bootmaps are discarded in zap_low_mappings(), so the tables themselves can live in .init.data and be reclaimed after boot. Hooking the l1_identmap into l2_xenmap stays for safety, along with a longer comment explaining why. Signed-off-by: Andrew Cooper --- CC: Ja

[Xen-devel] [PATCH v2 7/8] xen/x86: Use 2M superpages for text/data/bss mappings

2016-02-23 Thread Andrew Cooper
This balloons the size of Xen in memory from 4.4MB to 8MB, because of the required alignment adjustments. However * All mappings are 2M superpages. * .text (and .init at boot) are the only sections marked executable. * .text and .rodata are marked read-only. Signed-off-by: Andrew Cooper --- C

[Xen-devel] [PATCH v2 5/8] xen/x86: Disable CR0.WP while applying alternatives

2016-02-23 Thread Andrew Cooper
In preparation for marking .text as read-only, care needs to be taken not to fault while applying alternatives. Swapping back to RW mappings is a possibility, but would require additional TLB management. A temporary disabling of CR0.WP is cleaner. Signed-off-by: Andrew Cooper --- CC: Jan Beulic

[Xen-devel] [PATCH v2 2/8] xen/x86: Improvements to build-time pagetable generation

2016-02-23 Thread Andrew Cooper
* Additional comments, including size and runtime use. * Consistent use of idx, rather than a mix including pfn. * Consistent use of .quad, rather than a mix including .long. * Consistent use of PAGE_HYPERVISOR for addresses in the Xen global range, which include _PAGE_GLOBAL. No change in

Re: [Xen-devel] [PATCHv2 2/3] x86/fpu: Add a per-domain field to set the width of FIP/FDP

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 17:27, wrote: > On 23/02/16 15:24, Jan Beulich wrote: > On 23.02.16 at 12:05, wrote: >>> @@ -292,17 +296,17 @@ void xsave(struct vcpu *v, uint64_t mask) >>> asm volatile ( "fnstenv %0" : "=m" (fpu_env) ); >>> ptr->fpu_sse.fip.sel = fpu_env.fcs; >>>

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 09:34, wrote: > +static void vmx_vcpu_block(struct vcpu *v) > +{ > +unsigned long flags; > +unsigned int dest; > +spinlock_t *old_lock = pi_blocking_list_lock(v); > +spinlock_t *pi_blocking_list_lock = > &vmx_pi_blocking_list_lock(v->processor); > +struct pi

[Xen-devel] [PATCH v2 0/8] Map Xen code/data/bss with superpages

2016-02-23 Thread Andrew Cooper
And make use of NX and RO attributes wherever possible. After this series, the pagetable layout looks like: (XEN) *** Dumping Xen text/data/bss mappings from 82d08000 (XEN) cr3 000826484000, idle_pg_table 82d080818000, pa ac018000 (XEN) l2_xenmap: 82d080814000, pa

[Xen-devel] [PATCH v2 6/8] xen/x86: Reorder .data and .init when linking

2016-02-23 Thread Andrew Cooper
In preparation for using superpage mappings, .data and .bss will both want to be mapped as read-write. By making them adjacent, they can share the same superpage and will not require superpage alignment between themselves. While making this change, fix an exposed alignment bug. __init_end only n

[Xen-devel] [PATCH v2 1/8] xen/lockprof: Move .lockprofile.data into .rodata

2016-02-23 Thread Andrew Cooper
The entire contents of .lockprofile.data are unchanging pointers to lock_profile structure in .data. Annotate the type as such, and link the section in .rodata. As these are just pointers, there is no need for 32byte alignment. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Ian Campbell

[Xen-devel] [PATCH v2 8/8] xen/x86: Unilaterally remove .init mappings

2016-02-23 Thread Andrew Cooper
Because of the new 2M alignment of .init and .bss, the existing memory guarding infrastructure causes a shattered 2M superpage with non-present entries for .init, and present entries for the alignment space. Do away with the difference in behaviour between debug and non-debug builds; always destro

[Xen-devel] [PATCH v2 4/8] xen/memguard: Drop memguard_init() entirely

2016-02-23 Thread Andrew Cooper
The use of MAP_SMALL_PAGES causes shattering of the superpages making up the Xen virtual region, and is counter to the purpose of this series. Furthermore, it is not required for the memguard infrastructure to function (which itself uses map_pages_to_xen() for creating holes). Signed-off-by: Andre

Re: [Xen-devel] [PATCHv2 2/3] x86/fpu: Add a per-domain field to set the width of FIP/FDP

2016-02-23 Thread David Vrabel
On 23/02/16 15:24, Jan Beulich wrote: On 23.02.16 at 12:05, wrote: >> @@ -292,17 +296,17 @@ void xsave(struct vcpu *v, uint64_t mask) >> asm volatile ( "fnstenv %0" : "=m" (fpu_env) ); >> ptr->fpu_sse.fip.sel = fpu_env.fcs; >> ptr->fpu_sse.fdp.sel = fpu_

Re: [Xen-devel] Xen PV IOMMU interface draft D

2016-02-23 Thread Malcolm Crossley
On 23/02/16 16:17, Jan Beulich wrote: On 10.02.16 at 11:09, wrote: >> % Xen PV IOMMU interface >> % Malcolm Crossley <> >> Paul Durrant <> >> % Draft D >> >> Introduction >> >> >> Revision History >> >> >> ---

Re: [Xen-devel] Xen PV IOMMU interface draft D

2016-02-23 Thread Jan Beulich
>>> On 10.02.16 at 11:09, wrote: > % Xen PV IOMMU interface > % Malcolm Crossley <> > Paul Durrant <> > % Draft D > > Introduction > > > Revision History > > > > Version Date Changes >

Re: [Xen-devel] [PATCH v2] xenoprof: drop necessary macro

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 16:38, wrote: > On 2/23/16 7:45 AM, Andrew Cooper wrote: >> On 23/02/16 13:42, Andrew Cooper wrote: >>> On 23/02/16 13:12, Doug Goldstein wrote: This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and

Re: [Xen-devel] [PATCH v5 1/7] VT-d: Check VT-d Device-TLB flush error(IOMMU part).

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 12:43, wrote: >> On February 11, 2016 1:01am, Jan Beulich wrote: >> >>> On 05.02.16 at 11:18, wrote: >> > This patch checks all kinds of error and all the way up the call trees >> > of VT-d Device-TLB flush(IOMMU part). >> > @@ -171,7 +172,10 @@ void __hwdom_init iommu_hwdom_

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 15:31, wrote: > On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: >> >>> On 19.02.16 at 17:05, wrote: >> > On Wed, Feb 17, 2016 at 05:28:08PM +, Wei Liu wrote: >> >> Hi all >> >> >> >> Tools people are in the process of splitting libxenctrl into a set of >> >> s

Re: [Xen-devel] [PATCH v2] xenoprof: drop necessary macro

2016-02-23 Thread Doug Goldstein
On 2/23/16 7:45 AM, Andrew Cooper wrote: > On 23/02/16 13:42, Andrew Cooper wrote: >> On 23/02/16 13:12, Doug Goldstein wrote: >>> This macro doesn't really provide a benefit. When support is added the >>> implementer can implement this how it needs to be and not conform to the >>> macro. Additiona

Re: [Xen-devel] [PATCH v5 1/6] x86/hvm: Collect information of TSC scaling ratio

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 15:16, wrote: > On 02/23/2016 09:10 AM, Jan Beulich wrote: > On 23.02.16 at 15:00, wrote: >>> On 02/22/2016 09:04 PM, Haozhong Zhang wrote: >>> +if ( cpu_has_tsc_ratio ) +svm_function_table.tsc_scaling.ratio_frac_bits = 32; + >>>

Re: [Xen-devel] [PATCHv2 2/3] x86/fpu: Add a per-domain field to set the width of FIP/FDP

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 12:05, wrote: > @@ -292,17 +296,17 @@ void xsave(struct vcpu *v, uint64_t mask) > asm volatile ( "fnstenv %0" : "=m" (fpu_env) ); > ptr->fpu_sse.fip.sel = fpu_env.fcs; > ptr->fpu_sse.fdp.sel = fpu_env.fds; > -word_size = 4; > +

Re: [Xen-devel] [PATCHv2 1/3] x86/fpu: improve check for XSAVE* not writing FIP/FDP fields

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 12:05, wrote: > --- a/xen/arch/x86/xstate.c > +++ b/xen/arch/x86/xstate.c > @@ -263,41 +263,24 @@ void xsave(struct vcpu *v, uint64_t mask) > > if ( word_size <= 0 || !is_pv_32bit_vcpu(v) ) > { > -typeof(ptr->fpu_sse.fip.sel) fcs = ptr->fpu_sse.fip.sel; > -

Re: [Xen-devel] [PATCH] arm/monitor vm-events: Implement guest-request support

2016-02-23 Thread Corneliu ZUZU
On 2/23/2016 4:30 PM, Tamas K Lengyel wrote: 2) For Tamas: would it be ok if I put p2m_get_vcpu_altp2m_idx in asm/altp2m.h and rename it to altp2m_vcpu_idx(v) (to obey function-naming pattern in that file)? Yes, that works. Tamas Thanks. Any thoughts on 3)? Corneliu.

Re: [Xen-devel] [PATCH v4 06/21] arm/acpi: Parse FADT table and get PSCI flags

2016-02-23 Thread Stefano Stabellini
On Tue, 23 Feb 2016, Shannon Zhao wrote: > On 2016/1/27 23:41, Stefano Stabellini wrote: > > On Sat, 23 Jan 2016, Shannon Zhao wrote: > >> From: Shannon Zhao > >> > >> There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the > >> former signals to the OS that the hardware is PSCI compli

Re: [Xen-devel] Domctl and physdevop for passthrough (Was: Re: Stabilising some tools only HVMOPs?)

2016-02-23 Thread Wei Liu
On Mon, Feb 22, 2016 at 04:28:19AM -0700, Jan Beulich wrote: > >>> On 19.02.16 at 17:05, wrote: > > On Wed, Feb 17, 2016 at 05:28:08PM +, Wei Liu wrote: > >> Hi all > >> > >> Tools people are in the process of splitting libxenctrl into a set of > >> stable libraries. One of the proposed libra

Re: [Xen-devel] [PATCH] arm/monitor vm-events: Implement guest-request support

2016-02-23 Thread Tamas K Lengyel
> > 2) For Tamas: would it be ok if I put p2m_get_vcpu_altp2m_idx in > asm/altp2m.h and rename it to altp2m_vcpu_idx(v) (to obey function-naming > pattern in that file)? > Yes, that works. Tamas ___ Xen-devel mailing list Xen-devel@lists.xen.org http://

Re: [Xen-devel] [PATCH] arm/monitor vm-events: Implement guest-request support

2016-02-23 Thread Tamas K Lengyel
> > > > > Great, that settles arch_hvm_event_fill_regs -> vm_event_fill_regs. > > Should I then do the same for arch_monitor_get_capabilities (-> > > vm_event_monitor_get_capabilities)? > > Sounds good to me, so yes, unless Tamas or Jan think otherwise. > SGTM too. Tamas _

Re: [Xen-devel] [PATCH v5 1/6] x86/hvm: Collect information of TSC scaling ratio

2016-02-23 Thread Boris Ostrovsky
On 02/23/2016 09:10 AM, Jan Beulich wrote: On 23.02.16 at 15:00, wrote: On 02/22/2016 09:04 PM, Haozhong Zhang wrote: +if ( cpu_has_tsc_ratio ) +svm_function_table.tsc_scaling.ratio_frac_bits = 32; + +#define hvm_tsc_scaling_supported \ +(!!hvm_funcs.tsc_scaling.rat

Re: [Xen-devel] [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-02-23 Thread Fu Wei
Hi Ian On 23 February 2016 at 18:00, Ian Campbell wrote: > On Mon, 2016-02-22 at 17:29 +0800, Fu Wei wrote: >> Hi Julien, >> >> On 20 February 2016 at 00:28, Julien Grall >> wrote: >> > Xen is currently crashing because of malformed compatible property for >> > the boot module. This is because t

Re: [Xen-devel] dom0 kernel didnot boot while transplanting the xen-4.7 on OMAP5432 uEVM board

2016-02-23 Thread Stefano Stabellini
On Tue, 23 Feb 2016, five wrote: > setenv xen_bootargs 'sync_console console=dtuart dtuart=serial2' > setenv dom0_bootargs 'console=hvc0,115200n8 earlyprintk=xen debug > ignore_loglevel root=/dev/mmcblk0p2 rw [...] > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to >

Re: [Xen-devel] [PATCH v5 1/6] x86/hvm: Collect information of TSC scaling ratio

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 15:00, wrote: > On 02/22/2016 09:04 PM, Haozhong Zhang wrote: > >> >> +if ( cpu_has_tsc_ratio ) >> +svm_function_table.tsc_scaling.ratio_frac_bits = 32; >> + > > >> >> +#define hvm_tsc_scaling_supported \ >> +(!!hvm_funcs.tsc_scaling.ratio_frac_bits) >>

Re: [Xen-devel] [PATCHv2 1/3] x86/fpu: improve check for XSAVE* not writing FIP/FDP fields

2016-02-23 Thread Jan Beulich
>>> On 23.02.16 at 12:54, wrote: > On 23/02/16 11:18, Andrew Cooper wrote: >> On 23/02/16 11:05, David Vrabel wrote: >>> The hardware may not write the FIP/FDP fields with a XSAVE* >>> instruction. e.g., with XSAVEOPT/XSAVES if the state hasn't changed >>> or on AMD CPUs when a floating point exc

Re: [Xen-devel] [PATCH v5 1/6] x86/hvm: Collect information of TSC scaling ratio

2016-02-23 Thread Boris Ostrovsky
On 02/22/2016 09:04 PM, Haozhong Zhang wrote: +if ( cpu_has_tsc_ratio ) +svm_function_table.tsc_scaling.ratio_frac_bits = 32; + +#define hvm_tsc_scaling_supported \ +(!!hvm_funcs.tsc_scaling.ratio_frac_bits) + What is the difference (in usage) between cpu_has_tsc_rati

Re: [Xen-devel] [PATCH v2] xenoprof: drop necessary macro

2016-02-23 Thread Andrew Cooper
On 23/02/16 13:42, Andrew Cooper wrote: > On 23/02/16 13:12, Doug Goldstein wrote: >> This macro doesn't really provide a benefit. When support is added the >> implementer can implement this how it needs to be and not conform to the >> macro. Additionally this change limits the output of the warnin

Re: [Xen-devel] [PATCH v2] xenoprof: drop necessary macro

2016-02-23 Thread Andrew Cooper
On 23/02/16 13:12, Doug Goldstein wrote: > This macro doesn't really provide a benefit. When support is added the > implementer can implement this how it needs to be and not conform to the > macro. Additionally this change limits the output of the warning to just > once instead of nrpages worth. Wh

[Xen-devel] [qemu-upstream-4.6-testing test] 83624: tolerable FAIL - PUSHED

2016-02-23 Thread osstest service owner
flight 83624 qemu-upstream-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/83624/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stopfail REGR. vs. 82482 test-amd64-i386-

[Xen-devel] [PATCH v2] xenoprof: drop necessary macro

2016-02-23 Thread Doug Goldstein
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespa

Re: [Xen-devel] [PATCH] xen: sched: get rid of static private schedulers' structures

2016-02-23 Thread George Dunlap
On 08/02/16 13:19, Dario Faggioli wrote: > In fact, they look rather useless: they are never > referenced neither directly, nor via the sched_data > pointer, as a dynamic copy that overrides them is > allocated as the very first step of a scheduler's > initialization. > > While there, take the cha

Re: [Xen-devel] [PATCH v4 06/21] arm/acpi: Parse FADT table and get PSCI flags

2016-02-23 Thread Shannon Zhao
On 2016/1/27 23:41, Stefano Stabellini wrote: > On Sat, 23 Jan 2016, Shannon Zhao wrote: >> From: Shannon Zhao >> >> There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the >> former signals to the OS that the hardware is PSCI compliant. The latter >> selects the appropriate conduit

Re: [Xen-devel] Introduction to the Community and Getting Started

2016-02-23 Thread Lars Kurth
Hi Akanksha, Jesus is teaching today. But having chatted to some people on #metrics-grimoire the first step is to set up an environment and play with it. To do so, you will need kibana and elasticsearch - packages for these should be in any distro and can be installed via apt-get or yum The t

Re: [Xen-devel] [PATCH RFC 0/6] x86/time: PVCLOCK_TSC_STABLE_BIT support

2016-02-23 Thread Joao Martins
On 02/23/2016 08:09 AM, Jan Beulich wrote: On 22.02.16 at 22:14, wrote: > > (Please trim you replies.) > >> Ping: Or would you prefer resubmitting with the comments so far? > > Either way is fine. It's on my list of thing to look at, but being RFC > it ranges priority wise behind various

Re: [Xen-devel] [PATCH v3 10/11] x86/rtc: replace paravirt rtc check with x86 specific solution

2016-02-23 Thread David Vrabel
On 23/02/16 07:24, Luis R. Rodriguez wrote: > --- a/arch/x86/xen/enlighten.c > +++ b/arch/x86/xen/enlighten.c [...] > @@ -1526,8 +1525,6 @@ asmlinkage __visible void __init xen_start_kernel(void) > > /* Install Xen paravirt ops */ > pv_info = xen_info; > - if (xen_initial_domain()

Re: [Xen-devel] [PATCHv2 1/3] x86/fpu: improve check for XSAVE* not writing FIP/FDP fields

2016-02-23 Thread David Vrabel
On 23/02/16 11:18, Andrew Cooper wrote: > On 23/02/16 11:05, David Vrabel wrote: >> The hardware may not write the FIP/FDP fields with a XSAVE* >> instruction. e.g., with XSAVEOPT/XSAVES if the state hasn't changed >> or on AMD CPUs when a floating point exception is not pending. We >> need to id

Re: [Xen-devel] [PATCHv2 2/3] x86/fpu: Add a per-domain field to set the width of FIP/FDP

2016-02-23 Thread David Vrabel
On 23/02/16 11:10, Andrew Cooper wrote: > On 23/02/16 11:05, David Vrabel wrote: >> @@ -653,6 +657,12 @@ int arch_domain_create(struct domain *d, unsigned int >> domcr_flags, >> /* PV/PVH guests get an emulated PIT too for video BIOSes to use. */ >> pit_init(d, cpu_khz); >> >> +/*

Re: [Xen-devel] [PATCH V11 1/3] x86/hvm: pkeys, add pkeys support for guest_walk_tables

2016-02-23 Thread George Dunlap
On Fri, Feb 19, 2016 at 9:51 AM, Huaitong Han wrote: > Protection keys define a new 4-bit protection key field(PKEY) in bits 62:59 of > leaf entries of the page tables. > > PKRU register defines 32 bits, there are 16 domains and 2 attribute bits per > domain in pkru, for each i (0 ≤ i ≤ 15), PKRU[

  1   2   >