[Xen-devel] [PATCH v2 13/15] xen/arm: Don't export flush_tlb_domain

2016-07-28 Thread Julien Grall
The function flush_tlb_domain is not used outside of the file where it has been declared. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Stefano's reviewed-by --- xen/arch/arm/p2m.c | 2 +- xen/include/asm-arm/flushtlb.h | 3 --- 2

[Xen-devel] [PATCH v2 14/15] xen/arm: p2m: Replace flush_tlb_domain by p2m_flush_tlb

2016-07-28 Thread Julien Grall
The function to flush the TLBs for a given p2m does not need to know about the domain. So pass directly the p2m in parameter. At the same time rename the function to p2m_flush_tlb to match the parameter change. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2:

[Xen-devel] [PATCH v2 15/15] xen/arm: p2m: Pass the p2m in parameter rather the domain when it is possible

2016-07-28 Thread Julien Grall
Some p2m functions do not care about the domain except to get the associate p2m. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Stefano's reviewed-by --- xen/arch/arm/p2m.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-)

[Xen-devel] [PATCH v2 00/15] xen/arm: P2M clean-up fixes

2016-07-28 Thread Julien Grall
Hello all, This patch series contains a bunch of clean-up and fixes for the P2M code on ARM. The major changes are: - Deduce the memory attributes from the p2m type - Switch to read-write lock to improve performance - Simplify the TLB flush for a give p2m For all the changes see in ea

[Xen-devel] [PATCH v2 10/15] xen/arm: p2m: Don't need to restore the state for an idle vCPU.

2016-07-28 Thread Julien Grall
The function p2m_restore_state could be called with an idle vCPU in arguments (when called by construct_dom0). However, we will never return to EL0/EL1 in this case, so it is not necessary to restore the p2m registers. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes

[Xen-devel] [PATCH v2 09/15] xen/arm: p2m: Move the vttbr field from arch_domain to p2m_domain

2016-07-28 Thread Julien Grall
The field vttbr holds the base address of the translation table for guest. Its value will depends on how the p2m has been initialized and will only be used by the P2M code. So move the field from arch_domain to p2m_domain. This will also ease the implementation of altp2m. Signed-off-by: Julien Gr

[Xen-devel] [PATCH v2 04/15] xen/arm: p2m: Find the memory attributes based on the p2m type

2016-07-28 Thread Julien Grall
Currently, mfn_to_p2m_entry is relying on the caller to provide the correct memory attribute and will deduce the sharability based on it. Some of the callers, such as p2m_create_table, are using same memory attribute regardless the underlying p2m type. For instance, this will lead to use change th

[Xen-devel] [PATCH v2 01/15] xen/arm: p2m: Use the typesafe MFN in mfn_to_p2m_entry

2016-07-28 Thread Julien Grall
Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Compute the mfn at every loop rather than incrementing - Add Stefano's reviewed-by --- xen/arch/arm/p2m.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xen/a

[Xen-devel] [PATCH v2 06/15] xen/arm: p2m: Introduce p2m_{read, write}_{, un}lock helpers

2016-07-28 Thread Julien Grall
Some functions in the p2m code do not require to modify the P2M code. Document it by introducing separate helpers to lock the p2m. This patch does not change the lock. This will be done in a subsequent patch. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2:

[Xen-devel] [PATCH v2 12/15] xen/arm: p2m: Inline p2m_load_VTTBR into p2m_restore_state

2016-07-28 Thread Julien Grall
p2m_restore_state is the last caller of p2m_load_VTTBR and already check if the vCPU does not belong to the idle domain. Note that it is likely possible to remove some isb in the function p2m_restore_state, however this is not the purpose of this patch. So the numerous isb have been left. Signed-

[Xen-devel] [PATCH v2 08/15] xen/arm: Don't call p2m_alloc_table from arch_domain_create

2016-07-28 Thread Julien Grall
The p2m root table does not need to be allocate separately. Also remove unnecessary fields initialization as the structure is already memset to 0 and the fields will be overridden by p2m_alloc_table. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - R

[Xen-devel] [PATCH v2 11/15] xen/arm: p2m: Rework the context switch to another VTTBR in flush_tlb_domain

2016-07-28 Thread Julien Grall
The current implementation of flush_tlb_domain is relying on the domain to have a single p2m. With the upcoming feature altp2m, a single domain may have different p2m. So we would need to switch to the correct p2m in order to flush the TLBs. Rather than checking whether the domain is not the curre

