[Xen-devel] [linux-3.18 baseline-only test] 38134: regressions - FAIL

2015-10-07 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38134 linux-3.18 real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38134/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-multivcpu 21 guest-start/debi

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

2015-10-07 Thread osstest service owner
flight 62699 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/62699/ Perfect :-) All tests in this flight passed version targeted for testing: ovmf 86cce64da95783fbc990934e75901cfadd768228 baseline version: ovmf 63e1c23b225578efdaca714a81055eadb0a

Re: [Xen-devel] [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests.

2015-10-07 Thread Juergen Gross
On 10/07/2015 10:21 PM, Konrad Rzeszutek Wilk wrote: Hey, I was running some tools in which we would heavily do rescheduling of events - and realized to my surprise that the event channels (and the hypercall) would slow things down. If I used the vAPIC with its IPI support (so no VMEXIT) I got m

[Xen-devel] [linux-3.16 test] 62695: tolerable FAIL - PUSHED

2015-10-07 Thread osstest service owner
flight 62695 linux-3.16 real [real] http://logs.test-lab.xenproject.org/osstest/logs/62695/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-xl-rtds 15 guest-start.2fail blocked in 62118 test-amd64-i386-rumpuserxen-i38

Re: [Xen-devel] [PATCH] tools: remove unused wrappers for python

2015-10-07 Thread Juergen Gross
On 10/08/2015 03:10 AM, Konrad Rzeszutek Wilk wrote: On Tue, Oct 06, 2015 at 05:24:22PM +0100, Ian Campbell wrote: On Tue, 2015-10-06 at 18:14 +0200, Juergen Gross wrote: The original motivation was to get rid of the "superpages" option when building a pv-domU. It's suffered rather from feat

[Xen-devel] [PATCH v6 0/3] detect and initialize CDP (Code/Data Prioritization) feature

2015-10-07 Thread He Chen
Changes in v6: - x86: * remove unnecessary parameter in cdp_is_enabled function * remove variable need_write and restruct code in psr_set_l3_cbm - tools & docs: * separate CBM headings in the output of xl psr-cat-show * revert the numbers of SDM chapter in xl-psr.markdown * XC_PSR_CAT_L3_

[Xen-devel] [PATCH v6 3/3] tools & docs: add tools and docs support for Intel CDP

2015-10-07 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen --- Changes in v6: * separate CBM hea

[Xen-devel] [PATCH v6 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-10-07 Thread He Chen
CDP extends CAT and provides the capacity to control L3 code & data cache. With CDP, one COS corresponds to two CMBs(code & data). cbm_type is added to distinguish different CBM operations. Besides, new domctl cmds are introdunced to support set/get CDP CBM. Some CAT functions to operation CBMs are

[Xen-devel] [PATCH v6 1/3] x86: Support enable CDP by boot parameter and add get CDP status

2015-10-07 Thread He Chen
Add boot parameter `psr=cdp` to enable CDP at boot time. Intel Code/Data Prioritization (CDP) feature is based on CAT. Note that cos_max would be half when CDP is on. struct psr_cat_cbm is extended to support CDP operation. Extend psr_get_cat_l3_info sysctl to get CDP status. Signed-off-by: He Che

Re: [Xen-devel] [PATCH] tools: remove unused wrappers for python

2015-10-07 Thread Konrad Rzeszutek Wilk
On Tue, Oct 06, 2015 at 05:24:22PM +0100, Ian Campbell wrote: > On Tue, 2015-10-06 at 18:14 +0200, Juergen Gross wrote: > > > The original motivation was to get rid of the "superpages" option when > > building a pv-domU. > > It's suffered rather from feature creep then, since removing that one >

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

2015-10-07 Thread osstest service owner
flight 62694 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/62694/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-cubietruck 6 xen-bootfail REGR. vs. 59254 test-armhf-armhf-xl

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

2015-10-07 Thread osstest service owner
flight 62690 linux-4.1 real [real] http://logs.test-lab.xenproject.org/osstest/logs/62690/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 13 guest-localmigrate fail REGR. vs. 62318 Tests

[Xen-devel] [xen-4.6-testing baseline-only test] 38132: regressions - trouble: broken/fail/pass

2015-10-07 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38132 xen-4.6-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38132/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-xsm 16 guest-start/

[Xen-devel] [linux-3.18 test] 62686: tolerable trouble: broken/fail/pass - PUSHED

2015-10-07 Thread osstest service owner
flight 62686 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/62686/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt-qcow2 3 host-install(3) broken baseline untested test-armhf-armhf-libvirt 6

Re: [Xen-devel] [RFC PATCH v1 2/2] xen_nopv: Combine a bunch of the PV features that can be disabled

2015-10-07 Thread Boris Ostrovsky
On 10/07/2015 04:21 PM, Konrad Rzeszutek Wilk wrote: under one parameter. Removes the xen_nopvspin parameter and makes it part of the xen_nopv. Signed-off-by: Konrad Rzeszutek Wilk --- Documentation/kernel-parameters.txt | 15 +-- arch/x86/xen/enlighten.c| 50

Re: [Xen-devel] [RFC PATCH v1 1/2] xen/apic: Use vAPIC for IPI if the hardware supports it.

2015-10-07 Thread kbuild test robot
Hi Konrad, [auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore] config: x86_64-randconfig-x016-201540 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): arch/x86/

Re: [Xen-devel] [GIT PULL] (xen) for-jens-4.3 for your 'for-4.3/drivers' branch

2015-10-07 Thread Jens Axboe
On 10/07/2015 02:32 PM, Konrad Rzeszutek Wilk wrote: On Wed, Oct 07, 2015 at 01:53:01PM -0600, Jens Axboe wrote: On 10/07/2015 01:26 PM, Konrad Rzeszutek Wilk wrote: Hey Jens, Please git pull an update branch to your 'for-4.3/drivers' branch (which oddly I don't see does not have the previous

Re: [Xen-devel] [GIT PULL] (xen) for-jens-4.3 for your 'for-4.3/drivers' branch

2015-10-07 Thread Konrad Rzeszutek Wilk
On Wed, Oct 07, 2015 at 01:53:01PM -0600, Jens Axboe wrote: > On 10/07/2015 01:26 PM, Konrad Rzeszutek Wilk wrote: > >Hey Jens, > > > >Please git pull an update branch to your 'for-4.3/drivers' branch (which > >oddly I don't see does not have the previous pull?) > > > > git://git.kernel.org/pub/sc

[Xen-devel] [RFC PATCH v1 1/2] xen/apic: Use vAPIC for IPI if the hardware supports it.

2015-10-07 Thread Konrad Rzeszutek Wilk
Instead of using the event channels. Signed-off-by: Konrad Rzeszutek Wilk --- arch/x86/xen/smp.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 3f4ebf0..d4f4560 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x

[Xen-devel] [RFC PATCH v1 2/2] xen_nopv: Combine a bunch of the PV features that can be disabled

2015-10-07 Thread Konrad Rzeszutek Wilk
under one parameter. Removes the xen_nopvspin parameter and makes it part of the xen_nopv. Signed-off-by: Konrad Rzeszutek Wilk --- Documentation/kernel-parameters.txt | 15 +-- arch/x86/xen/enlighten.c| 50 + arch/x86/xen/spinlock.c

[Xen-devel] [RFC PATCH] Use vAPIC when doing IPI for PVHVM guests.

2015-10-07 Thread Konrad Rzeszutek Wilk
Hey, I was running some tools in which we would heavily do rescheduling of events - and realized to my surprise that the event channels (and the hypercall) would slow things down. If I used the vAPIC with its IPI support (so no VMEXIT) I got much much better performance. Now this is an RFC becaus

Re: [Xen-devel] [GIT PULL] (xen) for-jens-4.3 for your 'for-4.3/drivers' branch

2015-10-07 Thread Jens Axboe
On 10/07/2015 01:26 PM, Konrad Rzeszutek Wilk wrote: Hey Jens, Please git pull an update branch to your 'for-4.3/drivers' branch (which oddly I don't see does not have the previous pull?) git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-jens-4.3 which has two fixes -

[Xen-devel] [GIT PULL] (xen) for-jens-4.3 for your 'for-4.3/drivers' branch

2015-10-07 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull an update branch to your 'for-4.3/drivers' branch (which oddly I don't see does not have the previous pull?) git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-jens-4.3 which has two fixes - one where we use the Xen blockfront EFI driver and don't

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Julien Grall
On 07/10/15 17:29, Julien Grall wrote: > On 07/10/15 17:00, Ian Campbell wrote: >> On Wed, 2015-10-07 at 16:48 +0100, Julien Grall wrote: >>> On 07/10/15 16:38, Ian Campbell wrote: On Wed, 2015-10-07 at 15:41 +0100, Julien Grall wrote: > Note that with these changes, any read to those regi

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Julien Grall
On 07/10/15 18:26, Stefano Stabellini wrote: > On Wed, 7 Oct 2015, Julien Grall wrote: >> +/* >> + * Store a ITARGETSR register in a convenient way and migrate the vIRQ >> + * if necessary. This function only deals with ITARGETSR8 and onwards. >> + * >> + * Note the offset will be aligned to the ap

Re: [Xen-devel] RFC: LTS and stable release scheme

2015-10-07 Thread George Dunlap
On Tue, Oct 6, 2015 at 2:38 PM, Jan Beulich wrote: On 06.10.15 at 13:07, wrote: >> A majority of developers express interests in trying a shorter release >> cycle -- to change from 9 months to 6 months [0]. There are, however, >> repercussions on how we manage stable and possible LTS release

Re: [Xen-devel] RFC: LTS and stable release scheme

2015-10-07 Thread George Dunlap
On Tue, Oct 6, 2015 at 3:52 PM, Jan Beulich wrote: On 06.10.15 at 16:09, wrote: >> What do you propose when we regarding stable branches when we switch to >> 6 months cycle? > > See the chicken-and-egg problem: I can't answer this, because the > issues with the stable trees are the main reas

Re: [Xen-devel] Xen 4.6 released

2015-10-07 Thread Lars Kurth
On 07/10/2015 14:04, "Konrad Rzeszutek Wilk" wrote: >On Wed, Oct 07, 2015 at 12:16:10PM +0100, Wei Liu wrote: >> Hi all >> >> I'm pleased to announce that Xen 4.6 is released. As release manager I >> would like to thank everyone who involved in the making of 4.6 release >> (either in the form

[Xen-devel] [linux-3.0 test] 62685: regressions - FAIL

2015-10-07 Thread osstest service owner
flight 62685 linux-3.0 real [real] http://logs.test-lab.xenproject.org/osstest/logs/62685/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pair 21 guest-migrate/src_host/dst_host fail REGR. vs. 15418 Tests which are failing

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Stefano Stabellini
On Wed, 7 Oct 2015, Julien Grall wrote: > +/* > + * Store a ITARGETSR register in a convenient way and migrate the vIRQ > + * if necessary. This function only deals with ITARGETSR8 and onwards. > + * > + * Note the offset will be aligned to the appropriate boundary. > + */ > +static void vgic_store

[Xen-devel] [linux-arm-xen baseline-only test] 38131: tolerable FAIL

2015-10-07 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38131 linux-arm-xen real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38131/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt-qcow2 9 debian-di-installf

Re: [Xen-devel] [Patch RFC 00/13] VT-d Asynchronous Device-TLB Flush for ATS Device

2015-10-07 Thread Xu, Quan
>>> >> On October 01, 2015, at 5:09 PM wrote: > At 15:05 + on 30 Sep (1443625549), Xu, Quan wrote: > > >> >>> On September 29, 2015, at 5:12 PM, wrote: > > Could I introduce a new typed reference which can only been deref in > > QI interrupt handler(or associated tasklet)?? --(stop me, I al

[Xen-devel] [PATCH v8 05/32] libxc: introduce a domain loader for HVM guest firmware

2015-10-07 Thread Roger Pau Monne
Introduce a very simple (and dummy) domain loader to be used to load the firmware (hvmloader) into HVM guests. Since hmvloader is just a 32bit elf executable the loader is fairly simple. Since the order in which loaders are tested cannot be arranged, prevent the current elfloader from trying to bo

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Julien Grall
On 07/10/15 17:00, Ian Campbell wrote: > On Wed, 2015-10-07 at 16:48 +0100, Julien Grall wrote: >> On 07/10/15 16:38, Ian Campbell wrote: >>> On Wed, 2015-10-07 at 15:41 +0100, Julien Grall wrote: Note that with these changes, any read to those registers will list only the target vCP

Re: [Xen-devel] [PATCH] xen/balloon: Use the correct sizeof when declaring frame_list

2015-10-07 Thread David Vrabel
On 07/10/15 14:04, Julien Grall wrote: > The type of the item in frame_list is xen_pfn_t which is not an unsigned > long on ARM but an uint64_t. Applied to for-linus-4.4, thanks. David ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen

Re: [Xen-devel] [PATCH v5 8/9] x86/intel_pstate: support the use of intel_pstate in pmstat.c

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > --- a/tools/libxc/xc_pm.c > +++ b/tools/libxc/xc_pm.c > @@ -260,13 +260,14 @@ int xc_get_cpufreq_para(xc_interface *xch, int cpuid, > } > else > { > -user_para->cpuinfo_cur_freq = sys_para->cpuinfo_cur_freq; > -user_para->cpuinfo_ma

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 16:48 +0100, Julien Grall wrote: > On 07/10/15 16:38, Ian Campbell wrote: > > On Wed, 2015-10-07 at 15:41 +0100, Julien Grall wrote: > > > Note that with these changes, any read to those registers will list > > > only > > > the target vCPU used by Xen. We think this is likely

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Julien Grall
On 07/10/15 16:38, Ian Campbell wrote: > On Wed, 2015-10-07 at 15:41 +0100, Julien Grall wrote: >> Note that with these changes, any read to those registers will list only >> the target vCPU used by Xen. We think this is likely to be OK because the >> GIC spec doesn't require to return exactly the

Re: [Xen-devel] [PATCH v5 7/9] x86/intel_pstate: add a booting param to select the driver to load

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c > +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c > @@ -40,6 +40,7 @@ > #include > #include > #include > +#include I think to make clear why this include is needed here it would be better if you added the declaration of

Re: [Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 15:41 +0100, Julien Grall wrote: > Note that with these changes, any read to those registers will list only > the target vCPU used by Xen. We think this is likely to be OK because the > GIC spec doesn't require to return exactly the value written and it can > be seen as if we

Re: [Xen-devel] [PATCH v5 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > We simply grab the fundamental logic of the intel_pstate driver > from Linux kernel, and customize it to Xen style. In the kernel, > a user can adjust the limits via sysfs > (limits.min_sysfs_pct/max_sysfs_pct). In Xen, the > policy->limits.min_perf_pct/max_perf_

Re: [Xen-devel] [PATCH XEN v3 14/22] tools: foreignmemory: provide xenforeignmemory_unmap.

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 16:20 +0100, Andrew Cooper wrote: > On 07/10/15 16:16, Ian Campbell wrote: > > On Wed, 2015-10-07 at 16:03 +0100, Andrew Cooper wrote: > > > On 07/10/15 15:15, Ian Campbell wrote: > > > > > > What is the plan WRT fixing the existing APIs? > > Which ones do you mean? The xc_ma

Re: [Xen-devel] [PATCH v5 5/9] x86/intel_pstate: changes in cpufreq_del_cpu for CPU offline

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > We change to NULL the cpufreq_cpu_policy pointer after the call of > cpufreq_driver->exit, because the pointer is still needed in > intel_pstate_set_pstate(). > > Signed-off-by: Wei Wang > --- > xen/drivers/cpufreq/cpufreq.c | 6 +++--- > xen/include/acpi

Re: [Xen-devel] [PATCH v3 1/1] tools/hotplug: Scan xenstore once when attaching shared images files

2015-10-07 Thread Mike Latimer
On Wednesday, October 07, 2015 12:52:02 PM Ian Campbell wrote: > Applied. > > Mike, FWIW for singleton patches it is normally ok to dispense with the 0/1 > mail and to just send the patch by itself. If there is commentary which > doesn't belong in the commit message you can put it below a "---" ma

Re: [Xen-devel] how to trace scheduling overheads using xentrace/xenalyze

2015-10-07 Thread Yu-An(Victor) Chen
Hi Dario, Thank you very much for your reply!!! It is very nice of you :) Yes I have checked the blog entry and that is actually where I started! To define my "scheduling overhead", I think I should tell you what I am trying to accomplish: So I am currently using Xen 4.5 to help us understand m

Re: [Xen-devel] [PATCH XEN v3 14/22] tools: foreignmemory: provide xenforeignmemory_unmap.

2015-10-07 Thread Andrew Cooper
On 07/10/15 16:16, Ian Campbell wrote: > On Wed, 2015-10-07 at 16:03 +0100, Andrew Cooper wrote: >> On 07/10/15 15:15, Ian Campbell wrote: >> >> What is the plan WRT fixing the existing APIs? > Which ones do you mean? The xc_map_foreign_* which aren't moved here? > > My intention is to deprecate th

Re: [Xen-devel] [PATCH XEN v3 11/22] tools: Remove xc_map_foreign_batch

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 16:08 +0100, George Dunlap wrote: > On 07/10/15 15:15, Ian Campbell wrote: > > It can trivially be replaced by xc_map_foreign_bulk which is the > > interface I want to move to going forward. All in tree users are > > trivially converted by supplying the appropriate error array

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

2015-10-07 Thread osstest service owner
flight 62714 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/62714/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 12 migrate-support-checkfail never pass test-armhf-armhf-xl 12

Re: [Xen-devel] [PATCH XEN v3 14/22] tools: foreignmemory: provide xenforeignmemory_unmap.

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 16:03 +0100, Andrew Cooper wrote: > On 07/10/15 15:15, Ian Campbell wrote: > > What is the plan WRT fixing the existing APIs? Which ones do you mean? The xc_map_foreign_* which aren't moved here? My intention is to deprecate them and switch everything over to the API provid

Re: [Xen-devel] [PATCH V7 6/7] xl: add usb-assignable-list command

2015-10-07 Thread Juergen Gross
On 10/07/2015 05:03 PM, George Dunlap wrote: On 07/10/15 15:47, Juergen Gross wrote: On 10/07/2015 04:35 PM, George Dunlap wrote: On Wed, Oct 7, 2015 at 3:26 PM, Juergen Gross wrote: On 10/07/2015 04:05 PM, Ian Campbell wrote: On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: Hmm, t

Re: [Xen-devel] [PATCH v3 1/3] xen/arm: gic: Check the size of the CPU and vCPU interface retrieved from DT

2015-10-07 Thread Julien Grall
On 06/10/15 15:55, Ian Campbell wrote: > On Tue, 2015-10-06 at 15:39 +0100, Julien Grall wrote: +csize = SZ_8K; +} + +/* + * Check if the CPU interface and virtual CPU interface have the + * same size. + */ +if ( csize != vsize

Re: [Xen-devel] [PATCH XEN v3 11/22] tools: Remove xc_map_foreign_batch

2015-10-07 Thread George Dunlap
On 07/10/15 15:15, Ian Campbell wrote: > It can trivially be replaced by xc_map_foreign_bulk which is the > interface I want to move to going forward. All in tree users are > trivially converted by supplying the appropriate error array and > adjusting the what error handling exists (which in many c

Re: [Xen-devel] [PATCH v5 4/9] x86/intel_pstate: relocate the driver register function

2015-10-07 Thread Jan Beulich
>>> On 14.09.15 at 04:32, wrote: > Move the driver register function to > the cpufreq.c. ... and remove the (unused) de-registration one. Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V7 7/7] domcreate: support pvusb in configuration file

2015-10-07 Thread George Dunlap
On 25/09/15 03:11, Chunyan Liu wrote: > Add code to support pvusb in domain config file. One could specify > usbctrl and usb in domain's configuration file and create domain, > then usb controllers will be created and usb device would be attached > to guest automatically. > > One could specify usb

Re: [Xen-devel] [PATCH XEN v3 14/22] tools: foreignmemory: provide xenforeignmemory_unmap.

2015-10-07 Thread Andrew Cooper
On 07/10/15 15:15, Ian Campbell wrote: What is the plan WRT fixing the existing APIs? The two options are 1) Move to new libs then fix, or 2) Fix in tree then move to pristine new libs. Option 1) runs the risk of digging ourself a hole in the form of a stable API. Option 2) seems like it would

Re: [Xen-devel] [PATCH V7 6/7] xl: add usb-assignable-list command

2015-10-07 Thread George Dunlap
On 07/10/15 15:47, Juergen Gross wrote: > On 10/07/2015 04:35 PM, George Dunlap wrote: >> On Wed, Oct 7, 2015 at 3:26 PM, Juergen Gross wrote: >>> On 10/07/2015 04:05 PM, Ian Campbell wrote: On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: > Hmm, technically all unassigne

Re: [Xen-devel] [PATCH QEMU-XEN v3 1/8] xen: Switch to libxenevtchn interface for compat shims.

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 15:36 +0100, Andrew Cooper wrote: > On 07/10/15 15:15, Ian Campbell wrote: > > To simplify things for the <= 4.0.0 support we wrap the int fd in a > > malloc(sizeof int) such that the handle is always a pointer. This > > leads to less typedef headaches and the need for > > XC_

Re: [Xen-devel] [PATCH OSSTEST] standalone: do not rotate empty log files.

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 10:57 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH OSSTEST] standalone: do not rotate empty log > files."): > > By passing -n to savelog. > > > > In particular this prevents the creation of an empty $log.0 on first > > use when $log doesn't exist. > > Acked-by: I

Re: [Xen-devel] [PATCH XEN v3 02/22] tools: Refactor "xentoollog" into its own library

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 15:42 +0100, Andrew Cooper wrote: > > +.PHONY: install > > +install: build > > + $(INSTALL_DIR) $(DESTDIR)$(libdir) > > + $(INSTALL_DIR) $(DESTDIR)$(includedir) > > + $(INSTALL_SHLIB) libxentoollog.so.$(MAJOR).$(MINOR) > > $(DESTDIR)$(libdir) > > + $(INSTALL_DATA) lib

Re: [Xen-devel] [PATCH V7 6/7] xl: add usb-assignable-list command

2015-10-07 Thread Juergen Gross
On 10/07/2015 04:35 PM, George Dunlap wrote: On Wed, Oct 7, 2015 at 3:26 PM, Juergen Gross wrote: On 10/07/2015 04:05 PM, Ian Campbell wrote: On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: Hmm, technically all unassigned USB-devices are usable from Dom0. So why not list them there.

[Xen-devel] [PATCH v3 5/9] xen/arm: vgic: Optimize the way to store GICD_IPRIORITYR in the rank

2015-10-07 Thread Julien Grall
Xen is currently directly storing the value of GICD_IPRIORITYR register in the rank. This makes emulation of the register access very simple but makes the code to get the priority for a given vIRQ more complex. While the priority of an vIRQ is retrieved every time an vIRQ is injected to the guest,

[Xen-devel] [PATCH v3 7/9] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-10-07 Thread Julien Grall
Xen is currently directly storing the value of GICD_ITARGETSR register (for GICv2) and GICD_IROUTER (for GICv3) in the rank. This makes the emulation of the registers access very simple but makes the code to get the target vCPU for a given vIRQ more complex. While the target vCPU of an vIRQ is ret

[Xen-devel] [PATCH v3 3/9] xen/arm: io: Support sign-extension for every read access

2015-10-07 Thread Julien Grall
The guest may try to load data from the emulated MMIO region using instructions with Sign-Extension (i.e ldrs*). Any use of one those, will set the SSE bit (Syndrome Sign Extend) in the ISS (see B3-1433 in DDI 0406C.b). Note that the bit can only be set for access size smaller than the register si

[Xen-devel] [PATCH v3 8/9] xen/arm: vgic: Introduce helpers to extract/update/clear/set vGIC register ...

2015-10-07 Thread Julien Grall
and use them in the vGIC emulation. The GIC registers may support different access sizes. Rather than open coding the access for every registers, provide a set of helpers to access them. The caller will have to call vgic_regN_* where N is the size of the emulated registers. The new helpers suppo

Re: [Xen-devel] [PATCH XEN v3 02/22] tools: Refactor "xentoollog" into its own library

2015-10-07 Thread Andrew Cooper
On 07/10/15 15:15, Ian Campbell wrote: > diff --git a/tools/libs/toollog/Makefile b/tools/libs/toollog/Makefile > new file mode 100644 > index 000..bd12403 > --- /dev/null > +++ b/tools/libs/toollog/Makefile > @@ -0,0 +1,59 @@ > +XEN_ROOT = $(CURDIR)/../../.. > +include $(XEN_ROOT)/tools/Rules.

[Xen-devel] [PATCH v3 2/9] xen/arm: io: Extend write/read handler to pass the register in parameter

2015-10-07 Thread Julien Grall
Rather than letting each handler to retrieve the register used by the I/O access, add a new parameter to pass the register in parameter. This will help to implement generic register manipulation on I/O access such as sign-extension and endianess. Read handlers need to modify the value of the regi

[Xen-devel] [PATCH v3 6/9] xen/arm: vgic: Introduce a new field to store the rank index and use it

2015-10-07 Thread Julien Grall
Having in hand the index for the rank is very handy to avoid computing it every time. For now, use it when enabling/disabling the vIRQs rather than a formula which is not obvious to understand. Also drop the comments which were wrong because a shift by DABT_WORD will not give the IRQ number but t

[Xen-devel] [PATCH v3 0/9] xen/arm: vgic: Support 32-bit access for 64-bit register

2015-10-07 Thread Julien Grall
Hi all, This series aims to fixc the 32-bit access on 64-bit register. Some guest OS such as FreeBSD and Linux (only in ITS) use 32-bit access and will crash at boot time. I took the opportunity to go further and optimize the way Xen is storing registers such as GICD_IPRIORITYR, GICD_ITARGETSR an

[Xen-devel] [PATCH v3 1/9] xen/arm: io: remove mmio_check_t typedef

2015-10-07 Thread Julien Grall
This typedef is a left-over of the previous MMIO emulation implementation. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- Changes in v2: - Add Ian's Acked-by Changes in v1: - Patch added --- xen/include/asm-arm/mmio.h | 1 - 1 file changed, 1 deletion(-) diff

[Xen-devel] [PATCH v3 9/9] xen/arm: vgic-v3: Support 32-bit access for 64-bit registers

2015-10-07 Thread Julien Grall
Based on 8.1.3 (IHI 0069A), unless stated otherwise, the 64-bit registers supports both 32-bit and 64-bits access. All the registers we properly emulate (i.e not RAZ/WI) supports 32-bit access. For RAZ/WI, it's also seems to be the case but I'm not 100% sure. Anyway, emulating 32-bit access for t

[Xen-devel] [PATCH v3 4/9] xen/arm: vgic: ctlr stores a 32-bit hardware register so use uint32_t

2015-10-07 Thread Julien Grall
Signed-off-by: Julien Grall Acked-by: Ian Campbell --- Changes in v2: - Add Ian's acked-by Changes in v1: - Patch added --- xen/include/asm-arm/domain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-ar

Re: [Xen-devel] [PATCH QEMU-XEN v3 1/8] xen: Switch to libxenevtchn interface for compat shims.

2015-10-07 Thread Andrew Cooper
On 07/10/15 15:15, Ian Campbell wrote: > To simplify things for the <= 4.0.0 support we wrap the int fd in a > malloc(sizeof int) such that the handle is always a pointer. This > leads to less typedef headaches and the need for > XC_HANDLER_INITIAL_VALUE etc for these interfaces. > > > > diff --gi

Re: [Xen-devel] [PATCH V7 6/7] xl: add usb-assignable-list command

2015-10-07 Thread George Dunlap
On Wed, Oct 7, 2015 at 3:26 PM, Juergen Gross wrote: > On 10/07/2015 04:05 PM, Ian Campbell wrote: >> >> On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: >> >>> Hmm, technically all unassigned USB-devices are usable from Dom0. So why >>> not list them there. >> >> >> I think you'd at least

Re: [Xen-devel] [Minios-devel] [PATCH v3 0/] Begin to disentangle libxenctrl and provide some stable libraries

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 15:18 +0100, Ian Campbell wrote: > On Wed, 2015-10-07 at 15:10 +0100, Ian Jackson wrote: > > Ian Campbell writes ("[PATCH v3 0/] Begin to disentangle > > libxenctrl and provide some stable libraries"): > > > The tip of the xen.git branch contains an extra patch adding a > > >

Re: [Xen-devel] [PATCH V7 6/7] xl: add usb-assignable-list command

2015-10-07 Thread Juergen Gross
On 10/07/2015 04:05 PM, Ian Campbell wrote: On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: Hmm, technically all unassigned USB-devices are usable from Dom0. So why not list them there. I think you'd at least want to distinguish USB devices available to dom0 as via a PCI host controll

[Xen-devel] [PATCH MINI-OS v3 4/5] mini-os: Include libxencall with libxc

2015-10-07 Thread Ian Campbell
libxencall has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxencall if libxc is enabled. Signed-off-by: Ian Campbell --- v2: Adjust for libs/$lib layout. --- Makefile | 1 + 1 file changed, 1 insertio

[Xen-devel] [PATCH MINI-OS v3 1/5] mini-os: Include libxentoollog with libxc

2015-10-07 Thread Ian Campbell
libxentoollog has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxentoollog if libxc is enabled. Signed-off-by: Ian Campbell --- v2: Adjust for libs/$lib layout. --- Makefile | 1 + 1 file changed, 1 in

Re: [Xen-devel] [PATCH v3 0/] Begin to disentangle libxenctrl and provide some stable libraries

2015-10-07 Thread Ian Campbell
On Wed, 2015-10-07 at 15:10 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH v3 0/] Begin to disentangle > libxenctrl and provide some stable libraries"): > > The tip of the xen.git branch contains an extra patch adding a .config > > into the tree which should get the correct things for the

[Xen-devel] [PATCH MINI-OS v3 5/5] mini-os: Include libxenforeignmemory with libxc

2015-10-07 Thread Ian Campbell
libxenforeignmemory has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxenforeignmemory if libxc is enabled. Signed-off-by: Ian Campbell --- v2: Adjust for libs/$lib layout. --- Makefile | 1 + 1 file c

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v3 1/5] qemu-xen-traditional: Use xentoollog as a separate library

2015-10-07 Thread Ian Campbell
This has been split out of libxenctrl, so the build needs to be able to find the header and the library. QEMU does not use xtl_* itself so -rpath-link is sufficient to allow linking to libxenctrl.so (which links against libxentoollog). Signed-off-by: Ian Campbell --- v3: Library moved to tools/li

[Xen-devel] [PATCH XEN v3 20/22] tools/libs/foreignmemory: Mention restrictions on fork in docs.

2015-10-07 Thread Ian Campbell
Signed-off-by: Ian Campbell --- tools/libs/foreignmemory/include/xenforeignmemory.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/libs/foreignmemory/include/xenforeignmemory.h b/tools/libs/foreignmemory/include/xenforeignmemory.h index 1bcdf6a..5897fb8 100644 --

[Xen-devel] [PATCH QEMU-XEN v3 4/8] xen: Switch uses of xc_map_foreign_pages into xc_map_foreign_bulk

2015-10-07 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and which will provide an interface equivalent to x

[Xen-devel] [PATCH QEMU-XEN v3 3/8] xen: Switch uses of xc_map_foreign_range into xc_map_foreign_bulk

2015-10-07 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and which will provide an interface equivalent to x

[Xen-devel] [PATCH QEMU-XEN v3 8/8] xen: make it possible to build without the Xen PV domain builder

2015-10-07 Thread Ian Campbell
Until the previous patch this relied on xc_fd(), which was only implemented for Xen 4.0 and earlier. I stopped short of disabling this by default, although I think there's a pretty strong argument for doing so. Removing this support drops the use of a bunch of symbols from libxenctrl, specificall

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v3 4/5] qemu-xen-traditional: Add libxencall to rpath-link

