Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Nicholas Piggin
On Thu, 25 Aug 2016 08:05:40 +0200 "Luis R. Rodriguez" wrote: > On Thu, Aug 25, 2016 at 12:06:33PM +1000, Nicholas Piggin wrote: > > On Wed, 24 Aug 2016 22:12:53 +0200 > > "Luis R. Rodriguez" wrote: > > > But: > > > > > > git grep SECTION_TEXT works as expected immediately. > > > > > > I gue

Re: [Xen-devel] [PATCH] x86: drop pointless uses of __func__ / __FUNCTION__

2016-08-24 Thread Jan Beulich
>>> On 24.08.16 at 22:34, wrote: > On Wed, Aug 24, 2016 at 02:02:51AM -0600, Jan Beulich wrote: >> Non-debugging message text should be (and is in the cases here) >> distinguishable without also logging function names. Debugging message >> text, otoh, already includes file name and line number, so

Re: [Xen-devel] [PATCH] VT-d: drop pointless uses of __func__

2016-08-24 Thread Jan Beulich
>>> On 25.08.16 at 03:08, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Subject: [PATCH] VT-d: drop pointless uses of __func__ >> --- a/xen/drivers/passthrough/vtd/iommu.c >> +++ b/xen/drivers/passthrough/vtd/iommu.c >> @@ -129,11 +129,11 @@ static int context_get_domain_id(struct >>

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Luis R. Rodriguez
On Thu, Aug 25, 2016 at 12:06:33PM +1000, Nicholas Piggin wrote: > On Wed, 24 Aug 2016 22:12:53 +0200 > "Luis R. Rodriguez" wrote: > > But: > > > > git grep SECTION_TEXT works as expected immediately. > > > > I guess its a matter of perspective. > > > > > They are also > > > the names you'll be

[Xen-devel] [qemu-mainline baseline-only test] 67590: regressions - FAIL

2016-08-24 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 67590 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/67590/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-xsm 11 guest-start

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

2016-08-24 Thread osstest service owner
flight 100610 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/100610/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): build-amd64-rumpuserxen 6 xen-buildfail like 100602 build-i386-rumpuserxen

Re: [Xen-devel] [PATCHv2 0/2] xen/privcmd: prevent page migration for hypercall buffers

2016-08-24 Thread Juergen Gross
On 22/08/16 19:25, David Vrabel wrote: > On 04/08/16 16:16, David Vrabel wrote: >> Currently libxencall using mlocked buffers for hypercall buffers. >> This pages are subject to compaction and page migration. A userspace >> process may see a hypercall fail with -EFAULT if a page backing a >> hyperc

[Xen-devel] [PATCH 0/3] Enable L2 Cache Allocation Technology