[Xen-devel] [PATCH v2 02/15] xen/arm: p2m: Use a whitelist rather than blacklist in get_page_from_gfn

2016-07-28 Thread Julien Grall
Currently, the check in get_page_from_gfn is using a blacklist. This is very fragile because we may forgot to update the check when a new p2m type is added. To avoid any possible issue, use a whitelist. All type backed by a RAM page can could potential be valid. The check is borrowed from x86. No

[Xen-devel] [PATCH v2 07/15] xen/arm: p2m: Switch the p2m lock from spinlock to rwlock

2016-07-28 Thread Julien Grall
P2M reads do not require to be serialized. This will add contention when PV drivers are using multi-queue because parallel grant map/unmaps/copies will happen on DomU's p2m. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- I have not done benchark to verify the performance, h

Re: [Xen-devel] Xen 4.7.0 boot PANIC on kernel 4.7.0-4 + UEFI ?

2016-07-28 Thread Vitaly Kuznetsov
li...@ssl-mail.com writes: > On Wed, Jul 27, 2016, at 11:36 AM, li...@ssl-mail.com wrote: >> On Wed, Jul 27, 2016, at 11:28 AM, Andrew Cooper wrote: >> > > I'm not sure if that's good enough. >> > >> > Sadly not. The debug symbols need to be specific to the exact binary >> > you booted. >> > >>

Re: [Xen-devel] [PATCH v7 11/15] hvmloader: Load OVMF from modules

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > ... and do not include the OVMF ROM into hvmloader anymore. > > Signed-off-by: Anthony PERARD > Acked-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lis

Re: [Xen-devel] [PATCH v7 07/15] hvmloader: Grab the hvm_start_info pointer

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > Signed-off-by: Anthony PERARD > Reviewed-by: Konrad Rzeszutek Wilk > Acked-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v7 10/15] hvmloader: Load SeaBIOS from hvm_start_info modules

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > ... and do not include the SeaBIOS ROM into hvmloader anymore. > > This also fix the dependency on roms.inc, hvmloader.o does not include it. > > Signed-off-by: Anthony PERARD > Acked-by: Jan Beulich Reviewed-by: Andrew Cooper

Re: [Xen-devel] [PATCH v7 09/15] hvmloader: Check modules whereabouts in perform_tests

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > As perform_tests() is going to clear memory past 4MB, we check that the > memory can be use or we skip the tests. > > Signed-off-by: Anthony PERARD This is a loosing battle of overlap checks, and they are far less useful than they used to be if they are

[Xen-devel] [xen-4.7-testing test] 99713: regressions - trouble: blocked/broken/fail/pass

2016-07-28 Thread osstest service owner
flight 99713 xen-4.7-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/99713/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-debianhvm-amd64-xsm 3 host-install(3) broken REGR. vs. 96660 test-amd6