2015-10-07 Thread Ian Campbell
libxenctrl links against this library Signed-off-by: Ian Campbell --- v3: Library moved to tools/libs --- xen-hooks.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/xen-hooks.mak b/xen-hooks.mak index 179a6b7..229d642 100644 --- a/xen-hooks.mak +++ b/xen-hooks.mak @@ -25,6 +25,7 @@ LIBS +

[Xen-devel] [PATCH MINI-OS v3 3/5] mini-os: Include libxengnttab with libxc

2015-10-07 Thread Ian Campbell
libxengnttab has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxengnttab if libxc is enabled. Signed-off-by: Ian Campbell --- v2: Adjust for libs/$lib layout. --- Makefile | 1 + 1 file changed, 1 inse

[Xen-devel] [PATCH XEN v3 03/22] tools/libxc: Remove osdep indirection for xc_evtchn

2015-10-07 Thread Ian Campbell
The alternative backend (a xen-api/xapi shim) is no longer around and so this stuff is now just baggage which is getting in the way of refactoring libxenctrl. Note that the intention is to move this into a separate library shortly. Nested virt probably suffices for this use case now. One incorre

[Xen-devel] [PATCH XEN v3 19/22] tools/libs/call: Avoid xc_memalign in netbsd and solaris backends

2015-10-07 Thread Ian Campbell
These are already arch specific, so just use the appropriate interfaces (as determined by looking at the xc_memalign backend). Signed-off-by: Ian Campbell --- tools/libs/call/netbsd.c | 4 ++-- tools/libs/call/solaris.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tool

