[Xen-devel] [ovmf test] 59044: trouble: blocked/broken/fail/pass

2015-07-03 Thread osstest service owner
flight 59044 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/59044/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3864 capture-logs !broken [st=!broken!] build-i

[Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-03 Thread osstest service owner
flight 59041 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/59041/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvh-intel 11 guest-start fail REGR. vs. 58581 build-armhf-xsm

Re: [Xen-devel] [PATCH v12 2/8] xen: Add support for VMware cpuid leaves

2015-07-03 Thread Don Slutz
On 07/01/15 16:01, Konrad Rzeszutek Wilk wrote: >> diff --git a/tools/libxl/libxl_x86.c b/tools/libxl/libxl_x86.c >> index ed2bd38..651b338 100644 >> --- a/tools/libxl/libxl_x86.c >> +++ b/tools/libxl/libxl_x86.c >> @@ -5,8 +5,8 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc, >>

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

2015-07-03 Thread osstest service owner
flight 59040 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/59040/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 14 guest-localmigrate.2 fail REGR. vs. 58958

[Xen-devel] [seabios test] 59042: tolerable FAIL - PUSHED

2015-07-03 Thread osstest service owner
flight 59042 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/59042/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail never pass version targeted for testing: seabios

[Xen-devel] [linux-3.4 test] 59039: regressions - FAIL

2015-07-03 Thread osstest service owner
flight 59039 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/59039/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-win7-amd64 6 xen-boot fail REGR. vs. 30511 Tests which are failing

[Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-03 Thread Julien Grall
The commit efb6de9b4ba0092b2c55f6a52d16294a8a698edd "netfilter: bridge: forward IPv6 fragmented packets" introduced a new function br_validate_ipv6 which take a reference on the inet6 device. Although, the reference is not released at the end. This will result to the impossibility to destroy any n

Re: [Xen-devel] [PATCH v6 09/16] x86/hvm: limit reps to avoid the need to handle retry

2015-07-03 Thread Andrew Cooper
On 03/07/15 17:25, Paul Durrant wrote: > By limiting hvmemul_do_io_addr() to reps falling within the page on which > a reference has already been taken, we can guarantee that calls to > hvm_copy_to/from_guest_phys() will not hit the HVMCOPY_gfn_paged_out > or HVMCOPY_gfn_shared cases. Thus we can r

Re: [Xen-devel] [PATCH v6 02/16] x86/hvm: remove multiple open coded 'chunking' loops

2015-07-03 Thread Andrew Cooper
On 03/07/15 17:25, Paul Durrant wrote: > ...in hvmemul_read/write() > > Add hvmemul_phys_mmio_access() and hvmemul_linear_mmio_access() functions > to reduce code duplication. > > NOTE: This patch also introduces a change in 'chunking' around a page > boundary. Previously (for example) an 8 b

Re: [Xen-devel] [PATCH v3 10/13] x86/altp2m: add remaining support routines.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > Add the remaining routines required to support enabling the alternate > p2m functionality. > > Signed-off-by: Ed White Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.

Re: [Xen-devel] [PATCH] xen-netback: remove duplicated function definition

2015-07-03 Thread David Miller
From: Liang Li Date: Sat, 4 Jul 2015 03:33:00 +0800 > There are two duplicated xenvif_zerocopy_callback() definitions. > Remove one of them. > > Signed-off-by: Liang Li You really need to fix the date on your computer. If your date is in the future, as your's is, then your patch appears out-

Re: [Xen-devel] [PATCH v3 09/13] x86/altp2m: alternate p2m memory events.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > Add a flag to indicate that a memory event occurred in an alternate p2m > and a field containing the p2m index. Allow any event response to switch > to a different alternate p2m using the same flag and field. > > Modify p2m_memory_access_check() to handle altern

[Xen-devel] [PATCH v6 16/16] x86/hvm: track large memory mapped accesses by buffer offset

2015-07-03 Thread Paul Durrant
The code in hvmemul_do_io() that tracks large reads or writes, to avoid re-issue of component I/O, is defeated by accesses across a page boundary because it uses physical address. The code is also only relevant to memory mapped I/O to or from a buffer. This patch re-factors the code and moves it i

[Xen-devel] [PATCH v6 12/16] x86/hvm: remove HVMIO_dispatched I/O state

2015-07-03 Thread Paul Durrant
By removing the HVMIO_dispatched state and making all pending emulations (i.e. all those not handled by the hypervisor) use HVMIO_awating_completion, various code-paths can be simplified. The completion case for HVMIO_dispatched can also be trivally removed from hvmemul_do_io() as it was already u

[Xen-devel] [PATCH v6 10/16] x86/hvm: only call hvm_io_assist() from hvm_wait_for_io()

2015-07-03 Thread Paul Durrant
By removing the calls in hvmemul_do_io() (which is replaced by a single assignment) and hvm_complete_assist_request() (which is replaced by a call to hvm_process_portio_intercept() with a suitable set of ops) then hvm_io_assist() can be moved into hvm.c and made static (and hence be a candidate for

[Xen-devel] [PATCH v6 14/16] x86/hvm: use ioreq_t to track in-flight state

2015-07-03 Thread Paul Durrant
Use an ioreq_t rather than open coded state, size, dir and data fields in struct hvm_vcpu_io. This also allows PIO completion to be handled similarly to MMIO completion by re-issuing the handle_pio() call. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Reviewed-by: Andrew Cooper -

[Xen-devel] [PATCH v6 11/16] x86/hvm: split I/O completion handling from state model

2015-07-03 Thread Paul Durrant
The state of in-flight I/O and how its completion will be handled are logically separate and conflating the two makes the code unnecessarily confusing. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/hvm.c| 44 +

[Xen-devel] [PATCH v6 13/16] x86/hvm: remove hvm_io_state enumeration

2015-07-03 Thread Paul Durrant
Emulation request status is already covered by STATE_IOREQ_XXX values so just use those. The mapping is: HVMIO_none-> STATE_IOREQ_NONE HVMIO_awaiting_completion -> STATE_IOREQ_READY HVMIO_completed -> STATE_IORESP_READY Signed-off-by: Paul Durrant Cc: Keir Fraser Acked

[Xen-devel] [PATCH v6 15/16] x86/hvm: always re-emulate I/O from a buffer

2015-07-03 Thread Paul Durrant
If memory mapped I/O is 'chunked' then the I/O must be re-emulated, otherwise only the first chunk will be processed. This patch makes sure all I/O from a buffer is re-emulated regardless of whether it is a read or a write. Signed-off-by: Paul Durrant Cc: Keir Fraser Acked-by: Jan Beulich Revie

Re: [Xen-devel] [PATCH v3 08/13] x86/altp2m: add control of suppress_ve.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > The existing ept_set_entry() and ept_get_entry() routines are extended > to optionally set/get suppress_ve and renamed. New ept_set_entry() and > ept_get_entry() routines are provided as wrappers, where set preserves > suppress_ve for an existing entry and sets

Re: [Xen-devel] [PATCH v3 07/13] VMX: add VMFUNC leaf 0 (EPTP switching) to emulator.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > From: Ravi Sahita > > Signed-off-by: Ravi Sahita > --- > xen/arch/x86/hvm/emulate.c | 12 +++-- > xen/arch/x86/hvm/vmx/vmx.c | 30 + > xen/arch/x86/x86_emulate/x86_emulate.c | 48 > +

Re: [Xen-devel] [PATCH v3 00/32] Introduce HVM without dm and new boot ABI

2015-07-03 Thread Roger Pau Monné
El 03/07/15 a les 18.19, David Vrabel ha escrit: > On 03/07/15 12:34, Roger Pau Monne wrote: >> >> And for the FreeBSD part: > > Have you thought at all about what the Linux support for this mode would > look like? > > I started briefly looking today but don't really have time to look into > it p

Re: [Xen-devel] [PATCH v3 06/13] VMX/altp2m: add code to support EPTP switching and #VE.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > Implement and hook up the code to enable VMX support of VMFUNC and #VE. > > VMFUNC leaf 0 (EPTP switching) emulation is added in a later patch. > > Signed-off-by: Ed White Reviewed-by: Andrew Cooper (You are also going to need an ack/review from a VMX mainta

[Xen-devel] [PATCH v6 09/16] x86/hvm: limit reps to avoid the need to handle retry

2015-07-03 Thread Paul Durrant
By limiting hvmemul_do_io_addr() to reps falling within the page on which a reference has already been taken, we can guarantee that calls to hvm_copy_to/from_guest_phys() will not hit the HVMCOPY_gfn_paged_out or HVMCOPY_gfn_shared cases. Thus we can remove the retry logic (added by c/s 82ed8716b "

[Xen-devel] [PATCH v6 07/16] x86/hvm: unify dpci portio intercept with standard portio intercept

2015-07-03 Thread Paul Durrant
This patch re-works the dpci portio intercepts so that they can be unified with standard portio handling thereby removing a substantial amount of code duplication. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/hvm.c |2

[Xen-devel] [PATCH v6 04/16] x86/hvm: restrict port numbers to uint16_t and sizes to unsigned int

2015-07-03 Thread Paul Durrant
Building on the previous patch, this patch restricts portio port numbers to uint16_t in registration/relocate calls and portio_action_t. It also changes portio sizes to unsigned int which then allows the io_handler size field to reduce to an unsigned int. Signed-off-by: Paul Durrant Cc: Keir Fras

[Xen-devel] [PATCH v6 02/16] x86/hvm: remove multiple open coded 'chunking' loops

2015-07-03 Thread Paul Durrant
...in hvmemul_read/write() Add hvmemul_phys_mmio_access() and hvmemul_linear_mmio_access() functions to reduce code duplication. NOTE: This patch also introduces a change in 'chunking' around a page boundary. Previously (for example) an 8 byte access at the last byte of a page would g

[Xen-devel] [PATCH v6 00/16] x86/hvm: I/O emulation cleanup and fix

2015-07-03 Thread Paul Durrant
This patch series re-works much of the code involved in emulation of port and memory mapped I/O for HVM guests. The code has become very convoluted and, at least by inspection, certain emulations will apparently malfunction. The series is broken down into 16 patches (which are also available in m

[Xen-devel] [PATCH v6 01/16] x86/hvm: make sure emulation is retried if domain is shutting down

2015-07-03 Thread Paul Durrant
The addition of commit 2df1aa01 "x86/hvm: remove hvm_io_pending() check in hvmemul_do_io()" causes a problem in migration because I/O that was caught by the test of vcpu_start_shutdown_deferral() in hvm_send_assist_req() is now considered completed rather than requiring a retry. This patch fixes t

[Xen-devel] [PATCH v6 08/16] x86/hvm: unify stdvga mmio intercept with standard mmio intercept

2015-07-03 Thread Paul Durrant
It's clear from the following check in hvmemul_rep_movs: if ( sp2mt == p2m_mmio_direct || dp2mt == p2m_mmio_direct || (sp2mt == p2m_mmio_dm && dp2mt == p2m_mmio_dm) ) return X86EMUL_UNHANDLEABLE; that mmio <-> mmio copy is not handled. This means the code in the stdvga mmio i

[Xen-devel] [PATCH v6 06/16] x86/hvm: add length to mmio check op

2015-07-03 Thread Paul Durrant
When memory mapped I/O is range checked by internal handlers, the length of the access should be taken into account. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/intercept.c | 23 --- xen/include/asm-x86/hvm/

[Xen-devel] [PATCH v6 05/16] x86/hvm: unify internal portio and mmio intercepts

2015-07-03 Thread Paul Durrant
The implementation of mmio and portio intercepts is unnecessarily different. This leads to much code duplication. This patch unifies much of the intercept handling, leaving only distinct handlers for stdvga mmio and dpci portio. Subsequent patches will unify those handlers. Signed-off-by: Paul Dur

[Xen-devel] [PATCH v6 03/16] x86/hvm: change hvm_mmio_read_t and hvm_mmio_write_t length argument...

2015-07-03 Thread Paul Durrant
...from unsigned long to unsigned int A 64-bit length is not necessary, 32 bits is enough. Signed-off-by: Paul Durrant Cc: Keir Fraser Cc: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/hpet.c |4 ++-- xen/arch/x86/hvm/vioapic.c|4 ++--

Re: [Xen-devel] [PATCH v3 05/13] x86/altp2m: basic data structures and support routines.

2015-07-03 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > Add the basic data structures needed to support alternate p2m's and > the functions to initialise them and tear them down. > > Although Intel hardware can handle 512 EPTP's per hardware thread > concurrently, only 10 per domain are supported in this patch for >

Re: [Xen-devel] [PATCH RFC v1 00/13] Introduce HMV without dm and new boot ABI

2015-07-03 Thread Tim Deegan
At 07:52 -0400 on 24 Jun (1435132373), Boris Ostrovsky wrote: > On 06/24/2015 06:14 AM, Roger Pau Monné wrote: > > El 24/06/15 a les 12.05, Jan Beulich ha escrit: > > On 24.06.15 at 11:47, wrote: > >>> What needs to be done (ordered by priority): > >>> > >>> - Clean up the patches, this patc

Re: [Xen-devel] [PATCH v3 00/32] Introduce HVM without dm and new boot ABI

2015-07-03 Thread David Vrabel
On 03/07/15 12:34, Roger Pau Monne wrote: > > And for the FreeBSD part: Have you thought at all about what the Linux support for this mode would look like? I started briefly looking today but don't really have time to look into it properly. I do think we want to use as much of the native/HVM co

Re: [Xen-devel] [PATCH OSSTEST v4] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v4] mg-all-branch-statuses: Show how up to date each branch is"): > Should it not be: > > BRANCHES=all-branch-statuses ./cr-for-branches . -w ./cr-maintjobs '' > which ends up calling > ./cr-maintjobs all-branch-status > which in turn calls (from a "case $

Re: [Xen-devel] Xen + futexes

2015-07-03 Thread Dario Faggioli
On Fri, 2015-07-03 at 18:39 +0300, Vitaly Chernooky wrote: > On Thu, Jul 2, 2015 at 1:48 PM, Dario Faggioli > wrote: > Actually, we don't even have mutexes _within_ the hypervisor, > so I > struggle a bit to figure out how it would be useful to offer a > similar

Re: [Xen-devel] [PATCH 6/7] libxc: Fix misleading use of strncpy code in build_hvm_info()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:25 +0100, Ian Jackson wrote: > Jennifer Herbert writes ("[Xen-devel] [PATCH 6/7] libxc: Fix misleading use > of strncpy code in build_hvm_info()"): > > hvm_info->signature is not a string, but an 64 bit int, and is not > > NULL terminated. The use of strncpy to populate i

Re: [Xen-devel] [PATCH OSSTEST v4] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 15:43 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH OSSTEST v4] mg-all-branch-statuses: Show how > up to date each branch is"): > > On Fri, 2015-07-03 at 14:40 +0100, Ian Jackson wrote: > > > Do you want to provide a cron job to run this weekly, or something ?

Re: [Xen-devel] [PATCH 4/7] libxc: Prevent dereferencing NULL pointers returned from xc_dom_allocate()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:17 +0100, Ian Jackson wrote: > Jennifer Herbert writes ("[Xen-devel] [PATCH 4/7] libxc: Prevent > dereferencing NULL pointers returned from xc_dom_allocate()"): > > The return from xc_dom_allocate is not checked for a NULL value. > > This patch fixes this, causing it to re

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Andrew Cooper
On 03/07/15 16:50, Ian Campbell wrote: > On Fri, 2015-07-03 at 16:47 +0100, Ian Jackson wrote: >> Ian Campbell writes ("Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized >> variable in xc_cpuid_pv_policy()"): >>> On Fri, 2015-07-03 at 16:15 +0100, Ian Jackson wrote: Unfortunately xc_cpuid_

[Xen-devel] [PATCH v6 4/6] xen: arm: map child MMIO and IRQs to dom0 for PCI bus DT nodes.

2015-07-03 Thread Ian Campbell
This uses the dt_for_each_{irq_map,range} helpers to map the interrupt and child MMIO regions to dom0. Since PCI busses are enumerable these resources may not be otherwise described in the DT (although they can be). Although PCI is the only bus we handle this way the code should be generic enough

[Xen-devel] [PATCH v6 5/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-03 Thread Ian Campbell
This provides specific handlers for the PCI bus relating to matching and translating. It's mostly similar to the defaults but includes some additional error checks and other PCI specific bits. There are some subtle differences in how the generic code vs. the pci specific code here will handle bugg

[Xen-devel] [PATCH v6 6/6] xen: arm: consolidate mmio and irq mapping to dom0

2015-07-03 Thread Ian Campbell
The code in the callbacks for dt_for_each_irq_map and dt_for_each_range is very similar to the code in handle_device for each non-pci device. In fact the only major difference is that the irq callback needs to call irq_set_spi_type in the PCI case. Refactor into a map_dt_irq_to_domain callback whi

[Xen-devel] [PATCH v6 0/6] xen: arm: Parse PCI DT nodes' ranges and interrupt-map

2015-07-03 Thread Ian Campbell
This series adds parsing of the DT ranges and interrupt-map properties for PCI devices, these contain the MMIOs and IRQs used by children on the bus. This replaces the specific mapping stuff on xgene. This is a quick respin based on Julien's comments on v4 which were missed in v5. I only tested o

[Xen-devel] [PATCH v6 3/6] xen: arm: drop redundant extra call to vgic_reserve_virq

2015-07-03 Thread Ian Campbell
This is only needed if we are giving the IRQ to dom0 (as opposed to setting it up for passthrough due to xen,passthrough property). There is already a call to vgic_reserve_virq inside the if ( need_mapping ), so drop this one. Signed-off-by: Ian Campbell Reviewed-by: Julien Grall --- v4: New pa

[Xen-devel] [PATCH v6 1/6] xen: dt: add dt_for_each_irq_map helper

2015-07-03 Thread Ian Campbell
This function iterates over a nodes interrupt-map property and calls a callback for each interrupt. For now it only supplies the translated IRQ since my use case has no need of e.g. child unit address. These can be added as needed by any future users. This follows much the same logic as dt_irq_map

[Xen-devel] [PATCH v6 2/6] xen: dt: add dt_for_each_range helper

2015-07-03 Thread Ian Campbell
This function iterates over a node's ranges property and calls a callback for each region. For now it only supplies the MMIO range (in terms of CPU addresses, i.e. already translated). Signed-off-by: Ian Campbell Reviewed-by: Julien Grall --- v6: Treat !0 as an error not < 0 for the callback. --

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:47 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized > variable in xc_cpuid_pv_policy()"): > > On Fri, 2015-07-03 at 16:15 +0100, Ian Jackson wrote: > > > Unfortunately xc_cpuid_pv_policy doesn't return an error code. I

[Xen-devel] [PATCH 1/4] xen: sched: factor the code for taking two runq locks in a function

2015-07-03 Thread Dario Faggioli
No functional change intended. Signed-off-by: Dario Faggioli --- Cc: George Dunlap --- xen/common/schedule.c | 64 - 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index ecf1545..26e

[Xen-devel] [PATCH 3/4] xen: sched: reorganize cpu_disable_scheduler()

2015-07-03 Thread Dario Faggioli
The function is called both when we want to remove a cpu from a cpupool, and during cpu teardown, for suspend or shutdown. If, however, the boot cpu (cpu 0, most of the times) is not present in the default cpupool, during suspend or shutdown, Xen crashes like this: root@Zhaman:~# xl cpupool-cpu-

[Xen-devel] [PATCH 4/4] xen: sched/cpupool: properly update affinity when removing a cpu from a cpupool

2015-07-03 Thread Dario Faggioli
And this time, do it right. In fact, a similar change was attempted in 93be8285a79c6 ("cpupools: update domU's node-affinity on the cpupool_unassign_cpu() path"). But that was buggy, and got reverted with 8395b67ab0b8a86. However, even though reverting was the right thing to do, it remains true th

[Xen-devel] [PATCH 2/4] xen: sched: factor code that moves a vcpu to a new pcpu in a function

2015-07-03 Thread Dario Faggioli
No functional change intended. Signed-off-by: Dario Faggioli --- Cc: George Dunlap --- xen/common/schedule.c | 48 +--- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 26e8430..e83c

[Xen-devel] [PATCH 0/4] xen: sched/cpupool: more fixing of (corner?) cases

2015-07-03 Thread Dario Faggioli
More specifically, this time, of cases when we try to shut the system down or suspend it in the following situations: - when the boot cpu (i.e., most of the times, cpu 0) is not assigned to any cpupool, - when a (non default) cpupool only has one cpu (and that is not the boot cpu). In both

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()"): > I'd be ok with either leaving this as is (and tagging CID 1055188 as > intentioanl) or adding the null initialiser as you suggested in your > "However: " I would be happy with either of those.

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()"): > On Fri, 2015-07-03 at 16:15 +0100, Ian Jackson wrote: > > Unfortunately xc_cpuid_pv_policy doesn't return an error code. I > > think it needs to. So that's rather a yak. > > I was ab

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:33 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code > from xc_dom_allocate()"): > > On Fri, 2015-07-03 at 16:24 +0100, Ian Jackson wrote: > > > Jennifer Herbert writes ("[Xen-devel] [PATCH 5/7] libxc: Removing dead >

Re: [Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer dereference in stdiostream_vmessage()

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer dereference in stdiostream_vmessage()"): > On Fri, 2015-07-03 at 16:29 +0100, Ian Jackson wrote: > > I think it would be best, in this error case, to explicitly note that > > date/time conversion failed, by printing (say

Re: [Xen-devel] Xen + futexes

2015-07-03 Thread Vitaly Chernooky
On Thu, Jul 2, 2015 at 1:48 PM, Dario Faggioli wrote: > On Thu, 2015-07-02 at 12:48 +0300, Vitaly Chernooky wrote: > > Hi all! > > > Hi, > > > > I have theoretical question. > > > Great, I love theoretical stuff! :-P > > > > What do you think about porting futexes or binder to XEN? > > > Ouch...

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:15 +0100, Ian Jackson wrote: > Jennifer Herbert writes ("[Xen-devel] [PATCH 1/7] libxc: fix uninitialized > variable in xc_cpuid_pv_policy()"): > > If xc_domain_get_guest_width were to fail, guest_width is not set, and > > hence guest_64bit becomes undefined. > > Fix is to

Re: [Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer dereference in stdiostream_vmessage()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:29 +0100, Ian Jackson wrote: > Jennifer Herbert writes ("[Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer > dereference in stdiostream_vmessage()"): > > Unlikely that it may seem localtime_r could fail, which would result in a > > null pointer dereference. In this case

Re: [Xen-devel] [PATCH v3 27/32] libxc: change the position of the special pages

2015-07-03 Thread Roger Pau Monné
El 03/07/15 a les 13.35, Roger Pau Monne ha escrit: > Change the physical memory address of the special pages when there are no > emulated devices. On HVM guests the special pages have always been reserved > so that they end at the 0xff000 pfn, but there are some problems with this > approach when

Re: [Xen-devel] [PATCH] xen/arm: Remove unused field eoi_cpu in arch_irq_desc

2015-07-03 Thread Ian Campbell
On Fri, 2015-06-26 at 16:54 +0100, Ian Campbell wrote: > On Fri, 2015-06-26 at 16:43 +0100, Julien Grall wrote: > > This field have been set but not used since Xen 4.5. Slim down Xen by > > about 4K by removing it. > > > > Also fix comment coding style. > > > > Signed-off-by: Julien Grall > > --

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()"): > On Fri, 2015-07-03 at 16:24 +0100, Ian Jackson wrote: > > Jennifer Herbert writes ("[Xen-devel] [PATCH 5/7] libxc: Removing dead code > > from xc_dom_allocate()"): > > > The only place that jum

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:24 +0100, Ian Jackson wrote: > Jennifer Herbert writes ("[Xen-devel] [PATCH 5/7] libxc: Removing dead code > from xc_dom_allocate()"): > > The only place that jumps to 'err:' does so because !dom, which is > > rechecked in 'err:'. This patch simplifies, giving the same re

Re: [Xen-devel] [PATCH 3/7] libxc: Fix uninitialized valiables in xc_cpuid_hvm_policy()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 3/7] libxc: Fix uninitialized valiables in xc_cpuid_hvm_policy()"): > If xc_hvm_param_get fails, is_pae and/or is_nestedhvm are left undefined. > This patch Indicates error and defaults to false. I think my comments on xc_cpuid_pv_policy apply to this

Re: [Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer dereference in stdiostream_vmessage()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 7/7] libxc: Prevent NULL pointer dereference in stdiostream_vmessage()"): > Unlikely that it may seem localtime_r could fail, which would result in a > null pointer dereference. In this case, one can simply just skip logging the > date/time, and loggin

Re: [Xen-devel] [PATCH v4 1/6] xen: dt: add dt_for_each_irq_map helper

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:15 +0100, Julien Grall wrote: > >> The other caller of dt_irq_translate returns an error when ret is not 0. > >> I would do the same here. > > > > dt_device_get_irq just returns the value of dt_irq_translate directly. > > But the caller of dt_device_get_irq is treating e

Re: [Xen-devel] [PATCH 2/7] libxc: Use const pointer in local_file_dump()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 2/7] libxc: Use const pointer in local_file_dump()"): > By adding the const keyword, it is clearer to people and static analysis > tools that no changes to the data are to be made. Would it be wrong for a future patch to add a field to dump_args which

Re: [Xen-devel] [PATCH v5 16/16] x86/hvm: track large memory mapped accesses by buffer offset

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > The code in hvmemul_do_io() that tracks large reads or writes, to avoid > re-issue of component I/O, is defeated by accesses across a page boundary > because it uses physical address. The code is also only relevant to memory > mapped I/O to or from a buffer.

Re: [Xen-devel] [PATCH v5 15/16] x86/hvm: always re-emulate I/O from a buffer

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > If memory mapped I/O is 'chunked' then the I/O must be re-emulated, > otherwise only the first chunk will be processed. This patch makes > sure all I/O from a buffer is re-emulated regardless of whether it > is a read or a write. > > Signed-off-by: Paul Durr

Re: [Xen-devel] [PATCH 6/7] libxc: Fix misleading use of strncpy code in build_hvm_info()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 6/7] libxc: Fix misleading use of strncpy code in build_hvm_info()"): > hvm_info->signature is not a string, but an 64 bit int, and is not > NULL terminated. The use of strncpy to populate it is inappropriate and > potentially misleading. A cursory gl

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()"): > The only place that jumps to 'err:' does so because !dom, which is > rechecked in 'err:'. This patch simplifies, giving the same result. I'm not particularly convinced by this change, but mayb

Re: [Xen-devel] [PATCH 4/7] libxc: Prevent dereferencing NULL pointers returned from xc_dom_allocate()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 4/7] libxc: Prevent dereferencing NULL pointers returned from xc_dom_allocate()"): > The return from xc_dom_allocate is not checked for a NULL value. > This patch fixes this, causing it to return from the function with an error. Acked-by: Ian Jackson

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

2015-07-03 Thread osstest service owner
flight 59036 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/59036/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail REGR. vs. 589

Re: [Xen-devel] [PATCH v4 1/6] xen: dt: add dt_for_each_irq_map helper

2015-07-03 Thread Julien Grall
On 03/07/15 15:16, Ian Campbell wrote: > On Fri, 2015-06-26 at 19:47 +0200, Julien Grall wrote: > >>> +/* First get the #interrupt-cells property of the current cursor >>> + * that tells us how to interpret the passed-in intspec. If there >>> + * is none, we are nice and just walk up t

Re: [Xen-devel] [PATCH v5 14/16] x86/hvm: use ioreq_t to track in-flight state

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > Use an ioreq_t rather than open coded state, size, dir and data fields > in struct hvm_vcpu_io. This also allows PIO completion to be handled > similarly to MMIO completion by re-issuing the handle_pio() call. > > Signed-off-by: Paul Durrant > Cc: Keir Fras

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()"): > If xc_domain_get_guest_width were to fail, guest_width is not set, and > hence guest_64bit becomes undefined. > Fix is to initialise to 0, and report error if call fails. ... > diff --g

Re: [Xen-devel] [PATCH v5 13/16] x86/hvm: remove hvm_io_state enumeration

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > Emulation request status is already covered by STATE_IOREQ_XXX values so > just use those. The mapping is: > > HVMIO_none-> STATE_IOREQ_NONE > HVMIO_awaiting_completion -> STATE_IOREQ_READY > HVMIO_completed -> STATE_IORESP_READY >

Re: [Xen-devel] [PATCH 0/7] libxc: Fix a number of coverity issues.

2015-07-03 Thread Ian Jackson
Jennifer Herbert writes ("[PATCH 0/7] libxc: Fix a number of coverity issues."): > Fix a number of coverity issues in libxc. Thanks. Error handling is a pet topic of mine so I will review this series. Ian. ___ Xen-devel mailing list Xen-devel@lists.xe

Re: [Xen-devel] [PATCH v5 12/16] x86/hvm: remove HVMIO_dispatched I/O state

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > By removing the HVMIO_dispatched state and making all pending emulations > (i.e. all those not handled by the hypervisor) use HVMIO_awating_completion, > various code-paths can be simplified. > > The completion case for HVMIO_dispatched can also be trivally

Re: [Xen-devel] [PATCH v5 11/16] x86/hvm: split I/O completion handling from state model

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h > index 2ed0606..efb373f 100644 > --- a/xen/include/asm-x86/hvm/vcpu.h > +++ b/xen/include/asm-x86/hvm/vcpu.h > @@ -34,11 +34,16 @@ enum hvm_io_state { > HVMIO_none = 0, >

Re: [Xen-devel] [PATCH v5 10/16] x86/hvm: only call hvm_io_assist() from hvm_wait_for_io()

2015-07-03 Thread Andrew Cooper
On 30/06/15 14:05, Paul Durrant wrote: > diff --git a/xen/arch/x86/hvm/intercept.c b/xen/arch/x86/hvm/intercept.c > index 11b6028..f84f7c5 100644 > --- a/xen/arch/x86/hvm/intercept.c > +++ b/xen/arch/x86/hvm/intercept.c > @@ -119,8 +119,8 @@ static const struct hvm_io_ops portio_ops = { > .wri

Re: [Xen-devel] [PATCH v12 7/8] Add IOREQ_TYPE_VMWARE_PORT

2015-07-03 Thread Don Slutz
On 07/01/15 16:49, Konrad Rzeszutek Wilk wrote: On Sat, Jun 27, 2015 at 07:27:44PM -0400, Don Slutz wrote: From: Don Slutz This adds synchronization of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU. ... --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x8

Re: [Xen-devel] [PATCH 1/2] libxl: turn NUMA placement misconfigs into warnings

2015-07-03 Thread Dario Faggioli
On Fri, 2015-07-03 at 12:09 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH 1/2] libxl: turn NUMA placement misconfigs > into warnings"): > > On Wed, 2015-07-01 at 15:38 +0100, Ian Jackson wrote: > > > But, be aware that you are making a semantic change to the API which > > > cannot

[Xen-devel] [PATCH] tools: libxl: allow permissive qemu-upstream pci passthrough.

2015-07-03 Thread Ian Campbell
On Tue, 2015-06-02 at 16:47 +0100, Ian Campbell wrote: Anyone fancy (n)acking this followup to XSA-131? I think we probably want this for 4.6. > From c395657b03a1e2b7616d987e7078694874981979 Mon Sep 17 00:00:00 2001 > From: Ian Campbell > Date: Mon, 1 Jun 2015 11:32:23 +0100 > Subject: [PATCH] t

Re: [Xen-devel] [PATCH 0/7] libxc: Fix a number of coverity issues.

2015-07-03 Thread Andrew Cooper
On 03/07/15 15:42, Ian Campbell wrote: > On Fri, 2015-07-03 at 15:22 +0100, Andrew Cooper wrote: >> On 03/07/15 15:20, Ian Campbell wrote: >>> On Wed, 2015-07-01 at 17:37 +, Jennifer Herbert wrote: Fix a number of coverity issues in libxc. >>> Do you have CID numbers which should be associ

Re: [Xen-devel] [PATCH v2 1/7] libxl: get rid of the SEDF scheduler

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH v2 1/7] libxl: get rid of the SEDF scheduler"): > On Fri, 2015-07-03 at 16:33 +0200, Dario Faggioli wrote: > > I think I'd go for _REMOVED, as deprecated suggests (to me at least) > > that it's still there but nshould not be used. > > REMOVED > DEPRECATED > GONE IM

Re: [Xen-devel] [PATCH v2 1/7] libxl: get rid of the SEDF scheduler

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH v2 1/7] libxl: get rid of the SEDF scheduler"): > On Fri, 2015-07-03 at 12:24 +0200, Dario Faggioli wrote: > > @@ -5932,7 +5865,8 @@ int libxl_domain_sched_params_set(libxl_ctx *ctx, > > uint32_t domid, ... > > case LIBXL_SCHEDULER_SEDF: > > -ret=sched

Re: [Xen-devel] [PATCH v2 6/7] xl: get rid of the SEDF scheduler

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:36 +0200, Dario Faggioli wrote: > On Fri, 2015-07-03 at 15:26 +0100, Ian Campbell wrote: > > On Fri, 2015-07-03 at 12:25 +0200, Dario Faggioli wrote: > > > -=item B > > > -=item B > > > -=item B > > > -=item B > > > > Do these removals imply there are some redundant fields

Re: [Xen-devel] [PATCH OSSTEST v4] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v4] mg-all-branch-statuses: Show how up to date each branch is"): > On Fri, 2015-07-03 at 14:40 +0100, Ian Jackson wrote: > > Do you want to provide a cron job to run this weekly, or something ? > > Given the "NN days" I was thinking more like daily, other

Re: [Xen-devel] [PATCH 0/7] libxc: Fix a number of coverity issues.

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 15:22 +0100, Andrew Cooper wrote: > On 03/07/15 15:20, Ian Campbell wrote: > > On Wed, 2015-07-01 at 17:37 +, Jennifer Herbert wrote: > >> Fix a number of coverity issues in libxc. > > Do you have CID numbers which should be associated with each of these? > > > > See e.g.

Re: [Xen-devel] [PATCH v3 COLOPre 19/26] libxc/migration: Specification update for DIRTY_BITMAP records

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 15:25 +0100, Andrew Cooper wrote: > On 01/07/15 12:00, Ian Campbell wrote: > > On Wed, 2015-07-01 at 11:39 +0100, Andrew Cooper wrote: > >> On 01/07/15 11:27, Ian Campbell wrote: > >>> On Wed, 2015-07-01 at 11:16 +0100, Andrew Cooper wrote: > On 01/07/15 04:07, Yang Hongy

Re: [Xen-devel] [PATCH 6/7] libxc: Fix misleading use of strncpy code in build_hvm_info()

2015-07-03 Thread Andrew Cooper
On 01/07/15 18:37, Jennifer Herbert wrote: > hvm_info->signature is not a string, but an 64 bit int, and is not > NULL terminated. The use of strncpy to populate it is inappropriate and > potentially misleading. A cursory glance might have you thinking someone > had miscounted the length of the s

Re: [Xen-devel] [PATCH 5/7] libxc: Removing dead code from xc_dom_allocate()

2015-07-03 Thread Andrew Cooper
On 01/07/15 18:37, Jennifer Herbert wrote: > The only place that jumps to 'err:' does so because !dom, which is > rechecked in 'err:'. This patch simplifies, giving the same result. > > Signed-off-by: Jennifer Herbert Coverity-ID: 1055188 ~Andrew > --- > tools/libxc/xc_dom_core.c |7 +

Re: [Xen-devel] [PATCH v2 1/7] libxl: get rid of the SEDF scheduler

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 16:33 +0200, Dario Faggioli wrote: > On Fri, 2015-07-03 at 15:23 +0100, Ian Campbell wrote: > > On Fri, 2015-07-03 at 12:24 +0200, Dario Faggioli wrote: > > > > > @@ -5932,7 +5865,8 @@ int libxl_domain_sched_params_set(libxl_ctx *ctx, > > > uint32_t domid, > > > > > >

Re: [Xen-devel] [PATCH 1/7] libxc: fix uninitialized variable in xc_cpuid_pv_policy()

2015-07-03 Thread Andrew Cooper
On 01/07/15 18:37, Jennifer Herbert wrote: > If xc_domain_get_guest_width were to fail, guest_width is not set, and > hence guest_64bit becomes undefined. > Fix is to initialise to 0, and report error if call fails. > > Signed-off-by: Jennifer Herbert Coverity-ID: 1090350 ~Andrew > --- > tools

Re: [Xen-devel] [PATCH v3 1/6] libxl: allow /local/domain/$LIBXL_TOOLSTACK_DOMID/device-model/$DOMID to be written by $DOMID

2015-07-03 Thread Ian Campbell
On Tue, 2015-06-30 at 16:00 +0100, Stefano Stabellini wrote: > When I made this change, I gave a careful look both at the libxl side > and the QEMU side. Indeed I would appreciate a second pair of eyes on > this. These are my observations: I think the request for secondary close review and more im

Re: [Xen-devel] [PATCH v2 6/7] xl: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
On Fri, 2015-07-03 at 15:26 +0100, Ian Campbell wrote: > On Fri, 2015-07-03 at 12:25 +0200, Dario Faggioli wrote: > > -=item B > > -=item B > > -=item B > > -=item B > > Do these removals imply there are some redundant fields in > libxl_domain_sched_params now? > Yes, indeed. > If so > shall we

  1   2   3   >