Re: [Xen-devel] [PATCH v7 08/15] hvmloader: Locate the BIOS blob

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > @@ -293,8 +340,17 @@ int main(void) > } > > printf("Loading %s ...\n", bios->name); > -if ( bios->bios_load ) > -bios->bios_load(bios); > +bios_module = get_module_entry(hvm_start_info, "firmware"); > +if ( bios_module && bi

[Xen-devel] [PATCH v3] libxl: memory size in kb requires 64 bit variable

2016-07-28 Thread Juergen Gross
libxl_set_memory_target() and several other interface functions of libxl use a 32 bit sized parameter for a memory size value in kBytes. This limits the maximum size to be passed in such a parameter depending on signedness of the parameter to 2TB or 4TB. Correct this by using 64 bit types. Signed

Re: [Xen-devel] [PATCH v7 06/15] xen: Move the hvm_start_info C representation to the public headers

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:50, Anthony PERARD wrote: > Instead of having several representation of hvm_start_info in C, define > it in public/arch-x86/hvm/start_info.h so both libxc and hvmloader can > use it. > > Also move the comment describing the binary format to be alongside the > C struct. > > Signed-off

Re: [Xen-devel] [PATCH v2] libxl: memory size in kb requires 64 bit variable

2016-07-28 Thread Dario Faggioli
On Thu, 2016-07-28 at 14:48 +0200, Juergen Gross wrote: > On 28/07/16 14:11, Dario Faggioli wrote: > >   > > > +static int libxl__memkb_32to64(libxl_ctx *ctx, int rc, > > > +   uint64_t val64, uint32_t *ptr32) > > > +{ > > > +GC_INIT(ctx); > > > + > > > +if (rc)

Re: [Xen-devel] [PATCH v2] libxl: memory size in kb requires 64 bit variable

2016-07-28 Thread Juergen Gross
On 28/07/16 14:11, Dario Faggioli wrote: > On Fri, 2016-07-22 at 08:53 +0200, Juergen Gross wrote: >> libxl_set_memory_target() and several other interface functions of >> libxl use a 32 bit sized parameter for a memory size value in kBytes. >> This limits the maximum size to be passed in such a pa

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-28 Thread Shannon Zhao
On 2016年07月28日 19:06, Julien Grall wrote: > On 26/07/16 02:17, Boris Ostrovsky wrote: >> On 07/25/2016 07:40 PM, Stefano Stabellini wrote: >>> On Mon, 25 Jul 2016, Boris Ostrovsky wrote: On 07/25/2016 06:06 PM, Stefano Stabellini wrote: > On Mon, 25 Jul 2016, George Dunlap wrote: >> On

[Xen-devel] [xen-4.5-testing test] 99712: regressions - trouble: broken/fail/pass

2016-07-28 Thread osstest service owner
flight 99712 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/99712/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 3 host-install(3) broken REGR. vs. 96516 test-amd64-amd64-

Re: [Xen-devel] [PATCH v2] libxl: memory size in kb requires 64 bit variable

2016-07-28 Thread Dario Faggioli
On Fri, 2016-07-22 at 08:53 +0200, Juergen Gross wrote: > libxl_set_memory_target() and several other interface functions of > libxl use a 32 bit sized parameter for a memory size value in kBytes. > This limits the maximum size to be passed in such a parameter > depending on signedness of the param

Re: [Xen-devel] OVMF very slow on AMD

2016-07-28 Thread Anthony PERARD
On Thu, Jul 28, 2016 at 11:54:27AM +0100, Andrew Cooper wrote: > On 28/07/16 11:43, George Dunlap wrote: > > On Thu, Jul 28, 2016 at 11:18 AM, Anthony PERARD > > wrote: > >> On Wed, Jul 27, 2016 at 03:45:23PM -0400, Boris Ostrovsky wrote: > >>> On 07/27/2016 07:35 AM, Anthony PERARD wrote: >

[Xen-devel] [xen-unstable-smoke test] 99745: regressions - FAIL

2016-07-28 Thread osstest service owner
flight 99745 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/99745/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-debianhvm-i386 12 guest-saverestore fail REGR. vs. 99707 Tests whi

Re: [Xen-devel] [PATCH v4] xen/arm: Add a clock property

2016-07-28 Thread Julien Grall
Hi Dirk, On 27/07/16 06:05, Dirk Behme wrote: Hi Michael, Stefano and Julien, On 22.07.2016 03:16, Stefano Stabellini wrote: On Thu, 21 Jul 2016, Michael Turquette wrote: Quoting Stefano Stabellini (2016-07-14 03:38:04) On Thu, 14 Jul 2016, Dirk Behme wrote: On 13.07.2016 23:03, Michael Tur

[Xen-devel] [PATCH v7 14/15] configure: do not depend on SEABIOS_PATH or OVMF_PATH ...

2016-07-28 Thread Anthony PERARD
... to compile SeaBIOS and OVMF. Only depend on CONFIG_*. If --with-system-* configure option is used, then set *_CONFIG=n to not compile SEABIOS and OVMF. Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu --- Please, run ./autogen.sh on this patch. No change

[Xen-devel] [PATCH v7 13/15] hvmloader: Always build-in SeaBIOS and OVMF loader

2016-07-28 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- tools/firmware/hvmloader/Makefile| 11 +-- tools/firmware/hvmloader/hvmloader.c | 4 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile ind

[Xen-devel] [PATCH v7 11/15] hvmloader: Load OVMF from modules

2016-07-28 Thread Anthony PERARD
... and do not include the OVMF ROM into hvmloader anymore. Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- Change in V5: - define OVMF_END macro - fix some cast coding style Change in V4: - check if source and dest of ovmf binary does not overlaps Change in V3: - change makefile to n

[Xen-devel] [PATCH v7 12/15] hvmloader: bios->bios_load() now needs to be defined

2016-07-28 Thread Anthony PERARD
All BIOSes but ROMBIOS needs to be loaded via modules. ROMBIOS is handled as a special case. Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- Change in V5: - rename patch, was: "hvmloader: Specific bios_load function required" No change in V4. Change in V3: - reprint Main BIOS in bi

[Xen-devel] [PATCH v7 15/15] docs/misc/hvmlite: Point to the canonical definition of hvm_start_info

2016-07-28 Thread Anthony PERARD
The C struct in the document is no more in sync with the actual definition of the PVHv2 boot start info. Signed-off-by: Anthony PERARD --- CC: Roger Pau Monne New patch in V7. --- docs/misc/hvmlite.markdown | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git

[Xen-devel] [PATCH v7 10/15] hvmloader: Load SeaBIOS from hvm_start_info modules

2016-07-28 Thread Anthony PERARD
... and do not include the SeaBIOS ROM into hvmloader anymore. This also fix the dependency on roms.inc, hvmloader.o does not include it. Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- Change in V6: acked Change in V5: - update BUG_ON in seabios_setup_e820(). Change in V4: - check

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-28 Thread Julien Grall
Hi Shannon, Sorry for the late answer. On 25/07/16 08:56, Shannon Zhao wrote: On 2016/7/20 17:32, Wei Liu wrote: On Wed, Jul 20, 2016 at 02:52:05PM +0800, Shannon Zhao wrote: On 2016/7/19 18:38, Wei Liu wrote: On Fri, Jul 15, 2016 at 05:39:32PM +0800, Shannon Zhao wrote: [...] It would

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-28 Thread Julien Grall
Hi, On 26/07/16 02:17, Boris Ostrovsky wrote: On 07/25/2016 07:40 PM, Stefano Stabellini wrote: On Mon, 25 Jul 2016, Boris Ostrovsky wrote: On 07/25/2016 06:06 PM, Stefano Stabellini wrote: On Mon, 25 Jul 2016, George Dunlap wrote: On Thu, Jul 21, 2016 at 10:15 PM, Stefano Stabellini wrote:

Re: [Xen-devel] OVMF very slow on AMD

2016-07-28 Thread Andrew Cooper
On 28/07/16 11:43, George Dunlap wrote: > On Thu, Jul 28, 2016 at 11:18 AM, Anthony PERARD > wrote: >> On Wed, Jul 27, 2016 at 03:45:23PM -0400, Boris Ostrovsky wrote: >>> On 07/27/2016 07:35 AM, Anthony PERARD wrote: On Wed, Jul 27, 2016 at 12:08:04PM +0100, Anthony PERARD wrote: > I can

[Xen-devel] [PATCH v7 01/15] libxc: Rework extra module initialisation

2016-07-28 Thread Anthony PERARD
This patch use xc_dom_alloc_segment() to allocate the memory space for the ACPI modules and the SMBIOS modules. This is to replace the arbitrary placement of 1MB (+ extra for MB alignement) after the hvmloader image. This patch can help if one add extra ACPI table and hvmloader contain OVMF (OVMF

[Xen-devel] [PATCH v7 00/15] Load BIOS via toolstack instead of been embedded in hvmloader.

2016-07-28 Thread Anthony PERARD
Hi all, Changes in V7: - There is one new patch at the end to fix the doc. - Patch 6 as been change. that's it. There is just a few missing ackes: 6 xen: Move the hvm_start_info C representation from libxc to public/xen.h 8 hvmloader: Locate the BIOS blob 9 hvmloader: Check mo

[Xen-devel] [PATCH v7 07/15] hvmloader: Grab the hvm_start_info pointer

2016-07-28 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jan Beulich --- Changes in V6: - include xen/arch-x86/hvm/start_info.h Change in V4: - remove struct hvm_info_start redefinition, as it's moved to public/xen.h in a previous patch. Change in V3: - remove cmdline pars

[Xen-devel] [PATCH v7 06/15] xen: Move the hvm_start_info C representation to the public headers

2016-07-28 Thread Anthony PERARD
Instead of having several representation of hvm_start_info in C, define it in public/arch-x86/hvm/start_info.h so both libxc and hvmloader can use it. Also move the comment describing the binary format to be alongside the C struct. Signed-off-by: Anthony PERARD --- Changes in V7: - also move th

[Xen-devel] [PATCH v7 08/15] hvmloader: Locate the BIOS blob

2016-07-28 Thread Anthony PERARD
The BIOS blob can be found an entry called "firmware" of the modlist of the hvm_start_info struct. The found BIOS blob is not loaded by this patch, but only passed as argument to bios_load() function. Signed-off-by: Anthony PERARD --- Changes in V6: - cast addresses to uintptr_t instead of uint

[Xen-devel] [PATCH v7 05/15] libxl: Load guest BIOS from file

2016-07-28 Thread Anthony PERARD
The path to the BIOS blob can be overriden by the xl's bios_path_override option, or provided by u.hvm.bios_firmware in the domain_build_info struct by other libxl user. Signed-off-by: Anthony PERARD Acked-by: Wei Liu --- Changes in V6: - use goto for error handling of libxl__load_hvm_firmware_

[Xen-devel] [PATCH v7 02/15] libxc: Prepare a start info structure for hvmloader

2016-07-28 Thread Anthony PERARD
... and load BIOS/UEFI firmware into guest memory. This adds a new firmware module, system_firmware_module. It is loaded in the guest memory and final location is provided to hvmloader via the hvm_start_info struct. This patch create the hvm_start_info struct for HVM guest that have a device mode

[Xen-devel] [PATCH v7 03/15] configure: #define SEABIOS_PATH and OVMF_PATH

2016-07-28 Thread Anthony PERARD
Those paths are to be used by libxl, in order to load the firmware in memory. If a system path is not defined via --with-system-seabios or --with-system-ovmf, then default to the Xen firmware directory. Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu --- Plea

[Xen-devel] [PATCH v7 04/15] firmware/makefile: install BIOS blob ...

2016-07-28 Thread Anthony PERARD
... into the firmware directory, along with hvmloader. Signed-off-by: Anthony PERARD Acked-by: Wei Liu --- No change in V6. - acked Change in V5: - remove use of "variable" for SEABIOS_ROM and OVMF_ROM location there are static location - install seabios as bios.bin instead of seabios.bin Ch

[Xen-devel] [PATCH v7 09/15] hvmloader: Check modules whereabouts in perform_tests

2016-07-28 Thread Anthony PERARD
As perform_tests() is going to clear memory past 4MB, we check that the memory can be use or we skip the tests. Signed-off-by: Anthony PERARD --- Changes in V6: - define and use TEST_START and PT_END. - cast addresses to uintptr_t instead of uint32_t. - use UINTPTR_MAX for upper limit checks, in

Re: [Xen-devel] OVMF very slow on AMD

2016-07-28 Thread George Dunlap
On Thu, Jul 28, 2016 at 11:18 AM, Anthony PERARD wrote: > On Wed, Jul 27, 2016 at 03:45:23PM -0400, Boris Ostrovsky wrote: >> On 07/27/2016 07:35 AM, Anthony PERARD wrote: >> > On Wed, Jul 27, 2016 at 12:08:04PM +0100, Anthony PERARD wrote: >> >> I can try to describe how OVMF is setting up the me

Re: [Xen-devel] OVMF very slow on AMD

2016-07-28 Thread Anthony PERARD
On Wed, Jul 27, 2016 at 03:45:23PM -0400, Boris Ostrovsky wrote: > On 07/27/2016 07:35 AM, Anthony PERARD wrote: > > On Wed, Jul 27, 2016 at 12:08:04PM +0100, Anthony PERARD wrote: > >> I can try to describe how OVMF is setting up the memory. > > From the start of the day: > > setup gdt > > cr0 = 0

[Xen-devel] "Ouroboros" talk at Black Hat, XSA-182

2016-07-28 Thread Ian Jackson
FYI: The Xen Project Security Team is aware of the talk scheduled at the Black Hat conference, titled "Ouroboros: Tearing Xen Hypervisor with the Snake". We have received enquiries, asking whether there is an outstanding vulnerability. Our understanding is that this talk describes the problem wh

Re: [Xen-devel] [PATCH] libxl: compilation warning fix for arm & aarch64

2016-07-28 Thread Wei Liu
On Wed, Jul 27, 2016 at 04:01:26PM -0400, Chris Patterson wrote: > From: Chris Patterson > > GCC 6 will warn on unused static const variables in c modules: > https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00847.html > > When compiling with LIBXL_HAVE_NO_SUSPEND_RESUME set (arm & aarch64), > the c

Re: [Xen-devel] [PATCH] libxl: fix double free when doing xl save

2016-07-28 Thread Wei Liu
On Thu, Jul 28, 2016 at 09:21:43AM +0200, Juergen Gross wrote: > Commit d2412fd63b14c6c21d0a3d4367afa448425dfb8a ("libxl: move common > nic stuff into one source") introduced a double free error in libxl > which occurred during "xl save". > > Correct this error. > > Signed-off-by: Juergen Gross

Re: [Xen-devel] [PATCH v3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-28 Thread David Vrabel
On 27/07/16 04:21, Bob Liu wrote: > The current VBD layer reserves buffer space for each attached device based on > three statically configured settings which are read at boot time. > * max_indirect_segs: Maximum amount of segments. > * max_ring_page_order: Maximum order of pages to be used for t

Re: [Xen-devel] [PATCH 1/3] xen-blkfront: fix places not updated after introducing 64KB page granularity

2016-07-28 Thread Bob Liu
On 07/28/2016 09:19 AM, Konrad Rzeszutek Wilk wrote: > On Tue, Jul 26, 2016 at 01:19:35PM +0800, Bob Liu wrote: >> Two places didn't get updated when 64KB page granularity was introduced, this >> patch fix them. >> >> Signed-off-by: Bob Liu >> Acked-by: Roger Pau Monné > > Could you rebase this

[Xen-devel] [PATCH 3/3] xen-blkfront: free resources if xlvbd_alloc_gendisk fails

2016-07-28 Thread Bob Liu
Current code forgets to free resources in the failure path of xlvbd_alloc_gendisk(), this patch fix it. Signed-off-by: Bob Liu --- drivers/block/xen-blkfront.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c

[Xen-devel] [PATCH v2 1/3] xen-blkfront: fix places not updated after introducing 64KB page granularity

2016-07-28 Thread Bob Liu
Two places didn't get updated when 64KB page granularity was introduced, this patch fix them. Signed-off-by: Bob Liu Acked-by: Roger Pau Monné --- drivers/block/xen-blkfront.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/xen-blkfront.c b/drivers/block

[Xen-devel] [PATCH v2 2/3] xen-blkfront: introduce blkif_set_queue_limits()

2016-07-28 Thread Bob Liu
blk_mq_update_nr_hw_queues() reset all queue limits to default which it's not as xen-blkfront expected, introducing blkif_set_queue_limits() to reset limits with initial correct values. Signed-off-by: Bob Liu Acked-by: Roger Pau Monné --- drivers/block/xen-blkfront.c | 87

[Xen-devel] [distros-debian-wheezy test] 66850: all pass

2016-07-28 Thread Platform Team regression test user
flight 66850 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/66850/ Perfect :-) All tests in this flight passed as required baseline version: flight 66624 jobs: build-amd64 pass build-armh

[Xen-devel] [linux-3.14 test] 99716: regressions - FAIL

2016-07-28 Thread osstest service owner
flight 99716 linux-3.14 real [real] http://logs.test-lab.xenproject.org/osstest/logs/99716/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 debian-hvm-install fail REGR. vs. 96226 test-

[Xen-devel] [qemu-mainline test] 99715: regressions - FAIL

2016-07-28 Thread osstest service owner
flight 99715 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/99715/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 11 guest-start fail REGR. vs. 99672 Regressions which a

Re: [Xen-devel] [PATCH v3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-28 Thread Roger Pau Monné
On Thu, Jul 28, 2016 at 07:05:05AM +0800, Bob Liu wrote: > > On 07/27/2016 10:24 PM, Roger Pau Monné wrote: > > On Wed, Jul 27, 2016 at 07:21:05PM +0800, Bob Liu wrote: > >> > >> On 07/27/2016 06:59 PM, Roger Pau Monné wrote: > >>> On Wed, Jul 27, 2016 at 11:21:25AM +0800, Bob Liu wrote: > >>> [..

[Xen-devel] [xen-unstable-smoke test] 99740: regressions - FAIL

2016-07-28 Thread osstest service owner
flight 99740 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/99740/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-debianhvm-i386 12 guest-saverestore fail REGR. vs. 99707 Tests whi

Re: [Xen-devel] [xen-unstable-smoke test] 99722: regressions - FAIL

2016-07-28 Thread Juergen Gross
On 27/07/16 22:06, Andrew Cooper wrote: > On 27/07/2016 20:51, osstest service owner wrote: >> flight 99722 xen-unstable-smoke real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/99722/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, >> including tests which co

[Xen-devel] [PATCH] libxl: fix double free when doing xl save

2016-07-28 Thread Juergen Gross
Commit d2412fd63b14c6c21d0a3d4367afa448425dfb8a ("libxl: move common nic stuff into one source") introduced a double free error in libxl which occurred during "xl save". Correct this error. Signed-off-by: Juergen Gross --- tools/libxl/libxl.c | 2 +- tools/libxl/libxl_nic.c | 8 2

<    1   2