[Xen-devel] [PATCH v2 0/2] Remove PAGE_SIZE from public headers

2016-10-19 Thread stefano
Reference to PAGE_SIZE slipped in to two public header files. QEMU build on ARM64 is broken by this. PAGE_SIZE should not be used because it could be undefined or it could be defined differently on different operating systems. Stefano Stabellini (2): usbif.h: replace PAGE_SIZE with

Re: [Xen-devel] [PATCH v2] xen/arm64: correctly emulate the {w, x}zr registers

2016-03-24 Thread Stefano Stabellini
On Wed, 23 Mar 2016, Julien Grall wrote: > Hi Stefano, > > On 22/02/16 17:38, Stefano Stabellini wrote: > > On Fri, 15 Jan 2016, Ian Campbell wrote: > > > > I read the patch and looks good to me. You can add my > > > > Reviewed-by: Stefano Stabellini >

Re: [Xen-devel] [PATCH v2] arm: Fix asynchronous aborts (SError exceptions) due to bogus PTEs

2016-03-24 Thread Stefano Stabellini
On Tue, 22 Mar 2016, Shanker Donthineni wrote: > On 03/22/2016 05:21 PM, Julien Grall wrote: > > (CC some ARM folks) > > > > On 21/03/2016 23:18, Shanker Donthineni wrote: > >> Hi Julien, > > > > Hello Shanker, > > > > Sorry for the late answer. > > > >> Do you have any other comments to be address

