Re: [Xen-devel] [PATCH v2] PVH Dom0 RMRR IOMMU mapping regression fix

2015-09-28 Thread Jan Beulich
>>> On 25.09.15 at 22:59, wrote: > From: Elena Ufimtseva > > This patch addresses a regression introduced by commit > 5ae03990c120a7b3067a52d9784c9aa72c0705a6 in new set_identity_p2m_entry. > RMRRs are not being mapped in IOMMU for PVH Dom0. This causes pages faults > and > some long 'hang-lik

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

2015-09-28 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38083 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38083/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-raw 6 xen-boot

[Xen-devel] [PATCH 00/13] Add VMX TSC scaling support

2015-09-28 Thread Haozhong Zhang
This patchset adds support for VMX TSC scaling feature which is available on Intel Skylake CPU. The specification of VMX TSC scaling can be found at http://www.intel.com/content/www/us/en/processors/timestamp-counter-scaling-virtualization-white-paper.html VMX TSC scaling allows guest TSC which is

[Xen-devel] [PATCH 01/13] x86/time.c: Use system time to calculate elapsed_nsec in tsc_get_info()

2015-09-28 Thread Haozhong Zhang
When the TSC mode of a domain is TSC_MODE_DEFAULT and no TSC emulation is used, the existing tsc_get_info() calculates elapsed_nsec by scaling the host TSC with a ratio between guest TSC rate and nanoseconds. However, the result will be incorrect if the guest TSC rate differs from the host TSC rate

[Xen-devel] [PATCH 05/13] x86/hvm: Replace architecture TSC scaling by a common function

2015-09-28 Thread Haozhong Zhang
This patch implements a common function hvm_scale_tsc() to calculate the scaling of TSC by using TSC scaling information which is collected by architecture code. Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/hvm.c| 53 +++ xen/arch/x86/hvm/svm

[Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-09-28 Thread Haozhong Zhang
The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC scaling is enabled, the host TSC should be scaled first. This patch adds the scaling logic to those two functions. Signed-off-by: Haozhong Zhang ---

[Xen-devel] [PATCH 04/13] x86/hvm: Setup TSC scaling ratio

2015-09-28 Thread Haozhong Zhang
This patch adds a field tsc_scaling_ratio in struct arch_vcpu to represent the TSC scaling ratio, and sets it up when tsc_set_info() is called for a vcpu or a vcpu is restored or reset. Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/hvm.c| 34 ++ xen/a

[Xen-devel] [PATCH 02/13] x86/time.c: Get the correct guest TSC rate in tsc_get_info()

2015-09-28 Thread Haozhong Zhang
When the TSC mode of a domain is TSC_MODE_DEFAULT and no TSC emulation is used, the existing tsc_get_info() returns the host TSC rate (cpu_khz) as the guest TSC rate. However, tsc_set_info() may set the guest TSC rate of a domain in TSC_MODE_DEFAULT to a value different than the host TSC rate. In o

[Xen-devel] [PATCH 08/13] x86/hvm: Detect TSC scaling through hvm_funcs in tsc_set_info()

2015-09-28 Thread Haozhong Zhang
This patch uses hvm_funcs.tsc_scaling_supported instead of the architecture code to detect the TSC scaling support. Signed-off-by: Haozhong Zhang --- xen/arch/x86/time.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 64f4e31.

[Xen-devel] [PATCH 03/13] x86/hvm: Collect information of TSC scaling ratio

2015-09-28 Thread Haozhong Zhang
Both VMX TSC scaling and SVM TSC ratio use the 64-bit TSC scaling ratio, but the number of fractional bits of the ratio is different between VMX and SVM. This patch makes the architecture code to collect the number of fractional bits and other related information into fields of struct hvm_function_

[Xen-devel] [PATCH 07/13] x86/hvm: Move saving/loading vcpu's TSC to common code

2015-09-28 Thread Haozhong Zhang
Both VMX and SVM saves/loads vcpu's TSC when saving/loading vcpu's context, so this patch moves saving/loading vcpu's TSC to the common function hvm_save_cpu_ctxt()/hvm_load_cpu_ctxt(). Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/hvm.c | 4 xen/arch/x86/hvm/svm/svm.c | 5 - x

[Xen-devel] [PATCH 10/13] vmx: Detect and initialize VMX RDTSC(P) scaling

2015-09-28 Thread Haozhong Zhang
This patch adds the detection and initialization code for VMX TSC scaling. Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/vmx/vmcs.c| 11 +-- xen/arch/x86/hvm/vmx/vmx.c | 9 + xen/include/asm-x86/hvm/vmx/vmcs.h | 7 +++ 3 files changed, 25 insertions(+),

[Xen-devel] [PATCH 13/13] tools/libxl: Add 'vtsc_khz' option to set guest TSC rate

2015-09-28 Thread Haozhong Zhang
This patch adds an option 'vtsc_khz' to allow users to set vcpu's TSC rate in KHz. In the case that tsc_mode = 'default', the default value of 'vtsc_khz' option is the host TSC rate which is used when 'vtsc_khz' option is set to 0 or does not appear in the configuration. In all other cases of tsc_m

[Xen-devel] [PATCH 12/13] vmx: Add a call-back to apply TSC scaling ratio to hardware

2015-09-28 Thread Haozhong Zhang
This patch adds a new call-back setup_tsc_scaling in struct hvm_function_table to apply the TSC scaling ratio to hardware. For VMX, it writes the TSC scaling ratio to VMCS field TSC_MULTIPLIER. Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/hvm.c| 1 + xen/arch/x86/hvm/svm/svm.c|

[Xen-devel] [PATCH 11/13] vmx: Use scaled host TSC to calculate TSC offset

2015-09-28 Thread Haozhong Zhang
If VMX TSC scaling is enabled and no TSC emulation is used, vmx_set_tsc_offset() will calculate the TSC offset by substracting the scaled host TSC from the current guest TSC. Signed-off-by: Haozhong Zhang --- xen/arch/x86/hvm/vmx/vmx.c | 15 +++ 1 file changed, 15 insertions(+) diff

[Xen-devel] [PATCH 09/13] x86/time.c: Scale host TSC in pvclock properly

2015-09-28 Thread Haozhong Zhang
This patch makes the pvclock return the scaled host TSC and corresponding scaling parameters to HVM domains if guest TSC is not emulated and TSC scaling is enabled. Signed-off-by: Haozhong Zhang --- xen/arch/x86/time.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff

[Xen-devel] [xen-4.5-testing test] 62353: regressions - FAIL

2015-09-28 Thread osstest service owner
flight 62353 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/62353/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-debianhvm-amd64 18 guest-start.2 fail REGR. vs. 62168 test-amd64-i386-

Re: [Xen-devel] [PATCH 5/5] xen: clean up VPF flags macros

2015-09-28 Thread Juergen Gross
On 09/28/2015 08:22 AM, Jan Beulich wrote: On 28.09.15 at 07:23, wrote: On 09/25/2015 05:42 PM, Jan Beulich wrote: On 25.09.15 at 13:54, wrote: Per-VCPU pause flags in sched.h are defined as bit positions and as values derived from the bit defines. There is only one user of a value which can

Re: [Xen-devel] [PATCH 5/5] xen: clean up VPF flags macros

2015-09-28 Thread Jan Beulich
>>> On 28.09.15 at 09:29, wrote: > On 09/28/2015 08:22 AM, Jan Beulich wrote: > On 28.09.15 at 07:23, wrote: >>> On 09/25/2015 05:42 PM, Jan Beulich wrote: >>> On 25.09.15 at 13:54, wrote: > Per-VCPU pause flags in sched.h are defined as bit positions and as > values derived from

Re: [Xen-devel] [PATCH 5/5] xen: clean up VPF flags macros

2015-09-28 Thread Juergen Gross
On 09/28/2015 09:52 AM, Jan Beulich wrote: On 28.09.15 at 09:29, wrote: On 09/28/2015 08:22 AM, Jan Beulich wrote: On 28.09.15 at 07:23, wrote: On 09/25/2015 05:42 PM, Jan Beulich wrote: On 25.09.15 at 13:54, wrote: Per-VCPU pause flags in sched.h are defined as bit positions and as value

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

2015-09-28 Thread He Chen
Changes in v5: - x86: address Andrew's and Jan's coments. - tools: refine options parsing in psr-cat-cbm-set and invalidate passing -c and -d at the same time - merge tools and docs patches. - code style Changes in v4: - x86: * remove union member name in struct `psr_cat_cbm` (suggested by Jan

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

2015-09-28 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 v5: * merge tools and

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

2015-09-28 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

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

2015-09-28 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 linux-2.6.18] usbback: correct copy length for partial transfers

2015-09-28 Thread Juergen Gross
Commit 72387b3c2252 ("usbback: copy only filled buffers to guest") has introduced an error leading to copying the wrong amount of data to the guest in case of read I/Os with not the complete buffer filled. Depending on the amount of data read either too much or not enough data was copied: if a buf

Re: [Xen-devel] [PATCH 5/5] xen: clean up VPF flags macros

2015-09-28 Thread Jan Beulich
>>> On 28.09.15 at 10:15, wrote: > On 09/28/2015 09:52 AM, Jan Beulich wrote: > On 28.09.15 at 09:29, wrote: >>> On 09/28/2015 08:22 AM, Jan Beulich wrote: >>> On 28.09.15 at 07:23, wrote: > On 09/25/2015 05:42 PM, Jan Beulich wrote: > On 25.09.15 at 13:54, wrote: >>> --

[Xen-devel] unknown gpa read address error for GICv3 re-distributor register access.

2015-09-28 Thread Shameerali Kolothum Thodi
Hi All, I am working on enabling Xen on our HIPO5 board(http://lists.xenproject.org/archives/html/xen-users/2015-07/msg00090.html) Since the board has got GIC/ITS, tried this ITS patch series (https://github.com/vijaykilari/its_v6/commits/stating_its_v6). The board has got 16 cores. The dts

Re: [Xen-devel] [PATCH 5/5] xen: clean up VPF flags macros

2015-09-28 Thread Juergen Gross
On 09/28/2015 10:34 AM, Jan Beulich wrote: On 28.09.15 at 10:15, wrote: On 09/28/2015 09:52 AM, Jan Beulich wrote: On 28.09.15 at 09:29, wrote: On 09/28/2015 08:22 AM, Jan Beulich wrote: On 28.09.15 at 07:23, wrote: On 09/25/2015 05:42 PM, Jan Beulich wrote: On 25.09.15 at 13:54, wrote:

Re: [Xen-devel] [PATCH for-4.6] p2m/ept: Set the A bit only if PML is enabled

2015-09-28 Thread Kai Huang
On 09/24/2015 05:10 PM, Tim Deegan wrote: At 01:02 -0600 on 24 Sep (1443056566), Jan Beulich wrote: On 23.09.15 at 17:46, wrote: At 16:18 +0100 on 23 Sep (1443025126), Wei Liu wrote: With the discussion still not finalised I'm a bit worried that this issue will block the release. I think w

Re: [Xen-devel] [PATCH 1/3] x86/p2m: tighten conditions of IOMMU mapping updates

2015-09-28 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, September 21, 2015 10:03 PM > > In the EPT case permission changes should also result in updates or > TLB flushes. > > In the NPT case the old MFN does not depend on the new entry being > valid (but solely on the old one), and the nee

Re: [Xen-devel] [PATCH 3/3] x86/p2m‑ept: adjust some types in ept_set_entry()

2015-09-28 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, September 21, 2015 10:04 PM > > Use unsigned and bool_t as appropriate. > > Signed-off-by: Jan Beulich Acked-by: Kevin Tian ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists

Re: [Xen-devel] [V5 1/4] x86/xsaves: add basic definitions/helpers to support xsaves

2015-09-28 Thread Jan Beulich
>>> On 21.09.15 at 13:33, wrote: > This patch add basic definitions/helpers which will be used in > later patches. > > Signed-off-by: Shuai Ruan > --- Missing brief description of changes in v5 here. > --- a/xen/arch/x86/xstate.c > +++ b/xen/arch/x86/xstate.c > @@ -29,12 +29,21 @@ static u32 _

Re: [Xen-devel] [PATCH 1/3] x86/p2m: tighten conditions of IOMMU mapping updates

2015-09-28 Thread Jan Beulich
>>> On 28.09.15 at 10:55, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Monday, September 21, 2015 10:03 PM >> >> In the EPT case permission changes should also result in updates or >> TLB flushes. >> >> In the NPT case the old MFN does not depend on the new entry being >> val

Re: [Xen-devel] [linux-3.14 bisection] complete test-amd64-i386-xl-qcow2

2015-09-28 Thread Ian Campbell
On Sat, 2015-09-26 at 10:30 -0700, Greg Kroah-Hartman wrote: > On Fri, Sep 11, 2015 at 04:55:00PM +0100, Ian Campbell wrote: > > On Fri, 2015-09-11 at 08:51 -0700, Greg Kroah-Hartman wrote: > > > On Fri, Sep 11, 2015 at 04:10:46PM +0100, Ian Campbell wrote: > > > > ping for 3.10.y and 3.14.y > > >

Re: [Xen-devel] [PATCH 1/5] libxc: remove allocate member from struct xc_dom_image

2015-09-28 Thread Ian Campbell
On Mon, 2015-09-28 at 05:55 +0200, Juergen Gross wrote: > On 09/25/2015 05:39 PM, Ian Campbell wrote: > > On Fri, 2015-09-11 at 13:44 +0100, Ian Jackson wrote: > > > Juergen Gross writes ("[PATCH 1/5] libxc: remove allocate member from > > > struct xc_dom_image"): > > > > The allocate() callback in

Re: [Xen-devel] [PATCH] Add missing license and copyright statements to public interface headers.

2015-09-28 Thread Mike Belopuhov
On Fri, Sep 25, 2015 at 01:12 -0600, Jan Beulich wrote: > >>> On 22.09.15 at 16:02, wrote: > > --- xen/include/public/arch-x86/pmu.h > > +++ xen/include/public/arch-x86/pmu.h > > I fixed this up for you this time, but in the future please make sure > you send patches in conventional format (appli

Re: [Xen-devel] unknown gpa read address error for GICv3 re-distributor register access.

2015-09-28 Thread Julien Grall
On 28/09/2015 09:36, Shameerali Kolothum Thodi wrote: Hi All, Hi, I am working on enabling Xen on our HIPO5 board(http://lists.xenproject.org/archives/html/xen-users/2015-07/msg00090.html) Since the board has got GIC/ITS, tried this ITS patch series (https://github.com/vijaykilari/its_

Re: [Xen-devel] [linux-3.14 bisection] complete test-amd64-i386-xl-qcow2

2015-09-28 Thread Ian Campbell
On Mon, 2015-09-28 at 10:27 +0100, Ian Campbell wrote: > On Sat, 2015-09-26 at 10:30 -0700, Greg Kroah-Hartman wrote: > > On Fri, Sep 11, 2015 at 04:55:00PM +0100, Ian Campbell wrote: > > > On Fri, 2015-09-11 at 08:51 -0700, Greg Kroah-Hartman wrote: > > > > On Fri, Sep 11, 2015 at 04:10:46PM +0100

Re: [Xen-devel] [PATCH] cleanup domain builder declarations and related users

2015-09-28 Thread Andrew Cooper
On 28/09/15 06:02, Juergen Gross wrote: > There are several unused function and structure declarations in the > hypervisor related to domain building. Remove them. > > Use an enum for elf_dom_parms.pae instead of just hard codiint pae; /* some > kind of enum apparently */ > ng the > values when se

Re: [Xen-devel] Xen, ACPI and Linux

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 21:20 +0100, Stefano Stabellini wrote: > On Thu, 24 Sep 2015, Stefano Stabellini wrote: > > On Wed, 23 Sep 2015, Stefano Stabellini wrote: > > > On Wed, 23 Sep 2015, Ian Campbell wrote: > > > > On Wed, 2015-09-23 at 01:18 -0700, Ard Biesheuvel wrote: > > > > > On 23 September

[Xen-devel] OutreachY Proposed candidate selection process and FAQ

2015-09-28 Thread Lars Kurth
Hi, I have been getting a few questions related to the Outreachy program from mentors. So I put together an FAQ Q: How many slots do we have (across Xen, Mirage OS, XAPI) A: We have two slots. But we do have quite *a lot* of interest both in Xen as well as in Mirage OS so far. I have funds for

Re: [Xen-devel] [PATCH v7 21/28] xen/arm: ITS: Add GICR register emulation

2015-09-28 Thread Ian Campbell
On Sat, 2015-09-26 at 21:38 +0530, Vijay Kilari wrote: > LPI property table is accessed in interrupt context. So interrupts > are disabled. Interrupts a reenabled while handling an interrupt, so a higher priority interrupt can still interrupt things. See the use of local_irq_enable in gic_inter

[Xen-devel] [linux-3.10 test] 62397: regressions - FAIL

2015-09-28 Thread osstest service owner
flight 62397 linux-3.10 real [real] http://logs.test-lab.xenproject.org/osstest/logs/62397/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 60670 test-amd64-amd64-xl-qc

Re: [Xen-devel] [MirageOS-devel] OutreachY Proposed candidate selection process and FAQ

2015-09-28 Thread Anil Madhavapeddy
> On 28 Sep 2015, at 10:50, Lars Kurth wrote: > > Hi, > > I have been getting a few questions related to the Outreachy program from > mentors. So I put together an FAQ > > Q: How many slots do we have (across Xen, Mirage OS, XAPI) > A: We have two slots. But we do have quite *a lot* of intere

Re: [Xen-devel] [OSSTEST PATCH 10/26] cs-adjust-flight: Add some missing doc comment info

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Ian Campbell [...] > +# : > +# > +# new: I had no idea this latter syntax existed, how useful! ___ Xen-devel mailing list Xen-devel@lists.xen.org http

Re: [Xen-devel] [OSSTEST PATCH 12/26] selecthost: Minor cleanups

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > Document the syntax for $ident. > > Log the ident as well as the selected hostname. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel@lists.xen.org htt

Re: [Xen-devel] [OSSTEST PATCH 11/26] cs-adjust-flight: Allow adjusting "this" flight

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > This allows cs-adjust-flight to be run by hand to adjust runvars, in a > flight being used with hand-invocation of ./ts-* scripts. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-

Re: [Xen-devel] [Qemu-devel] [PULL 0/19] xen-2015-09-08-tag

2015-09-28 Thread Stefano Stabellini
No, unfortunately it is not possible at this stage of the release cycle. But users can still use QEMU 2.5 (as soon as it is released, which should be in a couple of months) with Xen 4.6 as there is not a strong tie between QEMU releases and Xen releases. On Mon, 28 Sep 2015, Chen, Tiejun wrote: >

Re: [Xen-devel] Xen, ACPI and Linux

2015-09-28 Thread Stefano Stabellini
On Mon, 28 Sep 2015, Ian Campbell wrote: > On Fri, 2015-09-25 at 21:20 +0100, Stefano Stabellini wrote: > > On Thu, 24 Sep 2015, Stefano Stabellini wrote: > > > On Wed, 23 Sep 2015, Stefano Stabellini wrote: > > > > On Wed, 23 Sep 2015, Ian Campbell wrote: > > > > > On Wed, 2015-09-23 at 01:18 -070

Re: [Xen-devel] [OSSTEST PATCH 13/26] selecthost: Support nested hosts (guests which are also hosts)

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > We introduce a new syntax: instead of a hostname (which might appear > in a command line argument to a ts-* script and hence be passed to > selecthost, or which might be in a runvar), we now support > :. > > Such `hosts' (let us refer to such

Re: [Xen-devel] [OSSTEST PATCH 14/26] Nested hosts: Provide PDU power method

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > This `guest' power method uses VM create/destroy. It is automatically > used for nested hosts. It would not make much sense to configure it > manually. > > For nested host/guest, its power on/off method shall be > its

Re: [Xen-devel] [OSSTEST PATCH 15/26] DhcpWatch::leases: Fix a reporting message

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > This talks about `guest_check_ip', but this code is now factored out > into a method. Use the correct method name in reporting. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-dev

Re: [Xen-devel] [OSSTEST PATCH 17/26] await_tcp(): Run check_ip on each loop iteration

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > await_tcp is often invoked after a reboot. > > In this situation the target's IP address may change. If this happens > while await_tcp is running, we would continue to poll the old IP address. > Fix this by running targ

[Xen-devel] [OSSTEST PATCH] crontabs: Provide way to install crontabs, with a safety catch

2015-09-28 Thread Ian Jackson
With this setup you can say ./mg-crontab-install CRONTAB or even ./crontab ./crontab-cambridge And you can't accidentally install the intended crontab on the wrong host, etc. (As I did recently!) Signed-off-by: Ian Jackson --- crontab|3 +++ crontab-cambridge |3 +++

Re: [Xen-devel] [OSSTEST PATCH 16/26] target_check_ip: Rename and improve from guest_check_ip

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > Make this function suitable for running on targets with static IP > addresses. (Ie, on physical hosts.) Accordingly, rename it and > adjust all call sites. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell _

[Xen-devel] [PATCH V3 2/2] xen: Introduce VM_EVENT_FLAG_SET_REGISTERS

2015-09-28 Thread Razvan Cojocaru
A previous version of this patch dealing with support for skipping the current instruction when a vm_event response requested it computed the instruction length in the hypervisor, adding non-trivial code dependencies. This patch allows a userspace vm_event client to simply request that the guest's

Re: [Xen-devel] [PATCH] cleanup domain builder declarations and related users

2015-09-28 Thread Wei Liu
On Mon, Sep 28, 2015 at 07:02:29AM +0200, Juergen Gross wrote: > There are several unused function and structure declarations in the > hypervisor related to domain building. Remove them. > > Use an enum for elf_dom_parms.pae instead of just hard coding the > values when setting the information and

[Xen-devel] [PATCH V3 0/2] Introspection optimization helpers

2015-09-28 Thread Razvan Cojocaru
Hello, This series adds two minor patches. The first one allows finer-grained control over the emulation behaviour of REP instructions. Previously, once vm_event-based emulation was enabled, no optimizations were allowed. However, this has a performance impact on the monitored guest, so I've added

[Xen-devel] [PATCH V3 1/2] xen, libxc: Fine grained control of REP emulation optimizations

2015-09-28 Thread Razvan Cojocaru
Previously, if vm_event emulation support was enabled, then REP optimizations were disabled when emulating REP-compatible instructions. This patch allows fine-tuning of this behaviour by providing a dedicated libxc helper function. Signed-off-by: Razvan Cojocaru Acked-by: Ian Campbell --- Chang

Re: [Xen-devel] [OSSTEST PATCH 18/26] LVM: Break out lv_create

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > We are going to want to reuse this. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [OSSTEST PATCH 19/26] Toolstack::xl: Provide block_attach method

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > It is possible that this may work some of the time with xm, so I have > taken no measures to prevent it running then. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing

Re: [Xen-devel] [OSSTEST PATCH 20/26] sg-run-job: Break out per-host-prep and per-host-finish

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > No functional change. > > We now call the per-host-ts finish steps unconditionally, rather than > only if !$need_build_host, per-host-ts is (complicated) no-op if > $need_build_host, since in that case $need_xen_hosts is {}. > > Signed-off-b

Re: [Xen-devel] [OSSTEST PATCH 21/26] sg-run-job: Provide infrastructure for layers of nesting

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > Provides nested-layer-descend, which can be called in an individual > test job at the appropriate point (after the L1 has been set up). > > The inner host is a guest of the outer host; powering it off means > destroying it. Putting the power

Re: [Xen-devel] unknown gpa read address error for GICv3 re-distributor register access.

2015-09-28 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Julien Grall [mailto:julien.gr...@citrix.com] > Sent: 28 September 2015 10:43 > To: Shameerali Kolothum Thodi; xen-de...@lists.xenproject.org > Cc: Ian Campbell; Vijay Kilari > Subject: Re: unknown gpa read address error for GICv3 re-distributor > register acc

Re: [Xen-devel] [OSSTEST PATCH] crontabs: Provide way to install crontabs, with a safety catch

2015-09-28 Thread Ian Campbell
On Mon, 2015-09-28 at 11:15 +0100, Ian Jackson wrote: > With this setup you can say > ./mg-crontab-install CRONTAB > or even > ./crontab > ./crontab-cambridge > > And you can't accidentally install the intended crontab on the wrong > host, etc. (As I did recently!) > > Signed-off-by: Ian J

Re: [Xen-devel] [PATCH V3 2/2] xen: Introduce VM_EVENT_FLAG_SET_REGISTERS

2015-09-28 Thread Andrew Cooper
On 28/09/15 11:16, Razvan Cojocaru wrote: > diff --git a/xen/include/public/vm_event.h b/xen/include/public/vm_event.h > index ff2f217..3e4efad 100644 > --- a/xen/include/public/vm_event.h > +++ b/xen/include/public/vm_event.h > @@ -89,6 +89,12 @@ > * by the altp2m_idx response field if possible.

Re: [Xen-devel] [PATCH 4/5] xen: remove unused macros from sched.h

2015-09-28 Thread George Dunlap
On Fri, Sep 25, 2015 at 12:54 PM, Juergen Gross wrote: > The macros num_cpupool_cpus() and domain_is_locked() aren't used by > anyone. Remove them. > > Signed-off-by: Juergen Gross Acked-by: George Dunlap ___ Xen-devel mailing list Xen-devel@lists.xe

Re: [Xen-devel] [OSSTEST PATCH 22/26] Nested HVM: Provide ts-nested-setup to help make L1 usable as a host

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > * Provide the L1 with some storage for its own guests' disks > * Install some packages in the L1 > * Optionally, set a runvar defining the L1 for the rest of the job > > The recipe is going to run ts-xen-install etc. >

Re: [Xen-devel] [OSSTEST PATCH 23/26] Nested HVM: Provide test-nested recipe

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > Signed-off-by: Robert Ho > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [OSSTEST PATCH 24/26] Nested HVM: Add test job to appropriate flights

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > Signed-off-by: longtao.pang > Signed-off-by: Robert Ho > Signed-off-by: Ian Jackson Acked-by: Ian Campbell [...] > + job_create_test test-$xenarch$kern-$dom0arch$qemuu_suffix-nested \ > +test-nested xl

Re: [Xen-devel] [OSSTEST PATCH 25/26] ts-xen-install: Properly handle hosts without a static IP address

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > From: Robert Ho > > Check IpStatic, and if it is not set, provide a dhcp stanza in > /etc/network/interfaces, rather than an `inet static' one. > > This is necessary for L1 nested hosts, because they don't have a > static IP address. > > I

Re: [Xen-devel] [OSSTEST PATCH 26/26] ts-xen-install: networking: Rename `nodhcp' to `ensurebridge'

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > This function does not (now) always undo the DHCP configuration. > Sometimes it leaves it. Its main function is to ensure that we have > a bridge for use by guests. > > So rename the function. > > Signed-off-by: Ian Jackson Acked-by: Ian

Re: [Xen-devel] [PATCH v6 22/29] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-09-28 Thread Roger Pau Monné
El 21/09/15 a les 16.47, Jan Beulich ha escrit: On 04.09.15 at 14:09, wrote: >> --- a/xen/include/public/elfnote.h >> +++ b/xen/include/public/elfnote.h >> @@ -200,9 +200,18 @@ >> #define XEN_ELFNOTE_SUPPORTED_FEATURES 17 >> >> /* >> + * Physical entry point into the kernel. >> + * >> + *

Re: [Xen-devel] [PATCH v7 21/28] xen/arm: ITS: Add GICR register emulation

2015-09-28 Thread Vijay Kilari
On Mon, Sep 28, 2015 at 3:23 PM, Ian Campbell wrote: > On Sat, 2015-09-26 at 21:38 +0530, Vijay Kilari wrote: > >> LPI property table is accessed in interrupt context. So interrupts >> are disabled. > > Interrupts a reenabled while handling an interrupt, so a higher priority > interrupt can still

Re: [Xen-devel] [PATCH V3 1/2] xen, libxc: Fine grained control of REP emulation optimizations

2015-09-28 Thread Andrew Cooper
On 28/09/15 11:16, Razvan Cojocaru wrote: > Previously, if vm_event emulation support was enabled, then REP > optimizations were disabled when emulating REP-compatible > instructions. This patch allows fine-tuning of this behaviour by > providing a dedicated libxc helper function. > > Signed-off-by

[Xen-devel] [PATCH] x86/xen: Do not clip xen_e820_map to xen_e820_map_entries when sanitizing map

2015-09-28 Thread Malcolm Crossley
Sanitizing the e820 map may produce extra E820 entries which would result in the topmost E820 entries being removed. The removed entries would typically include the top E820 usable RAM region and thus result in the domain having signicantly less RAM available to it. Fix by allowing sanitize_e820_m

Re: [Xen-devel] [OSSTEST PATCH v14 PART 2 10-26/26] Nested HVM testing

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 20:15 +0100, Ian Jackson wrote: > Ian Campbell: You probably want to defer re-reviewing this until > Robert reports back. I really ought to have started by reading this intro mail. Oh well. ___ Xen-devel mailing list Xen-devel@li

[Xen-devel] [qemu-upstream-4.4-testing baseline-only test] 38084: tolerable FAIL

2015-09-28 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38084 qemu-upstream-4.4-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38084/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-libvirt 12 migrate-support-chec

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

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 15:51 +0100, Julien Grall wrote: > Xen is currently directly storing the value of register GICD_IPRIORITYR "of the GICD_... register" > in the rank. This makes emulation of the register access very simple > but makes the code to get the priority for a given IRQ more complex.

[Xen-devel] Fwd: Contributing to Xen for Outreachy 2015

2015-09-28 Thread Shivangi Dhir
Hi, I am an Outreachy 2015 Applicant. I have a background in C, C++ and shell scripting. I am also familiar with concepts of Operating Systems. I would like to contribute to the Xen project and it would be very helpful if I could get some help getting started. I have gone through the beginner's

Re: [Xen-devel] [PATCH 00/13] Add VMX TSC scaling support

2015-09-28 Thread Andrew Cooper
On 28/09/15 08:13, Haozhong Zhang wrote: > This patchset adds support for VMX TSC scaling feature which is > available on Intel Skylake CPU. The specification of VMX TSC scaling > can be found at > http://www.intel.com/content/www/us/en/processors/timestamp-counter-scaling-virtualization-white-pape

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

2015-09-28 Thread Ian Campbell
On Fri, 2015-09-25 at 15:51 +0100, Julien Grall wrote: > rank = vgic_rank_offset(v, 8, reg - GICD_IPRIORITYR, DABT_WORD); > -if ( rank == NULL ) goto write_ignore; > +if ( rank == NULL) goto write_ignore; Accidental change I think. __

Re: [Xen-devel] [PATCH v6 22/29] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-09-28 Thread Jan Beulich
>>> On 28.09.15 at 12:35, wrote: > El 21/09/15 a les 16.47, Jan Beulich ha escrit: > On 04.09.15 at 14:09, wrote: >>> --- a/xen/include/public/elfnote.h >>> +++ b/xen/include/public/elfnote.h >>> @@ -200,9 +200,18 @@ >>> #define XEN_ELFNOTE_SUPPORTED_FEATURES 17 >>> >>> /* >>> + * Physica

Re: [Xen-devel] [PATCH v6 22/29] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-09-28 Thread Andrew Cooper
On 28/09/15 11:56, Jan Beulich wrote: On 28.09.15 at 12:35, wrote: >> El 21/09/15 a les 16.47, Jan Beulich ha escrit: >> On 04.09.15 at 14:09, wrote: --- a/xen/include/public/elfnote.h +++ b/xen/include/public/elfnote.h @@ -200,9 +200,18 @@ #define XEN_ELFNOTE_SUPPOR

Re: [Xen-devel] [PATCH v7 21/28] xen/arm: ITS: Add GICR register emulation

2015-09-28 Thread Julien Grall
On 28/09/15 11:37, Vijay Kilari wrote: > On Mon, Sep 28, 2015 at 3:23 PM, Ian Campbell wrote: >> On Sat, 2015-09-26 at 21:38 +0530, Vijay Kilari wrote: >> >>> LPI property table is accessed in interrupt context. So interrupts >>> are disabled. >> >> Interrupts a reenabled while handling an interr

Re: [Xen-devel] unknown gpa read address error for GICv3 re-distributor register access.

2015-09-28 Thread Julien Grall
On 28/09/15 11:24, Shameerali Kolothum Thodi wrote: >>> I am working on enabling Xen on our HIPO5 >>> board(http://lists.xenproject.org/archives/html/xen-users/2015- >> 07/msg0 >>> 0090.html) >>> >>> Since the board has got GIC/ITS, tried this ITS patch series >> (https://github.com/vijaykilari/it

Re: [Xen-devel] unknown gpa read address error for GICv3 re-distributor register access.

2015-09-28 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Julien Grall [mailto:julien.gr...@citrix.com] > Sent: 28 September 2015 12:11 > To: Shameerali Kolothum Thodi; xen-de...@lists.xenproject.org > Cc: Ian Campbell; Vijay Kilari > Subject: Re: unknown gpa read address error for GICv3 re-distributor > register acc

Re: [Xen-devel] [PATCH 0/3] x86: further P2M adjustments

2015-09-28 Thread Jan Beulich
>>> On 21.09.15 at 15:57, wrote: > 1: p2m: tighten conditions of IOMMU mapping updates > 2: p2m-pt: use pre-calculated IOMMU flags > 3: p2m-ept: adjust some types in ept_set_entry() > > Signed-off-by: Jan Beulich George, any chance I could get an ack or otherwise on this series? Despite the op

Re: [Xen-devel] Fwd: Contributing to Xen for Outreachy 2015

2015-09-28 Thread Julien Grall
On 28/09/15 11:50, Shivangi Dhir wrote: > Hi, Hello, > I am an Outreachy 2015 Applicant. I have a background in C, C++ and > shell scripting. I am also familiar with concepts of Operating Systems. > > I would like to contribute to the Xen project and it would be very > helpful if I could get som

Re: [Xen-devel] [PATCH 13/13] tools/libxl: Add 'vtsc_khz' option to set guest TSC rate

2015-09-28 Thread Julien Grall
Hi, On 28/09/15 08:13, Haozhong Zhang wrote: > This patch adds an option 'vtsc_khz' to allow users to set vcpu's TSC > rate in KHz. In the case that tsc_mode = 'default', the default value of > 'vtsc_khz' option is the host TSC rate which is used when 'vtsc_khz' > option is set to 0 or does not ap

[Xen-devel] [PATCH for Xen 4.6 2/5] tools/libxl: fix socket display error for CMT

2015-09-28 Thread Chao Peng
When displaying the CMT information for all the sockets, we assume socket number is continuous. This is not true in the hotplug case. For instance, when the 3rd socket is plugged out on a 4-socket system, the available sockets numbers are 1,2,4 but current we will display the CMT information for so

[Xen-devel] [PATCH for Xen 4.6 1/5] tools/libxl: introduce libxl_socket_bitmap_fill

2015-09-28 Thread Chao Peng
It sets the bit on the given bitmap if the corresponding socket is available and clears the bit when the corresponding socket is not available. Signed-off-by: Chao Peng --- tools/libxl/libxl.h | 7 --- tools/libxl/libxl_utils.c | 21 + tools/libxl/libxl_utils.h |

[Xen-devel] [PATCH for Xen 4.6 0/5] Several PSR fixes in libxl

2015-09-28 Thread Chao Peng
The patch basically contains several PSR fixes in libxl. patch1-3: fix the socket display error in certain hotplug case. patch4: fix a minor range check. patch5: improve the PSR document. Detailed problem and fix please see commit message. Chao Peng (5): tools/libxl: introduce libxl_socket_

[Xen-devel] [PATCH for Xen 4.6 5/5] docs: make xl-psr.markdown more precise

2015-09-28 Thread Chao Peng
Make the chapter name and reference url more precise. The chapter number is dropped as it can be confusing when it gets changed in the referred document. Signed-off-by: Chao Peng --- docs/misc/xl-psr.markdown | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/misc/x

[Xen-devel] [PATCH for Xen 4.6 3/5] tools/libxl: return socket id from libxl_psr_cat_get_l3_info

2015-09-28 Thread Chao Peng
The entries returned from libxl_psr_cat_get_l3_info are assumed to be socket-continuous. But this is not true in the hotplug case. This patch gets the socket bitmap for all the sockets on the system first and stores the socket id in the structure libxl_psr_cat_info in libxl_psr_cat_get_l3_info. Th

Re: [Xen-devel] [PATCH V3 2/2] xen: Introduce VM_EVENT_FLAG_SET_REGISTERS

2015-09-28 Thread Razvan Cojocaru
On 09/28/2015 01:26 PM, Andrew Cooper wrote: > On 28/09/15 11:16, Razvan Cojocaru wrote: >> diff --git a/xen/include/public/vm_event.h b/xen/include/public/vm_event.h >> index ff2f217..3e4efad 100644 >> --- a/xen/include/public/vm_event.h >> +++ b/xen/include/public/vm_event.h >> @@ -89,6 +89,12 @@

Re: [Xen-devel] [PATCH 13/13] tools/libxl: Add 'vtsc_khz' option to set guest TSC rate

2015-09-28 Thread Haozhong Zhang
Hi Julien, Thank you for the comments! On Mon, Sep 28, 2015 at 12:47:24PM +0100, Julien Grall wrote: > Hi, > > On 28/09/15 08:13, Haozhong Zhang wrote: > > This patch adds an option 'vtsc_khz' to allow users to set vcpu's TSC > > rate in KHz. In the case that tsc_mode = 'default', the default va

[Xen-devel] [qemu-upstream-4.4-testing test] 62400: regressions - FAIL

2015-09-28 Thread osstest service owner
flight 62400 qemu-upstream-4.4-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/62400/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-vhd9 debian-di-install fail REGR. vs. 60565 test-am

[Xen-devel] [PATCHv2 for-4.6] p2m/ept: Work around hardware errata setting A bit

2015-09-28 Thread Ross Lagerwall
Since commit 191b3f3344ee ("p2m/ept: enable PML in p2m-ept for log-dirty"), the A and D bits of EPT paging entries are set unconditionally, regardless of whether PML is enabled or not. This causes a regression in Xen 4.6 on some processors due to Intel Errata AVR41 -- HVM guests get severe memory c

Re: [Xen-devel] [PATCHv2 for-4.6] p2m/ept: Work around hardware errata setting A bit

2015-09-28 Thread Tim Deegan
Hi, At 13:39 +0100 on 28 Sep (1443447574), Ross Lagerwall wrote: > Since commit 191b3f3344ee ("p2m/ept: enable PML in p2m-ept for > log-dirty"), the A and D bits of EPT paging entries are set > unconditionally, regardless of whether PML is enabled or not. This > causes a regression in Xen 4.6 on s

  1   2   3   >