2016-08-24 Thread Yi Sun
Design document is below: === % Intel L2 Cache Allocation Technology (L2 CAT) Feature % Revision 1.0 \clearpage Hi all, We plan to bring a new PSR (Platform Shared Resource) feature called Intel L2 Cache Allocation Technology (L

[Xen-devel] [PATCH 1/3] x86: refactor psr implementation in hypervisor.

2016-08-24 Thread Yi Sun
Current psr.c is designed for supporting L3 CAT/CDP. It has many limitations to add new feature. Considering to support more PSR features, we need refactor PSR implementation to make it more flexible and fulfill the principle, open for extension but closed for modification. The core of the refacto

[Xen-devel] [PATCH 3/3] tools & docs: add L2 CAT support in tools and docs.

2016-08-24 Thread Yi Sun
This patch is the xl/xc changes to support Intel L2 CAT (Cache Allocation Technology). The new level option is introduced to original CAT setting command in order to set CBM for specified level CAT. - 'xl psr-hwinfo' is updated to show both L3 CAT and L2 CAT info. - 'xl psr-cat-cbm-set' is updat

[Xen-devel] [PATCH 2/3] x86: add support for L2 CAT in hypervisor.

2016-08-24 Thread Yi Sun
Add L2 CAT (Cache Allocation Technology) feature support in hypervisor: - Implement 'struct feat_ops' callback functions for L2 CAT and initialize L2 CAT feature and add it into feature list. - Add new sysctl to get L2 CAT information. - Add new domctl to set/get L2 CAT CBM. Signed-off-by: He Ch

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Nicholas Piggin
On Wed, 24 Aug 2016 22:12:53 +0200 "Luis R. Rodriguez" wrote: > On Wed, Aug 24, 2016 at 01:51:41PM +1000, Nicholas Piggin wrote: > > On Tue, 23 Aug 2016 19:33:06 +0200 > > "Luis R. Rodriguez" wrote: > > > > > On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > > > > On Fri, 1

Re: [Xen-devel] [PATCH] VT-d: drop pointless uses of __func__

2016-08-24 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, August 24, 2016 3:54 PM > To: xen-devel > Cc: Wu, Feng ; Tian, Kevin > Subject: [PATCH] VT-d: drop pointless uses of __func__ > > Debugging message text already includes file name and line number, so

Re: [Xen-devel] [PATCH] VT-d: drop pointless uses of __func__

2016-08-24 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, August 24, 2016 3:54 PM > > Debugging message text already includes file name and line number, so > also logging function names is redundant. > > Signed-off-by: Jan Beulich > Acked-by: Kevin Tian __

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

2016-08-24 Thread osstest service owner
flight 100608 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/100608/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail like 100589 test-amd64-amd64-xl-rtds

Re: [Xen-devel] [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-08-24 Thread Boris Ostrovsky
On 08/16/2016 06:25 AM, Shannon Zhao wrote: > diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h > index f7338a3..8a0327d 100644 > --- a/xen/include/public/hvm/params.h > +++ b/xen/include/public/hvm/params.h > @@ -30,6 +30,7 @@ > */ > > #define HVM_PARAM_CALLBACK_I

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

2016-08-24 Thread osstest service owner
flight 100607 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/100607/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt-xsm 4 host-ping-check-native fail REGR. vs. 100602 test-armhf-armhf-x

Re: [Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table

2016-08-24 Thread Boris Ostrovsky
On 08/16/2016 06:25 AM, Shannon Zhao wrote: > diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile > index d741ac5..7f50a33 100644 > --- a/tools/libacpi/Makefile > +++ b/tools/libacpi/Makefile > @@ -19,6 +19,7 @@ MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt > > # Sources to be generated > C_SRC

Re: [Xen-devel] [PATCH] x86: correct PT_NOTE file position

2016-08-24 Thread Konrad Rzeszutek Wilk
On Wed, Aug 24, 2016 at 09:24:38AM -0600, Jan Beulich wrote: > Program and section headers disagreed about the file offset at which > the build ID note lives. Gosh. That was an oversight. > > Reported-by: Sylvain Munaut 'whatever-company'? Really? Huh. Imagine that. > Signed-off-by: Jan Beuli

Re: [Xen-devel] [PATCH] x86/mm: drop pointless use of __FUNCTION__

2016-08-24 Thread Konrad Rzeszutek Wilk
On Wed, Aug 24, 2016 at 02:01:09AM -0600, Jan Beulich wrote: > Non-debugging message text should be (and is here) distinguishable > without also logging function names. Reviewed-by: Konrad Rzeszutek Wilk > > Signed-off-by: Jan Beulich > > --- a/xen/arch/x86/mm/paging.c > +++ b/xen/arch/x86/mm

Re: [Xen-devel] [PATCH] x86: drop pointless uses of __func__ / __FUNCTION__

2016-08-24 Thread Konrad Rzeszutek Wilk
On Wed, Aug 24, 2016 at 02:02:51AM -0600, Jan Beulich wrote: > Non-debugging message text should be (and is in the cases here) > distinguishable without also logging function names. Debugging message > text, otoh, already includes file name and line number, so also > logging function names is redun

Re: [Xen-devel] [PATCH] VT-d: drop pointless uses of __func__

2016-08-24 Thread Konrad Rzeszutek Wilk
On Wed, Aug 24, 2016 at 01:54:08AM -0600, Jan Beulich wrote: > Debugging message text already includes file name and line number, so > also logging function names is redundant. And you also fixed one style guide violation :-) > > Signed-off-by: Jan Beulich Reviewed-by: Konrad Rzeszutek Wilk _

Re: [Xen-devel] [PATCH] pass-through: drop pointless uses of __func__

2016-08-24 Thread Konrad Rzeszutek Wilk
On Wed, Aug 24, 2016 at 01:51:13AM -0600, Jan Beulich wrote: > Non-debugging message text should be (and is in the cases here) > distinguishable without also logging function names. Additionally log > the PCI device coordinates for alloc_pdev() failure. > Reviewed-by: Konrad Rzeszutek Wilk > Sig

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Luis R. Rodriguez
On Wed, Aug 24, 2016 at 01:51:41PM +1000, Nicholas Piggin wrote: > On Tue, 23 Aug 2016 19:33:06 +0200 > "Luis R. Rodriguez" wrote: > > > On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > > > On Fri, 19 Aug 2016 14:34:02 -0700 > > > mcg...@kernel.org wrote: > > > > +/** > > > >

Re: [Xen-devel] [PATCH] XSM: drop pointless uses of __FUNCTION__

2016-08-24 Thread Daniel De Graaf
On 08/24/2016 04:06 AM, Jan Beulich wrote: Non-debugging message text should be (and is in the cases here) distinguishable without also logging function names. Signed-off-by: Jan Beulich Acked-by: Daniel De Graaf ___ Xen-devel mailing list Xen-dev

Re: [Xen-devel] [PATCH v3] xen: Make VPMU init message look less scary

2016-08-24 Thread David Vrabel
On 02/08/16 08:22, Juergen Gross wrote: > The default for the Xen hypervisor is to not enable VPMU in order to > avoid security issues. In this case the Linux kernel will issue the > message "Could not initialize VPMU for cpu 0, error -95" which looks > more like an error than a normal state. > >

Re: [Xen-devel] [PATCH v2] xen: rename xen_pmu_init() in sys-hypervisor.c

2016-08-24 Thread David Vrabel
On 02/08/16 07:53, Juergen Gross wrote: > There are two functions with name xen_pmu_init() in the kernel. Rename > the one in drivers/xen/sys-hypervisor.c to avoid shadowing the one in > arch/x86/xen/pmu.c > > To avoid the same problem in future rename some more functions. Applied to for-linus-4.

Re: [Xen-devel] [PATCH v2 0/2] Reinstate irq alloc/dealloc locking patch

2016-08-24 Thread David Vrabel
On 03/08/16 18:22, Boris Ostrovsky wrote: > Original version of that patch (commit a89941816726) had to be reverted > due to Xen allocating irqs in its cpu_up ops. > > The first patch moves allocations into hotplug notifiers and the second > one restores the original patch (with minor adjustments

Re: [Xen-devel] [PATCH linux v2] xen: change the type of xen_vcpu_id to uint32_t

2016-08-24 Thread David Vrabel
On 29/07/16 10:06, Vitaly Kuznetsov wrote: > We pass xen_vcpu_id mapping information to hypercalls which require > uint32_t type so it would be cleaner to have it as uint32_t. The > initializer to -1 can be dropped as we always do the mapping before using > it and we never check the 'not set' value

Re: [Xen-devel] [PATCH] xenbus: don't look up transaction IDs for ordinary writes

2016-08-24 Thread David Vrabel
On 15/08/16 16:02, Jan Beulich wrote: > This should really only be done for XS_TRANSACTION_END messages, or > else at least some of the xenstore-* tools don't work anymore. Applied to for-linus-4.8b, thanks. David ___ Xen-devel mailing list Xen-devel@l

[Xen-devel] [GIT PULL] xen: regression fix for 4.8-rc3

2016-08-24 Thread David Vrabel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.8b-rc3-tag xen: regression fix for 4.8-rc3 - - Fix a regression in the xenbus device preventing userspace tools from working. Than

Re: [Xen-devel] [PATCH] Xen: remove -fshort-wchar gcc flag

2016-08-24 Thread David Vrabel
On 11/08/16 13:39, Arnd Bergmann wrote: > A previous patch added the --no-wchar-size-warning to the Makefile to > avoid this harmless warning: > > arm-linux-gnueabi-ld: warning: drivers/xen/efi.o uses 2-byte wchar_t yet the > output is to use 4-byte wchar_t; use of wchar_t values across objects m

[Xen-devel] [RFC] Classify and remove (some) abort()s in libxl

2016-08-24 Thread Wei Liu
Hi all There has been some interest in removing abort() in libxl in another thread. I think this topic deserves a dedicated thread. I've checked most instances of abort() and exit() in code and classify them as several classes. * System has entered an impossible to recover state Can't be remove

[Xen-devel] [PATCH] x86: correct CPUID output for out of bounds input

2016-08-24 Thread Jan Beulich
Another place where we should try to behave like real hardware; see the code comments. Signed-off-by: Jan Beulich --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -3358,6 +3358,31 @@ void hvm_cpuid(unsigned int input, unsig if ( !edx ) edx = &dummy; +if ( input &

[Xen-devel] [PATCH] x86: correct PT_NOTE file position

2016-08-24 Thread Jan Beulich
Program and section headers disagreed about the file offset at which the build ID note lives. Reported-by: Sylvain Munaut Signed-off-by: Jan Beulich --- a/xen/arch/x86/boot/mkelf32.c +++ b/xen/arch/x86/boot/mkelf32.c @@ -394,7 +394,7 @@ int main(int argc, char **argv) note_phdr.p_paddr

Re: [Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table

2016-08-24 Thread Roger Pau Monné
On Wed, Aug 24, 2016 at 01:56:04PM +0100, Wei Liu wrote: > On Tue, Aug 16, 2016 at 06:25:04PM +0800, Shannon Zhao wrote: > > From: Shannon Zhao > > > > Construct GTDT table with the interrupt information of timers. > > > > Signed-off-by: Shannon Zhao > > --- > > tools/libxl/libxl_arm_acpi.c |

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

2016-08-24 Thread osstest service owner
flight 100606 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/100606/ 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 1

Re: [Xen-devel] Memory sizes obtained from the hypervisor

2016-08-24 Thread Jan Beulich
>>> On 24.08.16 at 13:38, wrote: > During test of HVMlite Mini-OS I found that the memory size obtained > via HYPERVISOR_memory_op(XENMEM_current_reservation) was higher than > expected: for a 16MB domain the number of pages was 8 pages larger than > I thought it should be. This seems to include t

Re: [Xen-devel] [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-08-24 Thread Jan Beulich
>>> On 24.08.16 at 15:06, wrote: > CC Jan and Andrew to review change in hvm/params.h Well, it looks reasonable, but this really needs to first be approved by the ARM maintainers. Jan > On Tue, Aug 16, 2016 at 06:25:11PM +0800, Shannon Zhao wrote: >> From: Shannon Zhao >> >> Add macros for HV

Re: [Xen-devel] [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-08-24 Thread Wei Liu
CC Jan and Andrew to review change in hvm/params.h On Tue, Aug 16, 2016 at 06:25:11PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update > them in evtchn_fixup(). > > Signed-off-by: Shannon Zhao > --- > xen/arch/arm/domai

Re: [Xen-devel] Do people want a Developer Meeting on Aug 24th (before Dev Summit)

2016-08-24 Thread Neil Sikka
Hey guys, is anything happening today regarding a meeting or going out for lunch if people arrive a day early? On Thu, Jun 23, 2016 at 8:43 AM, Lars Kurth wrote: > > > On 23 Jun 2016, at 12:39, George Dunlap > wrote: > > > > On 23/06/16 12:33, Lars Kurth wrote: > >> Folks, > >> > >> do you guys

Re: [Xen-devel] [PATCH v4 00/16] Xen ARM DomU ACPI support

2016-08-24 Thread Wei Liu
On Tue, Aug 16, 2016 at 06:24:57PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > The design of this feature is described as below. > Firstly, the toolstack (libxl) generates the ACPI tables according the > number of vcpus and gic controller. > > Then, it copies these ACPI tables to DomU no

Re: [Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table

2016-08-24 Thread Wei Liu
On Tue, Aug 16, 2016 at 06:25:04PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Construct GTDT table with the interrupt information of timers. > > Signed-off-by: Shannon Zhao > --- > tools/libxl/libxl_arm_acpi.c | 29 + > 1 file changed, 29 insertions(+) > >

Re: [Xen-devel] [PATCH v4 05/16] libxl/arm: Construct ACPI RSDP table

2016-08-24 Thread Wei Liu
On Tue, Aug 16, 2016 at 06:25:02PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Construct ACPI RSDP table and add a helper to calculate the ACPI table > checksum. > > Signed-off-by: Shannon Zhao > --- > tools/libxl/libxl_arm_acpi.c | 38 ++ > 1 file c

Re: [Xen-devel] [PATCH v4 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-08-24 Thread Wei Liu
On Tue, Aug 16, 2016 at 06:24:58PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > Since the existing configuration option "u.hvm.acpi" is x86 specific and > we want to reuse it on ARM as well, add a unified option "acpi" for > x86 and ARM, and for ARM it's disabled by default. > > Signed-of

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

2016-08-24 Thread Joao Martins
[Missed CC-ing the maintainers in the cover letter, my apologies] On 08/24/2016 01:43 PM, Joao Martins wrote: > Hey! > > This is v3 on the pvclock TSC stable bit series. > > Complete changelog on individual patches but overall is addressing > Jan's comments, plus some other changes regarding the

Re: [Xen-devel] [PATCH 3/4] [STUBDOM] Added COPYING files and README.source files

2016-08-24 Thread Lars Kurth
On 24/08/2016 06:10, "Wei Liu" wrote: > >> diff --git a/stubdom/vtpmmgr/README.source >>b/stubdom/vtpmmgr/README.source >> new file mode 100644 >> index 000..1b45997 >> --- /dev/null >> +++ b/stubdom/vtpmmgr/README.source >> @@ -0,0 +1,23 @@ >> +About >> += >> +This documents the upstre

Re: [Xen-devel] mkelf32 incorrectly filling out the program headers for NOTE

2016-08-24 Thread Sylvain Munaut
Hi Jan, > Indeed, patch in the works. But why did you not provide a patch > yourself, considering that you've done all the diagnosis? I read the code of that tool this morning and couldn't really understand how "offset" was computed. I was seeing : offset = in64_phdr.p_offset; then a bit late

[Xen-devel] [PATCH v3 6/6] docs: update clocksource option

2016-08-24 Thread Joao Martins
Add TSC as another clocksource that can be used, plus a mention to the maxcpus parameter and that it requires being explicitly set. Signed-off-by: Joao Martins --- Cc: Andrew Cooper Cc: Jan Beulich New in v3. --- docs/misc/xen-command-line.markdown | 6 +- 1 file changed, 5 insertions(+),

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

2016-08-24 Thread Joao Martins
Hey! This is v3 on the pvclock TSC stable bit series. Complete changelog on individual patches but overall is addressing Jan's comments, plus some other changes regarding the recent monotonicity improvements on x86/time. Series is divided as follows: R * Patch 1: Small refactor around ini

[Xen-devel] [PATCH v3 1/6] x86/time: refactor init_platform_time()

2016-08-24 Thread Joao Martins
And accomodate platform time source initialization in try_platform_time(). This is a preparatory patch for deferring TSC clocksource initialization to the stage where all CPUS are up (verify_tsc_reliability init call). Signed-off-by: Joao Martins Reviewed-by: Konrad Rzeszutek Wilk --- Cc: Jan Be

[Xen-devel] [PATCH v3 2/6] x86/time: implement tsc as clocksource

2016-08-24 Thread Joao Martins
Recent x86/time changes improved a lot of the monotonicity in xen timekeeping, making it much harder to observe time going backwards. Although platform timer can't be expected to be perfectly in sync with TSC and so get_s_time won't be guaranteed to always return monotonically increasing values ac

[Xen-devel] [PATCH v3 4/6] x86/time: refactor read_platform_stime()

2016-08-24 Thread Joao Martins
To fetch the last read from the clocksource which was used to calculate system_time. In the case of clocksource=tsc we will use it to set tsc_timestamp. Signed-off-by: Joao Martins --- Cc: Jan Beulich Cc: Andrew Cooper Changes since v2: - s/plt_stamp_counter/plt_counter/g - Move conditional

[Xen-devel] [PATCH v3 3/6] x86/time: streamline platform time init on plt_update()

2016-08-24 Thread Joao Martins
And use to initialize platform time solely for clocksource=tsc, as opposed to initializing platform overflow timer, which would only fire in ~180 years (on 2.2 Ghz Broadwell processor). Signed-off-by: Joao Martins --- Cc: Jan Beulich Cc: Andrew Cooper Changes since v2: - Remove pointless inti

[Xen-devel] [PATCH v3 5/6] x86/time: implement PVCLOCK_TSC_STABLE_BIT

2016-08-24 Thread Joao Martins
This patch proposes relying on host TSC synchronization and passthrough to the guest, when running on a TSC-safe platform. On time_calibration we retrieve the platform time in ns and the counter read by the clocksource that was used to compute system time. We introduce a new rendezous function whic

Re: [Xen-devel] [PATCH v3 38/38] arm/p2m: Add test of xc_altp2m_change_gfn

2016-08-24 Thread Wei Liu
On Wed, Aug 17, 2016 at 12:17:14AM +0200, Sergej Proskurin wrote: > This commit extends xen-access by a simple test of the functionality > provided by "xc_altp2m_change_gfn". The idea is to dynamically remap a > trapping gfn to another mfn, which holds the same content as the > original mfn. On suc

Re: [Xen-devel] [PATCH v3 36/38] altp2m: Allow specifying external-only use-case

2016-08-24 Thread Wei Liu
On Wed, Aug 17, 2016 at 12:17:12AM +0200, Sergej Proskurin wrote: > From: Tamas K Lengyel > > Currently setting altp2mhvm=1 in the domain configuration allows access to the > altp2m interface for both in-guest and external privileged tools. This poses > a problem for use-cases where only external

Re: [Xen-devel] [PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH

2016-08-24 Thread Wei Liu
On Wed, Aug 24, 2016 at 12:38:06PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH"): > > They shouldn't be available when the respective BIOS is disabled at build > > time. > > > > This should fix the issus that causes xtf fail to launch hvm guests. >

[Xen-devel] Memory sizes obtained from the hypervisor

2016-08-24 Thread Juergen Gross
During test of HVMlite Mini-OS I found that the memory size obtained via HYPERVISOR_memory_op(XENMEM_current_reservation) was higher than expected: for a 16MB domain the number of pages was 8 pages larger than I thought it should be. This seems to include the p2m map allocated by the toolstack. Th

Re: [Xen-devel] [PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH

2016-08-24 Thread Ian Jackson
Wei Liu writes ("[PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH"): > They shouldn't be available when the respective BIOS is disabled at build > time. > > This should fix the issus that causes xtf fail to launch hvm guests. Both Acked-by: Ian Jackson Thanks, Ian.

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

2016-08-24 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 67589 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/67589/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf d82d59edb0ec23e6ef708e04a5553ac32f1eb12e baseline v

Re: [Xen-devel] [PATCH 0/3] tools: support autoballooning of xenstore domain

2016-08-24 Thread Wei Liu
On Mon, Aug 08, 2016 at 07:31:28PM +0200, Juergen Gross wrote: > On 08/08/16 16:45, Ian Jackson wrote: > > Juergen Gross writes ("[PATCH 0/3] tools: support autoballooning of > > xenstore domain"): > >> Support xenstore domain autoballooning by: > >> - adding --maxmem parameter to init-xenstore-do

Re: [Xen-devel] Save/Restore is not working properly

2016-08-24 Thread Roger Pau Monné
On Fri, Aug 19, 2016 at 08:45:49PM +0430, Cendrin Sa wrote: > Hi again, > So save/restore has a bug or not? I still have problem with it when i use > LVM. Which kernel version are you using on the Dom0? Roger. ___ Xen-devel mailing list Xen-devel@lists

[Xen-devel] [xen-unstable test] 100602: tolerable FAIL

2016-08-24 Thread osstest service owner
flight 100602 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/100602/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-armhf-armhf-xl-arndale 6 xen-boot fail in 100592 pass in 100602 test-armhf-armhf-xl 15

Re: [Xen-devel] Save/Restore is not working properly

2016-08-24 Thread Wei Liu
On Fri, Aug 19, 2016 at 08:45:49PM +0430, Cendrin Sa wrote: > Hi again, > So save/restore has a bug or not? I still have problem with it when i use > LVM. > I think we need more logs. Which task hung? Can you provide kernel backtrace? Wei. ___ Xen-de

[Xen-devel] [xen-unstable-coverity test] 100605: all pass - PUSHED

2016-08-24 Thread osstest service owner
flight 100605 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/100605/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen 94d3b9990bf73459919fb5b234d088d1ac41c9da baseline version: xen 2a99

Re: [Xen-devel] [PATCH v2 00/22] mini-os: support HVMlite mode

2016-08-24 Thread Wei Liu
On Wed, Aug 24, 2016 at 12:11:22PM +0200, Juergen Gross wrote: > This patch series adds HVMlite support for Mini-OS. Setting > CONFIG_PARAVIRT to "n" (default is "y") will build mini-os as a > HVMlite domain on x86. Both 32- and 64-bit builds are supported. > > Tested with plain Mini-OS configurat

Re: [Xen-devel] mkelf32 incorrectly filling out the program headers for NOTE

2016-08-24 Thread Jan Beulich
>>> On 24.08.16 at 12:07, wrote: > Hi, > > Here's the readelf output (snipped) on a xen-4.7 build : > > Section Headers: > [Nr] Name TypeAddr OffSize ES Flg Lk > Inf Al > [ 0] NULL 00 00 00 0 > 0 0 >

Re: [Xen-devel] [PATCH 3/4] [STUBDOM] Added COPYING files and README.source files

2016-08-24 Thread Wei Liu
On Wed, Aug 24, 2016 at 11:10:02AM +0100, Wei Liu wrote: > On Fri, Aug 12, 2016 at 06:32:35PM +0100, Lars Kurth wrote: > > Added a COPYING file as a boilerplate to explain license oddities in > > this directory > > > > Added a vtpm/COPYING file which contains MIT licensed files only > > > > Added

Re: [Xen-devel] [PATCH v2 05/22] mini-os: add boot code for HVMlite support

2016-08-24 Thread Samuel Thibault
Juergen Gross, on Wed 24 Aug 2016 12:11:27 +0200, wrote: > A HVMlite domain is always starting in 32 bit mode. Add the appropriate > boot code to arch/x86 for the non-paravirtualized case. > > For this boot code to become active we need to suppress the pv related > elfnotes and add an appropriate

Re: [Xen-devel] [PATCH v5] x86/cpuid: AVX-512 Feature Detection

2016-08-24 Thread Jan Beulich
>>> On 23.08.16 at 03:54, wrote: > AVX512 is an extention of AVX2. Its spec can be found at: > https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf > This patch detects AVX512 features by CPUID. > > Signed-off-by: Luwei Kang Reviewed-by: Jan Beulich But I'd specificall

[Xen-devel] [PATCH v2 12/22] mini-os: add x86 native page table handling

2016-08-24 Thread Juergen Gross
For support of HVMlite don't use mmu_update hypercalls, but write the page table entries directly. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/mm.c | 147 +- arch/x86/traps.c | 10 include/x86/arch_mm.

[Xen-devel] [PATCH v2 22/22] mini-os: support idle for HVMlite

2016-08-24 Thread Juergen Gross
Instead of calling HYPERVISOR_sched_op(SCHEDOP_block, 0) we need to use the "hlt" instruction with interrupts enabled to switch to idle when running as HVMlite domain. This requires to setup a new timer in the timer handler as there is no guarantee the original timer event we are waiting for won't

[Xen-devel] [PATCH v2 18/22] mini-os: map shared info page for HVMlite

2016-08-24 Thread Juergen Gross
Add a service function to map the shared info page on a non-paravirtualized system. The code is already existing on ARM side, just move it to hypervisor.c. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/arm/arm32.S | 4 ++-- arch/arm/setup.c | 11 +-- arch/x

[Xen-devel] [PATCH v2 01/22] mini-os: resync xen headers

2016-08-24 Thread Juergen Gross
Use the latest Xen headers. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- include/xen/arch-x86/hvm/start_info.h | 98 +++ include/xen/elfnote.h | 12 - 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 inclu

[Xen-devel] [PATCH v2 17/22] mini-os: add get_cmdline() function

2016-08-24 Thread Juergen Gross
The command line parameters are passed in start_info structure for pv, but via hvm_start_info for HVMlite. Add a generic function to fill a local cmdline variable with the command line string. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/setup.c | 20 ++

[Xen-devel] [PATCH v2 00/22] mini-os: support HVMlite mode

2016-08-24 Thread Juergen Gross
This patch series adds HVMlite support for Mini-OS. Setting CONFIG_PARAVIRT to "n" (default is "y") will build mini-os as a HVMlite domain on x86. Both 32- and 64-bit builds are supported. Tested with plain Mini-OS configuration to work in 32- and 64-bit mode either paravirtualized or as HVM domai

[Xen-devel] [PATCH v2 10/22] mini-os: make p2m related code depend on CONFIG_PARAVIRT

2016-08-24 Thread Juergen Gross
All handling related to p2m is needed for paravirtualized environment only. So put all functions operating on p2m list in #ifdef CONFIG_PARAVIRT sections. Add a paravirt.h header defining dummy functions for non-paravirtualized environments. Instead of using references to start_info use dedicated v

[Xen-devel] [PATCH v2 09/22] mini-os: support HVMlite traps

2016-08-24 Thread Juergen Gross
Trap handling in HVMlite domain is different from pv one. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/traps.c | 2 -- arch/x86/x86_32.S | 19 ++-- arch/x86/x86_64.S | 22 +- include/x86/os.h | 67 +

[Xen-devel] [PATCH v2 15/22] mini-os: setup console interface parameters

2016-08-24 Thread Juergen Gross
In order to support HVMlite we need to get the ring page and event channel from the hypervisor via hypercalls. Move the already existing get_console() function from arm specific coding to console/xencons_ring.c and provide a similar paravirtualized function. Signed-off-by: Juergen Gross Reviewed-

[Xen-devel] [PATCH v2 06/22] mini-os: setup hypercall page for HVMlite

2016-08-24 Thread Juergen Gross
When running in HVMlite mode we need to setup the hypercall page by ourself. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- V2: move wrmsr definitions as requested by Samuel Thibault --- arch/x86/events.c | 4 ++-- arch/x86/setup.c | 26 ++ include/x86/o

[Xen-devel] [PATCH v2 14/22] mini-os: add map_frame_virt() function

2016-08-24 Thread Juergen Gross
Add a function map_frame_virt() to map a given frame and return its virtual address. On arm we just use the frame physical address, while on x86 we take a page from the virtual kernel area. For this purpose make this area available even in case of undefined CONFIG_BALLOON. Signed-off-by: Juergen

[Xen-devel] [PATCH v2 11/22] mini-os: add static page tables for virtual kernel area for HVMlite

2016-08-24 Thread Juergen Gross
In HVMlite mode we need the virtual kernel area for mapping of the console and xenbus ring pages as especially on 32 bit architecture their pfns might be above the supported maximum memory size. Add the page tables needed for doing the mapping. Signed-off-by: Juergen Gross Reviewed-by: Samuel Th

[Xen-devel] [PATCH v2 07/22] mini-os: support hvm_op hypercall

2016-08-24 Thread Juergen Gross
Support the HYPERVISOR_hvm_op() hypercall which is needed for HVMlite. Add convenience functions hvm_get_parameter() and hvm_set_parameter(). Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/arm/setup.c | 15 --- hypervisor.c

[Xen-devel] [PATCH v2 08/22] mini-os: initialize trap handling for HVMlite

2016-08-24 Thread Juergen Gross
Trap handling for HVMlite domains requires an initialized IDT. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/setup.c | 15 -- arch/x86/traps.c | 88 +++ arch/x86/x86_64.S | 4 +++ include/x86/os.h | 1 + 4

[Xen-devel] [PATCH v2 04/22] mini-os: make some memory management related macros usable from assembler

2016-08-24 Thread Juergen Gross
Especially page table entry definitions are currently not usable from assembler sources on x86 as the constants are defined with ULL suffix. Change this by adding the suffix only when the header is included from a C source. Hide some C prototypes when in assembler environment. Signed-off-by: Juer

[Xen-devel] [PATCH v2 03/22] mini-os: add CONFIG_PARAVIRT

2016-08-24 Thread Juergen Gross
Add a new config macro CONFIG_PARAVIRT which defaults to be defined on x86. This is the first step for supporting a HVMlite Mini-OS. Doing this via CONFIG_PARAVIRT instead of something like CONFIG_HVMLITE was chosen as the arm port can then drop some dummy routines needed for para-virtualization o

[Xen-devel] [PATCH v2 05/22] mini-os: add boot code for HVMlite support

2016-08-24 Thread Juergen Gross
A HVMlite domain is always starting in 32 bit mode. Add the appropriate boot code to arch/x86 for the non-paravirtualized case. For this boot code to become active we need to suppress the pv related elfnotes and add an appropriate elfnote for HVMlite. As the HVMlite boot code is more or less the

[Xen-devel] [PATCH v2 02/22] mini-os: make dump_regs() work in early boot

2016-08-24 Thread Juergen Gross
dump_regs() will result in page fault in early boot as there is no current thread pointer. Handle this case. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/traps.c b/arch/x86/traps.c ind

[Xen-devel] [PATCH v2 19/22] mini-os: remove using start_info in architecture independent code

2016-08-24 Thread Juergen Gross
The start_info structure should be used only in case of CONFIG_PARAVIRT defined. Remove it from being used in other places. Especially the usage as parameter for applications linked to the kernel is no good idea. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/arm/setup.c

[Xen-devel] [PATCH v2 13/22] mini-os: correct wrong calculation of alloc bitmap size

2016-08-24 Thread Juergen Gross
When remapping the page allocator's bitmap for the ballooning support the calculation of the needed size is wrong. This doesn't really matter today as nothing is allocated after that bitmap, but it should be corrected nevertheless. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- b

[Xen-devel] [PATCH v2 16/22] mini-os: setup xenbus interface parameters

2016-08-24 Thread Juergen Gross
In order to support HVMlite we need to get the ring page and event channel from the hypervisor via hypercalls. Move the already existing get_xenbus() function from arm specific coding to xenbus/xenbus.c and provide a similar paravirtualized function. Signed-off-by: Juergen Gross Reviewed-by: Samu

[Xen-devel] [PATCH v2 20/22] mini-os: print start of day messages depending on domain type

2016-08-24 Thread Juergen Gross
Select what to print in arch_init() depending on the domain type. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- V2: add printing nr_modules as requested by Samuel Thibault --- arch/x86/setup.c | 48 +--- 1 file changed, 33 insertions(+

[Xen-devel] [PATCH v2 21/22] mini-os: get physical memory map

2016-08-24 Thread Juergen Gross
On HVMlite we have to look at the physical memory map to know which memory frames are usable. In order to make life easier we define a dummy memory map for other domain types (pv and arm) which has just one entry with a maximum memory size. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibau

Re: [Xen-devel] [PATCH 3/4] [STUBDOM] Added COPYING files and README.source files

2016-08-24 Thread Wei Liu
On Fri, Aug 12, 2016 at 06:32:35PM +0100, Lars Kurth wrote: > Added a COPYING file as a boilerplate to explain license oddities in > this directory > > Added a vtpm/COPYING file which contains MIT licensed files only > > Added a vtpmmgr/README.source file which contains many BSD-3-Clause > files

[Xen-devel] mkelf32 incorrectly filling out the program headers for NOTE

2016-08-24 Thread Sylvain Munaut
Hi, Here's the readelf output (snipped) on a xen-4.7 build : Section Headers: [Nr] Name TypeAddr OffSize ES Flg Lk Inf Al [ 0] NULL 00 00 00 0 0 0 [ 1] .text PROGBITS0010 80

Re: [Xen-devel] [PATCH v3] xen: support enabling SMEP/SMAP for HVM only

2016-08-24 Thread Jan Beulich
>>> On 19.08.16 at 12:20, wrote: > Changes in v3: > * Fix boot options. > * Fix CR4 & mmu_cr4_features operations. > * Disable SMEP/SMAP for Dom0. > * Commit message refinement. Several of my comments on v3 did not get taken care of (neither in code nor verbally). I'm not going to repeat them her

Re: [Xen-devel] [PATCH 4/4] blktap2: Added COPYING file

2016-08-24 Thread Wei Liu
On Fri, Aug 12, 2016 at 06:32:36PM +0100, Lars Kurth wrote: > Blktap2 has some complexity, as some files do not have (c) headers > and the directory did not have a COPYING file. At this stage, we > have not verified the intention of (c) holders. We may do this in > future, if the need arises. > >

Re: [Xen-devel] [PATCH 2/4] Added source of ax_compare_version.m4 to import log

2016-08-24 Thread Wei Liu
On Fri, Aug 12, 2016 at 06:32:34PM +0100, Lars Kurth wrote: > In addition: > - fixed a reference, which was incorrect > > Signed-off-by: Lars Kurth Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-deve

[Xen-devel] missing unplug of SCSI devices in HVM guest

2016-08-24 Thread Olaf Hering
Does anyone remember why the the vbd frontend drivers also claim the SCSI disks, but the vbd backend in qemu has no unplug support for SCSI? The current situation for qemu-xen and qemu-xen-traditional is that both will create an emulated LSI controller with disk=[vdev=sda]. The xenlinux and pvops

  1   2   >