Re: [Xen-devel] [PATCH v6 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-03-24 Thread Stefano Stabellini
> Changes since v2: > * Use 0 to check if it should ignore the UART > * Fix the use of page_to_xen_pfn > * Factor ACPI and DT parts in xen_guest_init > * Check "uefi" node by full path > * Fix the statement of Documentation/devicetree/bindings/arm/xen.txt > > Chan

Re: [Xen-devel] [PATCH v5 19/22] hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-03-24 Thread Stefano Stabellini
; > Excellent. That is what I wanted to know. It would be good to make > sure that is mentioned in the header file. > > > > > AFAIK, there is no specific semantics. Stefano, can you confirm it? Yes, that's right. > Because on x86 the vector callback bypasses the

Re: [Xen-devel] [PATCH v6 02/22] arm/acpi: Add a helper function to get the acpi table offset

2016-03-24 Thread Stefano Stabellini
On Thu, 17 Mar 2016, Shannon Zhao wrote: > From: Shannon Zhao > > These tables are aligned with 64bit. > > Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini > xen/arch/arm/acpi/lib.c| 15 +++ > xen/include/asm-arm/acpi.h | 2 ++ > 2 file

Re: [Xen-devel] [PATCH v6 01/22] arm/acpi: Estimate memory required for acpi/efi tables

2016-03-24 Thread Stefano Stabellini
On Thu, 17 Mar 2016, Shannon Zhao wrote: > From: Shannon Zhao > > Estimate the memory required for loading acpi/efi tables in Dom0. Make > the length of each table aligned with 64bit. Alloc the pages to store > the new created EFI and ACPI tables and free these pages when > destroying domain. >

Re: [Xen-devel] [PATCH v6 12/22] arm/acpi: Prepare EFI memory descriptor for Dom0

2016-03-24 Thread Stefano Stabellini
On Thu, 17 Mar 2016, Shannon Zhao wrote: > From: Shannon Zhao > > Create a few EFI memory descriptors to tell Dom0 the RAM region > information, ACPI table regions and EFI tables reserved resions. > > Signed-off-by: Parth Dixit > Signed-off-by: Shannon Zhao Reviewed-b

Re: [Xen-devel] [PATCH v6 16/22] arm/acpi: Configure SPI interrupt type and route to Dom0 dynamically

2016-03-24 Thread Stefano Stabellini
SPI > and Dom0. > > Signed-off-by: Parth Dixit > Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini > v6: coding style > --- > xen/arch/arm/vgic.c | 32 > 1 file changed, 32 insertions(+) > > diff --git a/xen/arch/arm/vgic.c b

Re: [Xen-devel] [PATCH v6 17/22] arm/gic: Add a new callback to deny Dom0 access to GIC regions

2016-03-24 Thread Stefano Stabellini
On Tue, 22 Mar 2016, Julien Grall wrote: > Hi Shannon, > > On 17/03/16 09:41, Shannon Zhao wrote: > > From: Shannon Zhao > > > > Add a new member in gic_hw_operations which is used to deny Dom0 access > > to GIC regions. > > > > Signed-off-by: Shannon Zhao > > --- > > v6: use SZ_64K for GICv3

Re: [Xen-devel] [PATCH v8 01/17] Xen: ACPI: Hide UART used by Xen

2016-03-26 Thread Stefano Stabellini
On Fri, 25 Mar 2016, Bjorn Helgaas wrote: > On Fri, Mar 25, 2016 at 04:05:49PM +0800, Shannon Zhao wrote: > > From: Shannon Zhao > > > > ACPI 6.0 introduces a new table STAO to list the devices which are used > > by Xen and can't be used by Dom0. On Xen virtual platforms, the physical > > UART is

Re: [Xen-devel] [PATCH v7 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-03-26 Thread Stefano Stabellini
Will, Catalin, are you OK with this patch? Thanks, Stefano On Thu, 24 Mar 2016, Shannon Zhao wrote: > Move xen_early_init() before efi_init(), then when calling efi_init() > could initialize Xen specific UEFI. > > Check if it runs on Xen hypervisor through the flat dts. >

Re: [Xen-devel] [PATCH v7 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-03-26 Thread Stefano Stabellini
Will, Catalin, are you OK with this change? The series is almost ready to go in, I would like to tie up the loose ends. Thanks, Stefano On Thu, 24 Mar 2016, Shannon Zhao wrote: > When it's a Xen domain0 booting with ACPI, it will supply a /chosen and > a /hypervisor node in DT. So

Re: [Xen-devel] [PATCH v7 01/22] arm/acpi: Estimate memory required for acpi/efi tables

2016-03-26 Thread Stefano Stabellini
ed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini > v7: address several comments from Julien > --- > xen/arch/arm/domain.c | 4 ++ > xen/arch/arm/domain_build.c | 103 > +++- > xen/arch/arm/efi/Makefile | 1 +

Re: [Xen-devel] [PATCH v7 17/22] arm/gic: Add a new callback to deny Dom0 access to GIC regions

2016-03-26 Thread Stefano Stabellini
On Fri, 25 Mar 2016, Shannon Zhao wrote: > Add a new member in gic_hw_operations which is used to deny Dom0 access > to GIC regions. > > Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini > v7: move them out of CONFIG_ACPI > --- > xen/arch/

Re: [Xen-devel] [PATCH v8 01/17] Xen: ACPI: Hide UART used by Xen

2016-03-26 Thread Stefano Stabellini
On Fri, 25 Mar 2016, Rafael J. Wysocki wrote: > On Friday, March 25, 2016 04:05:49 PM Shannon Zhao wrote: > > From: Shannon Zhao > > > > ACPI 6.0 introduces a new table STAO to list the devices which are used > > by Xen and can't be used by Dom0. On Xen virtual platforms, the physical > > UART is

[Xen-devel] [PATCH] Xen on ARM and ARM64: update MAINTAINERS info

2016-03-29 Thread Stefano Stabellini
Not my full time job anymore, but still maintaining it. Signed-off-by: Stefano Stabellini diff --git a/MAINTAINERS b/MAINTAINERS index 32bafda..049aa1d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12193,16 +12193,16 @@ F:include/xen/ F: include/uapi/xen/ XEN HYPERVISOR ARM -M

[Xen-devel] [PATCH] Xen: update MAINTAINERS info

2016-03-29 Thread Stefano Stabellini
Add Anthony Perard as Xen co-maintainer. Update my email address. Signed-off-by: Stefano Stabellini Acked-by: Anthony Perard diff --git a/MAINTAINERS b/MAINTAINERS index afbe845..66abde8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -278,7 +278,8 @@ Guest CPU Cores (Xen

[Xen-devel] [PATCH] update MAINTAINERS info

2016-03-29 Thread Stefano Stabellini
Update my email address. Remove myself from STUB DOMAINS, MINI-OS and TOOLSTACK, where I haven't been active recently. Signed-off-by: Stefano Stabellini diff --git a/MAINTAINERS b/MAINTAINERS index 52cc538..519c703 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -125,7 +125,7 @@ F: xen/c

Re: [Xen-devel] [PATCH v7 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-03-31 Thread Stefano Stabellini
it's a Xen domain0 booting with ACPI, it will supply a /chosen > >>> > > and > >>> > > a /hypervisor node in DT. So check if it needs to enable ACPI. > >>> > > > >>> > > Signed-off-by: Shannon Zhao > &g

Re: [Xen-devel] [PATCH v7 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-03-31 Thread Stefano Stabellini
On Tue, 29 Mar 2016, Will Deacon wrote: > On Sat, Mar 26, 2016 at 12:54:09PM +0000, Stefano Stabellini wrote: > > are you OK with this patch? > > Nothing against it, but the only arm64 bit is: > > > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c &

Re: [Xen-devel] [PATCH v7 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-03-31 Thread Stefano Stabellini
On Thu, 31 Mar 2016, Mark Rutland wrote: > On Thu, Mar 31, 2016 at 01:44:08PM +0200, Ard Biesheuvel wrote: > > The heuristic is there to decide whether some DTB image contains a > > complete description of the platform, or only some data handed over by > > the bootloader. Arguably, a DT containing

Re: [Xen-devel] XEN 4.6.0 on arm64 Ubuntu Xenial 16.04: unable to start domU

2016-03-31 Thread Stefano Stabellini
ust use losetup and loop devices for guest images in VM config file and you should be fine. Otherwise build your own QEMU with Xen support. Cheers, Stefano On Wed, 30 Mar 2016, Dario Faggioli wrote: > Adding some ARM folks. > > Please, do not use HTML when posting to this mailing lis

Re: [Xen-devel] [PATCH 6/6] xentrace: ARM platform timestamp support

2016-03-31 Thread Stefano Stabellini
count for use by the trace > > buffer timestamping routines in xentrace. > > > > Signed-off-by: Benjamin Sanda > > That is missing the CC to Stefano or Julien. CC-ing them. Thanks > > xen/include/asm-arm/time.h | 13 - > > 1 file changed, 8 inse

Re: [Xen-devel] ARMv8: New board bring up hangs in kernel start?

2016-03-31 Thread Stefano Stabellini
On Wed, 23 Mar 2016, Konrad Rzeszutek Wilk wrote: > On Wed, Mar 23, 2016 at 06:24:40PM +0100, Dirk Behme wrote: > > Hi, > > Hey, > > CC-ing the ARM MAINTAINERs. > > > > > trying to bring up Xen on a new ARMv8 64-bit Cortex A57 eval board, I get > > [1] and then its hanging there. > > > > I'd g

Re: [Xen-devel] [PATCH 6/6] xentrace: ARM platform timestamp support

2016-04-01 Thread Stefano Stabellini
On Thu, 31 Mar 2016, Ben Sanda wrote: > Stefano, > > Thank you for the comments. In response: > > > Changing cycles_t to uint64_t sounds good, but why did you move > > boot_count here from below? > > I had to move it up so it would be defined for use in t

Re: [Xen-devel] [PATCH] xen: write information about supported backends

2016-04-01 Thread Stefano Stabellini
On Wed, 30 Mar 2016, Juergen Gross wrote: > Add a Xenstore directory for each supported pv backend. This will allow > Xen tools to decide which backend type to use in case there are > multiple possibilities. > > The information is added under > /local/domain//device-model//backends > before the "r

Re: [Xen-devel] [PATCH] kernel-parameters: document earlycon=xenboot

2016-04-05 Thread Stefano Stabellini
config? Does Xen allow DomU debug output via HYPERVISOR_console_io in your config? > > I can investigate further, but hopefully Stefano can chime in more > > definitively on what is supported. > > > > I used "earlycon=xenboot console=hvc0" with success for dom0 on

Re: [Xen-devel] [PATCH] xen: write information about supported backends

2016-04-06 Thread Stefano Stabellini
On Mon, 4 Apr 2016, Juergen Gross wrote: > On 01/04/16 16:56, Stefano Stabellini wrote: > > On Wed, 30 Mar 2016, Juergen Gross wrote: > >> Add a Xenstore directory for each supported pv backend. This will allow > >> Xen tools to decide which backend type to use in c

Re: [Xen-devel] [PATCH] xen: Add comment for missing FROZEN notifier transitions

2016-04-06 Thread Stefano Stabellini
On Tue, 5 Apr 2016, Juergen Gross wrote: > On 04/04/16 18:48, Boris Ostrovsky wrote: > > On 04/04/2016 12:30 PM, David Vrabel wrote: > >> On 04/04/16 17:21, Julien Grall wrote: > >>> (CC Stefano new e-mail address) > >>> > >>> Hello Anna-Maria

Re: [Xen-devel] [PATCH] xen: Add comment for missing FROZEN notifier transitions

2016-04-06 Thread Stefano Stabellini
get not confused why > > CPU_TASKS_FROZEN masked transitions are not considered. > > > > Cc: David Vrabel > > Cc: Stefano Stabellini > > Cc: xen-de...@lists.xenproject.org > > Signed-off-by: Anna-Maria Gleixner > > --- > > arch/arm/xen/enlighten

Re: [Xen-devel] [PATCH v8 00/28] Add ITS support

2016-04-09 Thread Stefano Stabellini
Sounds good. Thank you. Cheers, Stefano On Fri, 8 Apr 2016, Steve Capper wrote: > Hello, > We are going to re-examine the design document behind GICv3 ITS within > ARM to see if any simplifications can be made. This should, in turn, > help us simplify this series somewhat. >

Re: [Xen-devel] [PATCH 2/6] ARM: xen: Register with kernel restart handler

2016-04-09 Thread Stefano Stabellini
On Fri, 8 Apr 2016, Guenter Roeck wrote: > Register with kernel restart handler instead of setting arm_pm_restart > directly. > > Select a high priority of 192 to ensure that default restart handlers > are replaced if Xen is running. > > Signed-off-by: Guenter Roeck

Re: [Xen-devel] [PATCH 2/6] ARM: xen: Register with kernel restart handler

2016-04-09 Thread Stefano Stabellini
On Sat, 9 Apr 2016, Stefano Stabellini wrote: > On Fri, 8 Apr 2016, Guenter Roeck wrote: > > Register with kernel restart handler instead of setting arm_pm_restart > > directly. > > > > Select a high priority of 192 to ensure that default restart handlers > &g

Re: [Xen-devel] [RFC PATCH v6 00/28] libxl: Deprivilege qemu

2016-04-10 Thread Stefano Stabellini
I take that this series is going to miss 4.7 at this stage, right? On Tue, 22 Dec 2015, Ian Jackson wrote: > This is a new version of Stefano Stabellini's series > [PATCH v5 0/6] libxl: xs_restrict QEMU > > I took Stefano's code as a spec for how to interact with qemu, a

Re: [Xen-devel] [PATCH 28/28] libxl: xsrestrict QEMU

2016-04-10 Thread Stefano Stabellini
On Tue, 22 Dec 2015, Ian Jackson wrote: > If QEMU supports xsrestrict, pass xsrestrict=on to it (by default). > > XXX We need to do this only if xenstored supports it, and AFAICT there > is not a particularly easy way to test this. Should we open a new > test xenstore connection to query this inf

Re: [Xen-devel] [PATCH] docs: add misc/qemu-backends.txt

2016-04-10 Thread Stefano Stabellini
On Thu, 7 Apr 2016, Juergen Gross wrote: > Document the interface between qemu and libxl regarding backends > supported by qemu. > > Signed-off-by: Juergen Gross > --- > docs/misc/qemu-backends.txt | 19 +++ > 1 file changed, 19 insertions(+) > create mode 100644 docs/misc/qemu-

Re: [Xen-devel] [for-4.7 2/5] xen/arm: acpi: The boot CPU does not always match the first entry in the MADT

2016-04-10 Thread Stefano Stabellini
On Thu, 7 Apr 2016, Julien Grall wrote: > Since the ACPI 6.0 errata document [1], the first entry in the MADT > does not have to correspond to the boot CPU. > > Introduce a new variable to know if a MADT entry matching the boot CPU > is found. Furthermore, it's not necessary to check if the MPIDR

Re: [Xen-devel] [for-4.7 3/5] xen/arm: acpi: Fix SMP support when booting with ACPI

2016-04-10 Thread Stefano Stabellini
However, this condition also means that multiple CPUs are present on the > system. So secondary will never be brought up. > > The correct way to check the validity of the boot CPU is to use the > variable bootcpu_valid. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabel

Re: [Xen-devel] [for-4.7 4/5] xen/arm: acpi: Remove uncessary check in acpi_map_gic_cpu_interface

2016-04-10 Thread Stefano Stabellini
On Thu, 7 Apr 2016, Julien Grall wrote: > This part of the code will never be executed when the entry > corresponds to the boot CPU. > > Also print an error message rather when arch_cpu_init has failed. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini &g

Re: [Xen-devel] [for-4.7 5/5] xen/arm: acpi: Print more error messages in acpi_map_gic_cpu_interface

2016-04-10 Thread Stefano Stabellini
On Thu, 7 Apr 2016, Julien Grall wrote: > It's helpful to spot any error without having to modify the hypervisor > code. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > xen/arch/arm/acpi/boot.c | 7 +++ > 1 file changed, 7 insertions(+) > &

Re: [Xen-devel] Is: ARM maintainers advice ..Was:Re: [PATCH v5 11/28] xsplice: Implement support for applying/reverting/replacing patches.

2016-04-10 Thread Stefano Stabellini
gt; > Way back .. when we spoke about the .xsplice.funcs structure > > you recommended to make the types be either uintXX specific > > or Elf types. I choose Elf types but then we realized that > > ARM32 hypervisor would be involved which of course would have > > a differ

Re: [Xen-devel] [for-4.7 v2 2/5] xen/arm: acpi: The boot CPU does not always match the first entry in the MADT

2016-04-11 Thread Stefano Stabellini
sary to check if the MPIDR is > duplicated for the boot CPU. So the rest of the function can be skipped. > > [1] 1380 Unnecessary restrictions to FW vendors in ordering of GIC structures > in MADT > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > C

Re: [Xen-devel] [for-4.7 v2 1/5] drivers/pl011: ACPI: The interrupt should always be high level triggered

2016-04-11 Thread Stefano Stabellini
o the driver should configure the interrupt as high level triggered. > > > > Signed-off-by: Julien Grall > > Shannon, Stefano, > > Please reply whether you are OK with this patch. Thanks! Reviewed-by: Stefano Stabellini > > --- > > Changes in v2: &

Re: [Xen-devel] [PATCH v2] docs: add misc/qemu-backends.txt

2016-04-11 Thread Stefano Stabellini
On Mon, 11 Apr 2016, Juergen Gross wrote: > Document the interface between qemu and libxl regarding backends > supported by qemu. > > Signed-off-by: Juergen Gross Reviewed-by: Stefano Stabellini > v2: - replace variable Xenstore path parts () with bash-like syntax > (

Re: [Xen-devel] [PATCH v2 1/3] xenfb: use the correct condition to avoid excessive looping

2016-04-12 Thread Stefano Stabellini
; > Signed-off-by: Wei Liu > Tested-by: "Hao, Xudong" > Acked-by: Anthony Perard Acked-by: Stefano Stabellini I'll add it to my queue > Cc: Stefano Stabellini > Cc: Anthony Perard > > Backport candidate to our own tree. > --- > hw/display/xenfb.c

Re: [Xen-devel] [PATCH v2 2/3] xenfb: move xen_rmb to the correct location

2016-04-12 Thread Stefano Stabellini
de is still vulnerable to > > XSA-155. There is no ACCESS_ONCE in QEMU, the closest thing to it is atomic_read. > Oops, accidentally kicked over a can of worms. Should have just sent > patch 1. :-) > > Jokes aside, more time is needed to fix this properly. So maybe we >

Re: [Xen-devel] [PATCH v2 3/3] xenfb: remove out_cons in xenfb_handle_events

2016-04-12 Thread Stefano Stabellini
ich is wrong, this looks OK. Acked-by: Stefano Stabellini > Cc: Stefano Stabellini > Cc: Anthony Perard > --- > hw/display/xenfb.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c > index 7f4fad7.

Re: [Xen-devel] [for-4.7 1/2] xen/bitops: Introduce macros to generate mask

2016-04-13 Thread Stefano Stabellini
On Wed, 13 Apr 2016, Julien Grall wrote: > The code has been imported from the header include/linux/bitops.h in > Linux v4.6-rc3. > > Signed-off-by: Julien Grall Acked-by: Stefano Stabellini > --- > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Keir Fraser > Cc: Tim

Re: [Xen-devel] [for-4.7 2/2] xen/arm: traps: Correctly interpret the content of the register HPFAR_EL2

2016-04-13 Thread Stefano Stabellini
aulting IPA from HPFAR_EL2 and > replace direct read from the register by the helper. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > Cc: ta...@tklengyel.com > > This is a bug fix for Xen 4.7 and should also be backported to Xen 4.6. > Without thi

Re: [Xen-devel] [PATCH v2 2/6] ARM: xen: Register with kernel restart handler

2016-04-15 Thread Stefano Stabellini
eviewed-by: Wolfram Sang > Reviewed-by: Stefano Stabellini > Signed-off-by: Guenter Roeck Thanks. I assume this is going to go in via Russell or Catalin's tree with the rest of your series? > v2: Rebased to v4.6-rc3, added Reviewed/by/Acked-by tags > > arch/arm/xen/enlighte

Re: [Xen-devel] HVMLite / PVHv2 - using x86 EFI boot entry

2016-04-15 Thread Stefano Stabellini
On Fri, 15 Apr 2016, Luis R. Rodriguez wrote: > On Fri, Apr 15, 2016 at 3:06 AM, Julien Grall wrote: > > On 14/04/16 21:56, Luis R. Rodriguez wrote: > >> On Thu, Apr 14, 2016 at 03:56:53PM -0400, Konrad Rzeszutek Wilk wrote: > >>> But to make that work you have to emulate EFI firmware in the > >>>

Re: [Xen-devel] [PATCH v2 2/6] ARM: xen: Register with kernel restart handler

2016-04-15 Thread Stefano Stabellini
On Fri, 15 Apr 2016, Guenter Roeck wrote: > On Fri, Apr 15, 2016 at 11:22:36AM -0700, Stefano Stabellini wrote: > > On Thu, 14 Apr 2016, Guenter Roeck wrote: > > > Register with kernel restart handler instead of setting arm_pm_restart > > > directly. > > > &g

[Xen-devel] [PATCH] xen/x86: don't lose event interrupts

2016-04-15 Thread Stefano Stabellini
. Signed-off-by: Stefano Stabellini diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index a0a4e55..6deba5b 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -290,11 +290,11 @@ static int xen_vcpuop_set_next_event(unsigned long delta, WARN_ON(!clockevent_state_oneshot(evt

Re: [Xen-devel] [PATCH v4 04/14] firmware/makefile: install BIOS blob ...

2016-04-19 Thread Stefano Stabellini
On Mon, 18 Apr 2016, Doug Goldstein wrote: > On 3/14/16 5:55 PM, Anthony PERARD wrote: > > ... into the firmware directory, along with hvmloader. > > > > Signed-off-by: Anthony PERARD > > --- > > Change in V4: > > - remove install of acpi dsdt table > > > > Change in V3: > > - do not check if RO

Re: [Xen-devel] [PATCH v11 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-20 Thread Stefano Stabellini
Hello Mark, do you think that this patch addresses your previous comments (http://marc.info/?l=devicetree&m=145926913008544&w=2) appropriately? Thanks, Stefano On Thu, 7 Apr 2016, Shannon Zhao wrote: > From: Shannon Zhao > > When it's a Xen domain0 booting with ACPI, it

Re: [Xen-devel] [PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-20 Thread Stefano Stabellini
On Mon, 18 Apr 2016, Rafael J. Wysocki wrote: > On Thu, Apr 7, 2016 at 2:03 PM, Shannon Zhao wrote: > > From: Shannon Zhao > > > > ACPI 6.0 introduces a new table STAO to list the devices which are used > > by Xen and can't be used by Dom0. On Xen virtual platforms, the physical > > UART is used

[Xen-devel] [PULL for-2.6 0/1] tags/xen-2016-04-20

2016-04-20 Thread Stefano Stabellini
The following changes since commit 42bb626f7ebc9197d2943b897a99e127315275ab: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2016-04-12 09:34:52 +0100) are available in the git repository at: git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/xe

[Xen-devel] [PULL for-2.6 1/1] xenfb: use the correct condition to avoid excessive looping

2016-04-20 Thread Stefano Stabellini
;Hao, Xudong" Acked-by: Anthony Perard Signed-off-by: Stefano Stabellini --- hw/display/xenfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 40b096a..9866dfd 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -7

[Xen-devel] [PATCH] xen/x86: actually allocate legacy interrupts on PV guests

2016-04-20 Thread Stefano Stabellini
b4ff8389ed14 is incomplete: relies on nr_legacy_irqs() to get the number of legacy interrupts when actually nr_legacy_irqs() returns 0 after probe_8259A(). Use NR_IRQS_LEGACY instead. Signed-off-by: Stefano Stabellini diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index beac4df..349b8ce

Re: [Xen-devel] [PATCH] committers to be REST maintainers

2016-04-21 Thread Stefano Stabellini
On Thu, 21 Apr 2016, Jan Beulich wrote: > As proposed on the hackathon. > > Signed-off-by: Jan Beulich > Acked-by: Ian Jackson Acked-by: Stefano Stabellini > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -437,10 +437,15 @@ F: xen/xsm/ > F: docs/misc/xsm-flask.

Re: [Xen-devel] [PATCH] xen/x86: actually allocate legacy interrupts on PV guests

2016-04-21 Thread Stefano Stabellini
On Thu, 21 Apr 2016, Juergen Gross wrote: > On 20/04/16 15:15, Stefano Stabellini wrote: > > b4ff8389ed14 is incomplete: relies on nr_legacy_irqs() to get the number > > of legacy interrupts when actually nr_legacy_irqs() returns 0 after > > probe_8259A(). Use NR_IRQS_LEGAC

[Xen-devel] [PATCH] xen/time: fix system_time for vtsc=1 PV guests

2016-04-21 Thread Stefano Stabellini
c_scale(NOW() - vtsc_offset) vcpu_time_info.tsc_timestamp = 0 vcpu_time_info.system_time = vtsc_offset The pvclock expression evaluates to NOW(), which is what we want. Signed-off-by: Stefano Stabellini diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 687e39b..27b0e5c 100644 ---

[Xen-devel] [PATCH] xen/x86: don't lose event interrupts

2016-04-21 Thread Stefano Stabellini
ff-by: Stefano Stabellini diff --git a/sys/dev/xen/timer/timer.c b/sys/dev/xen/timer/timer.c index 53aff0a..db9b19b 100644 --- a/sys/dev/xen/timer/timer.c +++ b/sys/dev/xen/timer/timer.c @@ -267,7 +267,8 @@ xentimer_vcpu_start_timer(int vcpu, uint64_t next_time) struct vcpu_set_singleshot_

Re: [Xen-devel] [PATCH] MAINTAINERS: ARM docs to be maintained by ARM maintainers

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Jan Beulich wrote: > I've been getting increasingly annoyed by people not applying common > sense to these docs updates. > > Signed-off-by: Jan Beulich Acked-by: Stefano Stabellini > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -129,6 +129,7 @@ M:

Re: [Xen-devel] [PATCH v3 2/5] xentrace: Memory/Page Mapping support for DOMID_XEN on ARM

2016-04-22 Thread Stefano Stabellini
eturns p2m_ram_rw: The answer is that > > get_page_from_gfn() is only really used by the p2m code. For PV > > guests, it's the page type that restricts a page's type to RO or RW. > > trace.c calls share_xen_page_with_privileged_guests(), which on x86 > > calls xen/arch

Re: [Xen-devel] [PATCH] xen/time: fix system_time for vtsc=1 PV guests

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Jan Beulich wrote: > >>> On 21.04.16 at 15:29, wrote: > > --- a/xen/arch/x86/time.c > > +++ b/xen/arch/x86/time.c > > @@ -784,7 +784,7 @@ static void __update_vcpu_system_time(struct vcpu *v, > > int force) > > struct cpu_time *t; > > struct vcpu_time_info *u,

Re: [Xen-devel] [for-4.7 1/2] xen/bitops: Introduce macros to generate mask

2016-04-22 Thread Stefano Stabellini
low different way to create a mask? > > > > I dislike it, but not so much to stand in the way to get it in. I.e. I'm not > > going > > to NAK it, but I'm also not currently planning to ACK it. > > Stefano, who is now "REST maintainers", acked this

Re: [Xen-devel] [PATCH v11 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-22 Thread Stefano Stabellini
initialize runtime services. > > > > Signed-off-by: Shannon Zhao > > Reviewed-by: Stefano Stabellini > > --- > > arch/arm/include/asm/xen/xen-ops.h | 6 ++ > > arch/arm/xen/Makefile| 1 + > > arch/arm/xen/efi.c | 40 > &g

Re: [Xen-devel] [for-4.7 1/2] xen/bitops: Introduce macros to generate mask

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Julien Grall wrote: > Hi Stefano, > > On 22/04/16 12:49, Stefano Stabellini wrote: > > On Fri, 22 Apr 2016, Julien Grall wrote: > > > Hi Jan, > > > > > > On 20/04/16 17:43, Jan Beulich wrote: > > > > > > > Julie

Re: [Xen-devel] [for-4.7 v2 1/2] xen/bitops: Introduce GENMASK to generate mask

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Jan Beulich wrote: > >>> On 22.04.16 at 17:58, wrote: > > The code has been imported from the header include/linux/bitops.h in > > Linux v4.6-rc3. > > > > Signed-off-by: Julien Grall > > Acked-by: Stefano Stabellini > >

Re: [Xen-devel] [PATCH v2] xen/arm: domain_build: Add PSCI 1.0 compatibility

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Wei Liu wrote: > On Fri, Apr 22, 2016 at 04:42:21PM +0100, Julien Grall wrote: > > (CC Wei for release-ack) > > > > Hello Dirk, > > > > On 21/04/16 06:33, Dirk Behme wrote: > > >Xen needs to blacklist any PSCI node as it will be recreated for DOM0. > > >Up to now, this was do

Re: [Xen-devel] [PATCH] MAINTAINERS: ARM docs to be maintained by ARM maintainers

2016-04-22 Thread Stefano Stabellini
lien Grall > committed > > > > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -129,6 +129,7 @@ M: Stefano Stabellini > M:Julien Grall > > S:Supported > > L:xen-devel@lists.xen.org > > +F: docs/misc/arm/

Re: [Xen-devel] [PATCH v2] docs/arm64: update the documention for loading XSM support

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Wei Liu wrote: > On Fri, Apr 22, 2016 at 05:40:02PM +0100, Julien Grall wrote: > > (CC Wei for the release-ack) > > > > Hi Fu Wei, > > > > On 21/04/16 12:07, fu@linaro.org wrote: > > >From: Fu Wei > > > > > >This patch updates the documentation for allowing detection of

Re: [Xen-devel] [PATCH] xen/time: fix system_time for vtsc=1 PV guests

2016-04-22 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Jan Beulich wrote: > >>> On 22.04.16 at 12:08, wrote: > > On Fri, 22 Apr 2016, Jan Beulich wrote: > >> >>> On 21.04.16 at 15:29, wrote: > >> > --- a/xen/arch/x86/time.c > >> > +++ b/xen/arch/x86/time.c > >> > @@ -784,7 +784,7 @@ static void __update_vcpu_system_time(struct vc

Re: [Xen-devel] [PATCH] xen/arm: gicv2: Export GICv2m register frames to domain0 by device tree

2016-04-25 Thread Stefano Stabellini
Hello Wei, could you please send email replies in plain text (rather than html)? Thanks, Stefano On Mon, 25 Apr 2016, Wei Chen wrote: > Hi Julien, > > On 23 April 2016 at 02:29, Julien Grall wrote: > Hi Wei, > > On 21/04/16 09:24, Wei Chen wrote: >

Re: [Xen-devel] [PATCH v11 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-25 Thread Stefano Stabellini
On Fri, 22 Apr 2016, Mark Rutland wrote: > On Wed, Apr 20, 2016 at 10:34:41AM +0100, Stefano Stabellini wrote: > > Hello Mark, > > > > do you think that this patch addresses your previous comments > > (http://marc.info/?l=devicetree&m=145926913008544&

Re: [Xen-devel] [PATCH] xen/x86: don't lose event interrupts

2016-04-25 Thread Stefano Stabellini
On Thu, 21 Apr 2016, Juergen Gross wrote: > On 16/04/16 03:23, Stefano Stabellini wrote: > > On slow platforms with unreliable TSC, such as QEMU emulated machines, > > it is possible for the kernel to request the next event in the past. In > > that case, in the curr

Re: [Xen-devel] [for-4.7] xen/arm: Force broadcast of TLB and instruction cache maintenance instructions

2016-04-25 Thread Stefano Stabellini
On Mon, 18 Apr 2016, Julien Grall wrote: > UP guest usually uses TLB instruction to flush only on the local CPU. The > TLB flush won't be broadcasted across all the CPUs within the same > innershareable domain. > > When the vCPU is migrated between different CPUs, it may be rescheduled > to a prev

[Xen-devel] [PATCH] xen/time: fix gtime_to_gtsc for vtsc=1 PV guests

2016-04-25 Thread Stefano Stabellini
t subtracts vcpu_time_info.tsc_timestamp from rdtsc will calculate the right value. Signed-off-by: Jan Beulich Signed-off-by: Stefano Stabellini diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 687e39b..6a77a90 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -1663,7 +1663,13 @@ c

Re: [Xen-devel] [PATCH] xen/time: fix gtime_to_gtsc for vtsc=1 PV guests

2016-04-25 Thread Stefano Stabellini
xes the issue by letting gtime_to_gtsc return a negative > > integer in the form of a wrapped around unsigned integer, thus when the > > guest subtracts vcpu_time_info.tsc_timestamp from rdtsc will calculate > > the right value. > > > > Signed-off-by: Jan Beulich > >

Re: [Xen-devel] [PATCH v3] docs/arm64: update the documention for loading XSM support

2016-04-25 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Ian Jackson wrote: > Julien Grall writes ("Re: [PATCH v3] docs/arm64: update the documention for > loading XSM support"): > > Stefano has committed the previous version with some modifications. Is > > it better to read? > > IMO it is be

Re: [Xen-devel] linux-next: manual merge of the xen-tip tree with the arm64 tree

2016-04-26 Thread Stefano Stabellini
On Tue, 26 Apr 2016, Will Deacon wrote: > On Tue, Apr 26, 2016 at 03:00:41PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the xen-tip tree got a conflict in: > > > > arch/arm64/kernel/setup.c > > > > between commit: > > > > 3194ac6e66cc ("arm64: Move unflat

Re: [Xen-devel] [PATCH v3] xen: arm: doc: Add firmware requirements

2016-04-26 Thread Stefano Stabellini
ement. > > Signed-off-by: Dirk Behme Reviewed-by: Stefano Stabellini Added to me queue > docs/misc/arm/booting.txt | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt > index 9802e5e..c7c1d7e 100644 &g

Re: [Xen-devel] [for-4.7] xen/arm: Force broadcast of TLB and instruction cache maintenance instructions

2016-04-26 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Julien Grall wrote: > (CC Steve and Andre) > > Hi Stefano, > > On 25/04/16 11:45, Stefano Stabellini wrote: > > On Mon, 18 Apr 2016, Julien Grall wrote: > > > UP guest usually uses TLB instruction to flush only on the local CPU. The > &

Re: [Xen-devel] [PATCH] docs/arm64: clarify the documention for loading XSM support

2016-04-26 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Ian Jackson wrote: > From: Fu Wei > > Improve the clarity of the wording introduced in 67831c4c > "docs/arm64: update the documentation for loading XSM support" > > Signed-off-by: Ian Jackson > CC: Fu Wei > CC: Julien Grall , >

Re: [Xen-devel] [PATCH] docs/arm64: clarify the documention for loading XSM support

2016-04-26 Thread Stefano Stabellini
On Tue, 26 Apr 2016, Wei Liu wrote: > On Tue, Apr 26, 2016 at 10:47:34AM +0100, Stefano Stabellini wrote: > > On Mon, 25 Apr 2016, Ian Jackson wrote: > > > From: Fu Wei > > > > > > Improve the clarity of the wording introduced in 67831c4c > > > &quo

Re: [Xen-devel] [for-4.7 v2] xen/arm: Force broadcast of TLB and instruction cache maintenance instructions

2016-04-27 Thread Stefano Stabellini
; For now implement the easiest solution (i.e setting HCR_EL2.FB). We can > revisit it if the performance impact is too high for UP kernel. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini Added to me queue > This is a bug fix for Xen 4.7 and should be backported up to Xen 4.

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-04-29 Thread Stefano Stabellini
On Fri, 29 Apr 2016, Ingo Molnar wrote: > Also, it would be nice to have all things EFI in a single tree, the conflicts > are > going to be painful! There's very little reason not to carry this kind of > commit: > > arch/arm/xen/enlighten.c | 6 + > drivers/firmware/efi/arm-runt

Re: [Xen-devel] pvops xen_blkfront does not enforce device names

2016-04-29 Thread Stefano Stabellini
f anyone of > > them looks) deal with this when doing the transition? > > We had transition folks to use 'UUID' or volume group names in their 'root=' > entry so never had an issue with this. > > > > > [We got smacked down at some point for hav

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-04-29 Thread Stefano Stabellini
On Fri, 29 Apr 2016, Matt Fleming wrote: > On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: > > On Fri, 29 Apr 2016, Ingo Molnar wrote: > > > Also, it would be nice to have all things EFI in a single tree, the > > > conflicts are > > > going to be pai

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-04-29 Thread Stefano Stabellini
On Fri, 29 Apr 2016, Stefano Stabellini wrote: > On Fri, 29 Apr 2016, Matt Fleming wrote: > > On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: > > > On Fri, 29 Apr 2016, Ingo Molnar wrote: > > > > Also, it would be nice to have all things EFI in a single tr

Re: [Xen-devel] problem about using xl create to start a domU

2016-05-05 Thread Stefano Stabellini
CC'ing new Julien's email address. On Thu, 5 May 2016, Stefano Stabellini wrote: > It looks like something is wrong with xenstore. Is xenstored running? > Can you do xenstore-ls in dom0? > > On Thu, 5 May 2016, Shannon Zhao wrote: > > Hi, > > > > I'm

Re: [Xen-devel] problem about using xl create to start a domU

2016-05-05 Thread Stefano Stabellini
It looks like something is wrong with xenstore. Is xenstored running? Can you do xenstore-ls in dom0? On Thu, 5 May 2016, Shannon Zhao wrote: > Hi, > > I'm going to create a domU for XEN on ARM64. I'm following [1] to cross > compile the xen tools and [2] to create domU. One thing different is >

Re: [Xen-devel] [PATCH v3] xen/arm: gicv2: Export GICv2m register frames to Dom0 by device tree

2016-05-05 Thread Stefano Stabellini
r2. > > The tree is currently frozen in preparation for Xen 4.7. Nonetheless, with the > comment mentioned in [1], this patch looks good to me: > > Reviewed-by: Julien Grall > > Stefano, do you plan to carry patch for Xen 4.8? If not, I can create a > separate branch and will

Re: [Xen-devel] problem about using xl create to start a domU

2016-05-06 Thread Stefano Stabellini
On Fri, 6 May 2016, Shannon Zhao wrote: > On 2016/5/6 16:51, Julien Grall wrote: > > Hi Shannon, > > > > On 06/05/16 03:33, Shannon Zhao wrote: > >> Below is the output of xenstore-ls: > >> > >> root@genericarmv8:/home# xenstore-ls -f > >> /tool = "" > >> /tool/xenstored = "" > >> /local = "" > >>

Re: [Xen-devel] [RFC 02/16] xen/arm: Include the header asm-arm/system.h in asm-arm/page.h

2016-05-09 Thread Stefano Stabellini
f-by: Julien Grall Acked-by: Stefano Stabellini > xen/include/asm-arm/page.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h > index a94e978..05d9f82 100644 > --- a/xen/include/asm-arm/page.h > +++ b/xen/

Re: [Xen-devel] [RFC 01/16] xen/arm: Makefile: Sort the entries alphabetically

2016-05-09 Thread Stefano Stabellini
On Thu, 5 May 2016, Julien Grall wrote: > Signed-off-by: Julien Grall Acked-by: Stefano Stabellini > xen/arch/arm/Makefile | 38 -- > xen/arch/arm/arm32/Makefile | 9 - > xen/arch/arm/arm64/Makefile | 12 +---

Re: [Xen-devel] [RFC 03/16] xen/arm: Add macros to handle the MIDR

2016-05-09 Thread Stefano Stabellini
e/asm/cputype.h ^ arch/arm64 Aside from this: Acked-by: Stefano Stabellini > in Linux v4.6-rc3 > > Also remove MIDR_MASK which is unused. > > Signed-off-by: Julien Grall > --- > xen/include/asm-arm/processor.h | 35

Re: [Xen-devel] [RFC 06/16] xen/arm64: Add an helper to invalidate all instruction caches

2016-05-09 Thread Stefano Stabellini
On Thu, 5 May 2016, Julien Grall wrote: > Signed-off-by: Julien Grall Acked-by: Stefano Stabellini > xen/include/asm-arm/arm64/page.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/xen/include/asm-arm/arm64/page.h > b/xen/include/asm-arm/arm64/page

  1   2   3   4   5   6   7   8   9   10   >