[Xen-devel] [PATCH XEN v3 07/22] tools: Refactor /dev/xen/gnt{dev, shr} wrappers into libxengnttab.

2015-10-07 Thread Ian Campbell
libxengnttab will provide a stable API and ABI for accessing the grant table devices. The functions are moved into the xengnt{tab,shr} namespace to make a clean break from libxc and avoid ambiguity regarding which interfaces are stable. XXX consider combining into a single namespace (i.e. with xe

[Xen-devel] [PATCH QEMU-XEN v3 1/8] xen: Switch to libxenevtchn interface for compat shims.

2015-10-07 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenevtchn which provides access to event channels. In preparation for this switch the compatibility layer in xen_common.

[Xen-devel] [PATCH XEN v3 01/22] tools/Rules.mk: Properly handle libraries with recursive dependencies.

2015-10-07 Thread Ian Campbell
In tree libraries which link against other in tree libraries in a way which is opaque to their callers need special handling, specifically correct use of -Wl,-rpath-link for the recusively used libraries. Currently this is rather simple, but up coming changes are going to introduce transitive depe

[Xen-devel] [PATCH QEMU-XEN v3 2/8] xen: Switch to libxengnttab interface for compat shims.

2015-10-07 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxengnttab which provides access to grant tables. In preparation for this switch the compatibility layer in xen_common.h

[Xen-devel] [PATCH XEN v3 12/22] tools: Implement xc_map_foreign_range(s) in terms of common helper

2015-10-07 Thread Ian Campbell
Both Linux and FreeBSD already implemented these functions using identical helpers based on xc_map_foreign_pages. Make one copy of these common helpers and switch all OSes to use them, even those which previously had a specific lower level implementation of this functionality. This is makes two fe

[Xen-devel] [PATCH XEN v3 11/22] tools: Remove xc_map_foreign_batch

2015-10-07 Thread Ian Campbell
It can trivially be replaced by xc_map_foreign_bulk which is the interface I want to move to going forward. All in tree users are trivially converted by supplying the appropriate error array and adjusting the what error handling exists (which in many cases is not much). This reduces the twist maze

[Xen-devel] [PATCH XEN v3 05/22] tools: Arrange to check public headers for ANSI compatiblity

2015-10-07 Thread Ian Campbell
Using the same rune as we use for the Xen public headers, except we do not need stdint.h here and we use -pedantic too. Signed-off-by: Ian Campbell --- .gitignore | 2 ++ tools/Rules.mk | 8 tools/libs/evtchn/Makefile | 4 +++- tools/libs/toollog/Makefile

[Xen-devel] [PATCH XEN v3 17/22] tools/libs/gnttab: Review and update doc comments.

2015-10-07 Thread Ian Campbell
Remove some stray xc references. While I'm not convinced by javadoc/doxygen cause the existing comments which appear to use that syntax to have the appropriate /** marker. Also fix a typo in a code comment. Signed-off-by: Ian Campbell --- tools/libs/gnttab/include/xengnttab.h | 21 +++-

[Xen-devel] [PATCH XEN v3 21/22] tools: Update CFLAGS for qemu-xen to allow it to use new libraries

2015-10-07 Thread Ian Campbell
This means adding -L for libxen{evtchn,gnttab,foreignmemory} so that it can link them directly (rather than using the libxenctrl compat layer exposed via -rpath-link). Also add -I for libxenforeignmemory. Signed-off-by: Ian Campbell --- tools/Makefile | 4 1 file changed, 4 insertions(+) d

[Xen-devel] [PATCH MINI-OS v3 2/5] mini-os: Include libxenevtchn with libxc

2015-10-07 Thread Ian Campbell
libxenevtchn has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxenevtchn if libxc is enabled. Signed-off-by: Ian Campbell --- v2: Adjust for libs/$lib layout. --- Makefile | 1 + 1 file changed, 1 inse

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v3 5/5] qemu-xen-traditional: Add libxenforeignmemory to rpath-link

2015-10-07 Thread Ian Campbell
libxenctrl links against this library. Also, request the compat xc_map_foreign API from libxc. Signed-off-by: Ian Campbell --- v3: Library moved to tools/libs/ --- xen-hooks.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen-hooks.mak b/xen-hooks.mak index 229d642..c1ea4be 100644 ---

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v3 3/5] qemu-xen-traditional: Use libxengnttab

2015-10-07 Thread Ian Campbell
/dev/xen/gntdev related wrappers have been moved out of libxenctrl into their own library. Signed-off-by: Ian Campbell --- v3: Library moved to tools/libs/ --- hw/xen_backend.c | 4 ++-- hw/xen_backend.h | 2 +- hw/xen_common.h | 1 + hw/xen_console.c | 4 ++-- hw/xen_disk.c| 24 +++

  1   2   >