On 9 January 2017 at 19:10, wrote:
> Checking PATCH 1/1: disas/cris.c: Fix Coverity warning about unchecked NULL...
> ERROR: code indent should never use tabs
> #24: FILE: disas/cris.c:2493:
> +^Iif (sregp == NULL || sregp->name == NULL)$
>
> ERROR: suspect code indent for
Hum, ... I think I have a problem.
With the default register value (that I get a reset) the CS line is
deselected when the CS is high.
So at reset I would need to set my 4 CS lines to high in order to be
able to drive them low later.
So during the "reset" I need to set my 4 CS line to 1
On 01/09/2017 12:27 PM, Halil Pasic wrote:
>>> I still do
>>> not understand why were you wrong there. In fact, I could argue that you
>>> were right, but I'm afraid the argument would be somewhat lengthy and
>>> confusing, and I'm already feeling bad about taking so much of your time
>>> with
On 01/09/2017 11:02 AM, Ashijeet Acharya wrote:
s/migratble/migratable/ in the subject
> migrate_add_blocker should rightly fail if the '--only-migratable'
> option was specified and the device in use should not be able to
> perform the action which results in an unmigratable VM.
>
> Make
Commit 4299b90 added a check which is too broad, given that the source
pitch value is not required to be initialized for solid fill operations.
This patch refines the blit_is_unsafe() check to ignore source pitch in
that case. After applying the above commit as a security patch, we
noticed the
On 01/09/2017 08:17 AM, Igor Mammedov wrote:
>> Wait. Isn't this going to inject an 'id' dict member to every use of
>> user_creatable_add_type()? But not all QAPI structs contain an id
>> member. Which means that you are now explicitly relying on the visitor
>> to silently ignore garbage in
From: "Dr. David Alan Gilbert"
The qdev id of a device can be huge if it's on the end of a chain
of bridges; in reality such chains shouldn't occur but they can
be made to by chaining PCIe bridges together.
The migration format has a number of 256 character long format
From: "Dr. David Alan Gilbert"
Check qdev's call to vmstate_register_with_alias_id; that gets
most of the common uses; there's hundreds of calls via vmstate_register
which could get fixed over time.
Signed-off-by: Dr. David Alan Gilbert
---
On Mon, Jan 09, 2017 at 07:05:59PM +, Peter Maydell wrote:
> Coverity (CID 1005689) warns that we don't check that
> spec_reg_info() returned non-NULL before dereferencing.
> Add the check, though as the comment notes this is
> a can't-really-happen case because the earlier constraint
>
From: "Dr. David Alan Gilbert"
QEMU currently asserts if you try and create a PCI device
on the end of a very long chain, because the ID string
exceeds the maximum length, and ends up aliasing.
Fail with a clean error in this common case; there's
lots of other places that
From: "Dr. David Alan Gilbert"
I'll be adding an error to it in a subsequent patch.
Signed-off-by: Dr. David Alan Gilbert
---
hw/core/qdev.c | 3 ++-
hw/intc/apic_common.c | 2 +-
include/migration/vmstate.h | 5 +++--
Le 09/01/2017 à 20:06, Peter Maydell a écrit :
On 9 January 2017 at 19:04, mar.krzeminski wrote:
W dniu 09.01.2017 o 11:46, Peter Maydell pisze:
Calling qemu_set_irq() in a device reset function is a bit
tricky, because in a full system reset the device at the other
On 01/09/17 07:00, Peter Maydell wrote:
> On 5 January 2017 at 16:41, Sean Bruno wrote:
>> Signed-off-by: Sean Bruno
>> Signed-off-by: Stacy Son
>> ---
>> bsd-user/freebsd/syscall_nr.h | 929
>>
On 22 December 2016 at 15:22, Paolo Bonzini wrote:
> When a scsi-disk object receives VERIFY command with BYTCHK bit being zero,
> scsi_block_is_passthrough returns false and finally makes req being proceeded
> by scsi_block_dma_command. Because scsi_block_dma_command has
Hi,
Your series seems to have some coding style problems. See output below for
more information:
Subject: [Qemu-devel] [PATCH] disas/cris.c: Fix Coverity warning about
unchecked NULL
Type: series
Message-id: 1483988759-14606-1-git-send-email-peter.mayd...@linaro.org
=== TEST SCRIPT BEGIN ===
On 9 January 2017 at 19:02, Richard Henderson wrote:
> [Bah. This time with actual request-pull info.]
>
> This is v6 of Jin Guojie's patch set, as tested by Aurelien Jarno,
> James Hogan, and Yun Qiang Su. Plus one more patch from me to fix
> a trival Werror in mips specific
On 9 January 2017 at 19:04, mar.krzeminski wrote:
>
>
> W dniu 09.01.2017 o 11:46, Peter Maydell pisze:
>> Calling qemu_set_irq() in a device reset function is a bit
>> tricky, because in a full system reset the device at the other
>> end might have already reset or
Coverity (CID 1005689) warns that we don't check that
spec_reg_info() returned non-NULL before dereferencing.
Add the check, though as the comment notes this is
a can't-really-happen case because the earlier constraint
matching should have ruled out the "unknown reg" case.
Signed-off-by: Peter
W dniu 09.01.2017 o 11:46, Peter Maydell pisze:
On 4 January 2017 at 22:06, Jean-Christophe Dubois wrote:
The i.MX SPI device was not de-asserting the CS line at the end of
memory access.
This triggered a SIGSEGV in Qemu when the sabrelite emulator was acessing
a SPI
[Bah. This time with actual request-pull info.]
This is v6 of Jin Guojie's patch set, as tested by Aurelien Jarno,
James Hogan, and Yun Qiang Su. Plus one more patch from me to fix
a trival Werror in mips specific code with gcc 5.3.
r~
The following changes since commit
The dp8393x has several 32-bit values which are formed by concatenating
two 16 bit device register values. Attempting to do these inline
with ((s->reg[HI] << 16) | s->reg[LO]) can result in an unintended
sign extension because "x << 16" is of type 'int' even though s->reg
is unsigned, and so if
On 01/09/2017 03:50 PM, Eric Blake wrote:
> On 07/29/2016 08:38 AM, Halil Pasic wrote:
>>
>>
>> On 07/28/2016 11:03 PM, Eric Blake wrote:
>>> On 07/28/2016 09:29 AM, Halil Pasic wrote:
>>>
> You mean va_start, not start_va. And actually, C11 is clear that errno
> is unspecified after
Stefan Hajnoczi writes:
> On Mon, Dec 26, 2016 at 09:34:54PM +0100, Lluís Vilanova wrote:
>> +static void segv_handler(int signum, siginfo_t *siginfo, void *sigctxt)
>> +{
>> +CPUState *vcpu = current_cpu;
>> +void *control_0 = vcpu->hypertrace_control;
>> +void *control_1 =
On 01/05/2017 10:53 AM, Marc-André Lureau wrote:
> Turn Chardev into Object.
>
> qemu_chr_alloc() is replaced by the qemu_chardev_new() constructor. It
> will call qemu_char_open() to open/intialize the chardev with the
> ChardevCommon *backend settings.
>
> The CharDriver::create() callback is
> On 9 Jan 2017, at 19:31, Peter Maydell wrote:
>
> FSF's view is that Apache 2.0 is not compatible with GPLv2:
I can't dispute this, but does't the GPLv2 requirements apply to the qemu
executable only? my JSON files are not compiled into the binary, but are data
On 2017-01-09 18:05, Peter Maydell wrote:
> The patch_hypercalls() function sets up a 'patches'
> variable and checks it at the end of the function, but
> never modifies it in the middle. Remove this dead code,
> which seems to have been present since the function was
> added in commit
On 9 January 2017 at 16:51, Liviu Ionescu wrote:
>> On 9 Jan 2017, at 18:16, Peter Maydell wrote:
>> The obvious issue that comes to mind
>> is licensing, though -- what licenses are the SVD files under,
>> and would those be compatible with QEMU's
On 11/22/2016 08:54 PM, Vladimir Sementsov-Ogievskiy wrote:
> When testing migration, auto-generated by qemu node-names differs in
> source and destination qemu and migration fails. After this patch,
> auto-generated by iotest nodenames will be the same.
>
> Signed-off-by: Vladimir
On 9 January 2017 at 16:48, Michael S. Tsirkin wrote:
> The strange thing here is that this actually seems to apply patches
> from list instead of getting the tag from the tree.
That's because it's really supposed to be working on patches sent
to the list -- it only checks pull
Hi,
Your series seems to have some coding style problems. See output below for
more information:
Type: series
Subject: [Qemu-devel] [PATCH v4 0/4] Introduce a new --only-migratable option
Message-id: 1483981368-9965-1-git-send-email-ashijeetacha...@gmail.com
=== TEST SCRIPT BEGIN ===
On Tue, 3 Jan 2017 12:37:36 +0100
Igor Mammedov wrote:
[...]
> Wiki page http://wiki.qemu.org/Features/CPUHotplug is rather outdated,
> I'll update it to reflect currently implemented hotplug interfaces/targets.
David,
I've updated above CPUHotplug wiki page to match
Introduce checks for the unmigratable flag in the VMStateDescription
structs of respective devices when user attempts to add them. If the
"--only-migratable" was specified, all unmigratable devices will
rightly fail to add. This feature is made compatible for both "-device"
and "-usbdevice"
On 09/01/2017 18:04, Nutaro, James J. wrote:
> Thanks again Paolo. When I change the command line switches, is it best to
> submit a whole new version of the patch? Or is there another method for
> managing patch revisions?
Yes, submit a new version, then put
v6->v7: did this and that
The patch_hypercalls() function sets up a 'patches'
variable and checks it at the end of the function, but
never modifies it in the middle. Remove this dead code,
which seems to have been present since the function was
added in commit e5ad936b0fd7 in 2012.
(Spotted by Coverity: CID 1005581.)
If a migration is already in progress and somebody attempts
to add a migration blocker, this should rightly fail.
Add an errp parameter and a retcode return value to migrate_add_blocker.
Signed-off-by: John Snow
Signed-off-by: Ashijeet Acharya
---
Thanks again Paolo. When I change the command line switches, is it best to
submit a whole new version of the patch? Or is there another method for
managing patch revisions?
Thanks,
Jim
-Original Message-
From: Paolo Bonzini [mailto:pbonz...@redhat.com]
Sent: Thursday, January 05,
On Mon, Jan 9, 2017 at 2:03 PM, Paolo Bonzini wrote:
>
>
> On 06/01/2017 15:08, Vincent Palatin wrote:
>> Apart from the above change, can you check if there are some less
>> heavyeight methods to force an exit? I can think of QueueUserAPC with
>> an empty pfnAPC
migrate_add_blocker should rightly fail if the '--only-migratable'
option was specified and the device in use should not be able to
perform the action which results in an unmigratable VM.
Make migrate_add_blocker return -EACCES in this case.
Signed-off-by: Ashijeet Acharya
Previously posted series patches:
http://lists.nongnu.org/archive/html/qemu-devel/2017-01/msg00320.html
http://lists.nongnu.org/archive/html/qemu-devel/2016-12/msg02391.html
http://lists.nongnu.org/archive/html/qemu-devel/2016-12/msg02062.html
This series adds a new command line option
Add a new option "--only-migratable" in qemu which will allow to add
only those devices which will not fail qemu after migration. Devices
set with the flag 'unmigratable' cannot be added when this option will
be used.
Signed-off-by: Ashijeet Acharya
---
Let's make sure when each test is run that the flash object is in an
initial state and did not keep configuration from the previous tests.
Signed-off-by: Cédric Le Goater
---
tests/m25p80-test.c | 31 +++
1 file changed, 31 insertions(+)
diff --git
The SPI controller of the AST2400 SoC has less registers. So we can
adjust the size of the memory region holding the registers depending
on the controller type. We can also remove the guest_error logging
which is useless as the range of the region is strict enough.
Signed-off-by: Cédric Le Goater
> On 9 Jan 2017, at 18:16, Peter Maydell wrote:
>
> On 28 December 2016 at 18:49, Liviu Ionescu wrote:
>> The latest release of GNU ARM Eclipse QEMU (2.8.0-20161227) introduced
>> a new technology for implementing peripherals, based on standard
>>
On Fri, Dec 16, 2016 at 01:32:04PM -0800, no-re...@patchew.org wrote:
> Hi,
>
> Your series seems to have some coding style problems. See output below for
> more information:
>
> Type: series
> Subject: [Qemu-devel] [PULL for-2.9 0/9] virtio, vhost, pc: fixes
> Message-id:
Change the routines prototype to use a 'AspeedSMCFlash *' instead of
'AspeedSMCState *'. The result will help in making future changes
clearer.
Also change aspeed_smc_update_cs() which uselessly loops on all slave
devices to update their status.
Signed-off-by: Cédric Le Goater
Coverity points out that calculating src_len by multiplying
src_width by rows could overflow. This can only happen in
the implausible case of a framebuffer larger than 4GB, but
we may as well fix it, placating Coverity. (CID1005515)
Signed-off-by: Peter Maydell
---
On Mon, Dec 26, 2016 at 09:34:54PM +0100, Lluís Vilanova wrote:
> +static void segv_handler(int signum, siginfo_t *siginfo, void *sigctxt)
> +{
> +CPUState *vcpu = current_cpu;
> +void *control_0 = vcpu->hypertrace_control;
> +void *control_1 = vcpu->hypertrace_control +
Instead, we can simply set the irq level when unselecting the slave
devices. This change prepares ground for a subsequent cleanup of the
aspeed_smc_update_cs() routine which uselessly loops on all slaves to
update their status.
Signed-off-by: Cédric Le Goater
---
Hi
On Mon, Jan 9, 2017 at 4:39 PM Marc-André Lureau
wrote:
> Hi
>
> On Fri, Jan 6, 2017 at 2:46 PM Andreas Gustafsson wrote:
>
> I am also seeing this problem. In case it was not clear from Paul's
> original report, it affects guests using a serial
This is useless as reset will be called later on.
Signed-off-by: Cédric Le Goater
---
hw/ssi/aspeed_smc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c
index 78f5aed53247..8a7217d4df6c 100644
--- a/hw/ssi/aspeed_smc.c
+++
On Mon, Dec 26, 2016 at 09:35:10PM +0100, Lluís Vilanova wrote:
> Provides guest Linux kernel module "qemu-hypertrace.ko" to abstract
> access to the hypertrace channel.
>
> Signed-off-by: Lluís Vilanova
> ---
> Makefile |4 -
>
When doing fast read, a certain amount of dummy bytes should be sent
before the read. This number is configurable in the controler CE0
Control Register and needs to be modeled using fake transfers the
flash module.
Signed-off-by: Cédric Le Goater
Reviewed-by: Andrew Jeffery
On Mon, Jan 09, 2017 at 01:43:10PM +, Stefan Hajnoczi wrote:
> On Mon, Jan 09, 2017 at 03:04:55PM +0800, Longpeng (Mike) wrote:
> > I'm one of Gonglei's virtio-crypto project members, and we plan to add a
> > AF_ALG
> > backend for virtio-crypto(there's only builtin-backend currently).
> >
>
On 6 January 2017 at 21:20, Michael S. Tsirkin wrote:
> So the email might be malformed, but git commits are ok I think.
> Peter, could you pls merge? I'll investigate my email settings later.
Applied to master, thanks.
-- PMM
On Mon, Dec 26, 2016 at 09:34:38PM +0100, Lluís Vilanova wrote:
> The hypertrace channel allows guest code to emit events in QEMU (the host)
> using
> its tracing infrastructure (see "docs/trace.txt"). This works in both 'system'
> and 'user' modes, is architecture-agnostic and introduces minimal
The Aspeed SMC controllers have a mode (Command mode) in which
accesses to the flash content are no different than doing MMIOs. The
controller generates all the necessary commands to load (or store)
data in memory.
However, accesses are restricted to the segment window assigned the
the flash
Create a ROM region, using the default size of the mapping window for
the CE0 FMC flash module, and fill it with the flash content.
This is a little hacky but until we can boot from a MMIO region, it
seems difficult to do anything else.
Signed-off-by: Cédric Le Goater
Hello,
I have reduced the patchset size to focus on some improvements of the
SMC (Flash) controller model only and will address the watchdog and
network models in other patchset.
The main benefit of this series is to enable booting directly from a
flash image containing U-Boot. It adds :
-
On the AST2500 SoC, the FMC controller flash type is fixed to SPI for
CE0 and CE1 and 4BYTE mode is autodetected for CE0.
On the AST2400 SoC, the FMC controller flash type and 4BYTE mode are
strapped with register SCU70. We use the default settings from the
palmetto-bmc machine for now.
Implement the the ICV_ registers HPPIR, DIR and RPR.
Signed-off-by: Peter Maydell
---
hw/intc/arm_gicv3_cpuif.c | 235 +-
hw/intc/trace-events | 3 +
2 files changed, 235 insertions(+), 3 deletions(-)
diff --git
On 04/01/17 09:57, Gerd Hoffmann wrote:
/me wonders how you've tested the patch ...
That would be not at all. Or rather, just a compile. :)
Tried, but checkpatch found some more issues:
Fixed. New patch incoming.
Regards
--
Pierre Ossman Software Development
Cendio AB
The Aspeed SMC controllers have a mode (Command mode) in which
accesses to the flash content are no different than doing MMIOs. The
controller generates all the necessary commands to load (or store)
data in memory.
So add a couple of tests doing direct reads and writes on the AHB bus.
Augment the GIC's QOM device interface by adding two
new sets of sysbus IRQ lines, to signal VIRQ and VFIQ to
each CPU.
We never use these, but it's helpful to keep the v2-and-earlier
GIC's external interface in line with that of the GICv3 to
avoid board code having to add extra code conditional
On 28 December 2016 at 18:49, Liviu Ionescu wrote:
> The latest release of GNU ARM Eclipse QEMU (2.8.0-20161227) introduced
> a new technology for implementing peripherals, based on standard
> CMSIS SVD definitions
> (http://www.keil.com/pack/doc/CMSIS/SVD/html/index.html).
>
>
The PSCI spec states that a CPU_ON call should cause the new
CPU to be started in the highest implemented Non-secure
exception level. We were incorrectly starting it at the
exception level of the caller, which happens to be correct
if EL2 is not implemented. Implement the correct logic
as
This is getting difficult to read. Also add a 'has_dma' field for each
controller type.
Signed-off-by: Cédric Le Goater
Reviewed-by: Joel Stanley
Reviewed-by: Andrew Jeffery
---
hw/ssi/aspeed_smc.c | 91
Implement the function which signals virtual interrupts to the
CPU as appropriate following CPU interface state changes.
Signed-off-by: Peter Maydell
---
include/hw/intc/arm_gicv3_common.h | 1 +
hw/intc/arm_gicv3_cpuif.c | 49
Piggy-backing on the modifier state array made it difficult to send
out updates at the proper times.
Signed-off-by: Pierre Ossman
---
ui/vnc.c | 59 ---
ui/vnc.h | 3 ++-
2 files changed, 18 insertions(+), 44
The GICv3 virtualization interface includes system registers
accessible only to the hypervisor which form the control
interface for interrupt virtualization. Implement these
registers.
The function gicv3_cpuif_virt_update() which determines
whether it needs to signal vIRQ, vFIQ or a maintenance
On Mon, Dec 26, 2016 at 09:34:59PM +0100, Lluís Vilanova wrote:
> +#define PAGE_SIZE TARGET_PAGE_SIZE
Unused. Please remove.
signature.asc
Description: PGP signature
Add defines to gicv3_internal.h for fields in the ICH_*
system registers which form the GIC virtualization control
interface.
Signed-off-by: Peter Maydell
---
hw/intc/gicv3_internal.h | 79
1 file changed, 79
This patchset adds support for the Virtualization extensions to QEMU's
GICv3 emulation. This was the last missing piece that was stopping
us from turning on the EL2 support in the CPU model, so the patchset
also adds support for enabling it all on the virt board via the
'-machine
Implement the architecturally required traps from NS EL1
to EL2 for the CPU interface registers. These fall into
several different groups:
* group-0-only registers all trap if ICH_HRC_EL2.TALL0 is set
(exactly the registers covered by gicv3_fiq_access())
* group-1-only registers all trap if
The GICv3 support for virtualization includes an outbound
maintenance interrupt signal which is asserted when the
CPU interface wants to signal to the hypervisor that it
needs attention. Expose this as an outbound GPIO line from
the CPU object which can be wired up as a physical interrupt
line by
Wire the new VIRQ, VFIQ and maintenance interrupt lines from the
GIC to each CPU.
Signed-off-by: Peter Maydell
---
include/hw/arm/virt.h | 2 ++
hw/arm/virt.c | 14 +++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git
As the first step in adding support for the virtualization
extensions to the GICv3 emulation:
* add the necessary data fields to the state structures
* add the fields to the migration state, as a subsection
which is only present if virtualization is enabled
The use of a subsection means we
Add a board level property to the virt board which will
enable EL2 on the CPU if the user asks for it. The
default is not to provide EL2. If EL2 is enabled then
we will use SMC as our PSCI conduit, and report the
virtualization support in the GICv3 device tree node
and the ACPI tables.
Enable the ARM_FEATURE_EL2 bit on Cortex-A52 and
Cortex-A57, since this is all now sufficiently implemented
to work with the GICv3. We provide the usual CPU property
to disable it for backwards compatibility with the older
virt boards.
In this commit, we disable the EL2 feature on the
virt and
Augment the GICv3's QOM device interface by adding two
new sets of sysbus IRQ lines, to signal VIRQ and VFIQ to
each CPU.
Signed-off-by: Peter Maydell
---
include/hw/intc/arm_gicv3_common.h | 2 ++
hw/intc/arm_gicv3_common.c | 6 ++
2 files changed, 8
Implement the two remaining ICV_ registers: EOIR and IAR.
Signed-off-by: Peter Maydell
---
hw/intc/arm_gicv3_cpuif.c | 220 ++
hw/intc/trace-events | 2 +
2 files changed, 222 insertions(+)
diff --git
Add fields to the ARMCPU structure to allow CPU classes to
specify the configurable aspects of their GIC CPU interface.
In particular, the virtualization support allows different
values for number of list registers, priority bits and
preemption bits.
Signed-off-by: Peter Maydell
From: Andrew Jones
Signed-off-by: Andrew Jones
[PMM: look at vms->psci_conduit rather than vms->virt
to decide whether to use HVC or SMC, and report no
PSCI support at all for the 'PSCI disabled' case]
Signed-off-by: Peter Maydell
If the HCR_EL2.IMO or FMO bits are set, accesses to ICC_
system registers are redirected to be accesses to ICV_
registers (the guest-visible interface to the virtual
interrupt controller). Implement this behaviour for the
ICV_ registers which are simple accessors to the underlying
register state.
If we are giving the guest a CPU with EL2, it is likely to
want to use the HVC instruction itself, for instance for
providing PSCI to inner guest VMs. This makes using HVC
as the PSCI conduit for the outer QEMU a bad idea. We will
want to use SMC instead is this case: this makes sense
because
09.01.2017 18:57, Denis V. Lunev wrote:
On 11/22/2016 08:54 PM, Vladimir Sementsov-Ogievskiy wrote:
When testing migration, auto-generated by qemu node-names differs in
source and destination qemu and migration fails. After this patch,
auto-generated by iotest nodenames will be the same.
On 19 December 2016 at 22:20, Alistair Francis wrote:
> If I manually enable EL2 and EL3 for the Xilinx EP108 board I can
> replicate a full hardware flow from ATF -> u-boot -> Linux.
>
> Unfortunately Linux doesn't get too far as I get the error below. This
> is further
On Mon, Dec 26, 2016 at 09:34:54PM +0100, Lluís Vilanova wrote:
> @@ -847,6 +855,10 @@ int main(int argc, char **argv)
> } else if (!strcmp(r, "trace")) {
> g_free(trace_file);
> trace_file = trace_opt_parse(optarg);
> +} else if (!strcmp(r,
On Mon, Jan 09, 2017 at 03:04:55PM +0800, Longpeng (Mike) wrote:
> I'm one of Gonglei's virtio-crypto project members, and we plan to add a
> AF_ALG
> backend for virtio-crypto(there's only builtin-backend currently).
>
> I found that Catalin, Paolo and Stefan had discussed about this in 2015
>
Currently DNS resolution is done automatically as part
of the creation of a QIOChannelSocket object instance.
This works ok for network clients where you just end
up a single network socket, but for servers, the results
of DNS resolution may require creation of multiple
sockets.
Introducing a DNS
> On 9 Jan 2017, at 15:18, Max Filippov wrote:
>
> Hello,
>
> I'm trying to reimplement xtensa CCOUNT (cycle counter) and
> CCOMPARE (CCOUNT-based timer interrupts) using QEMU
> timers. That is CCOUNT value is derived from the
> QEMU_CLOCK_VIRTUAL clock and CCOMPARE
Currently the QIOTaskFunc signature takes an Object * for
the source, and an Error * for any error. We also need to
be able to provide a result pointer. Rather than continue
to add parameters to QIOTaskFunc, remove the existing
ones and simply pass the QIOTask object instead. This
has methods to
Currently there is no data associated with a successful
task completion. This adds an opaque pointer to the task
to store an arbitrary result.
Reviewed-by: Eric Blake
Signed-off-by: Daniel P. Berrange
---
include/io/task.h | 27
Currently when a task fails, the error is never explicitly
associated with the task object, it is just passed along
through the completion callback. This adds the ability to
explicitly associate an error with the task.
Signed-off-by: Daniel P. Berrange
---
include/io/task.h
Hi
On Fri, Jan 6, 2017 at 2:46 PM Andreas Gustafsson wrote:
> I am also seeing this problem. In case it was not clear from Paul's
> original report, it affects guests using a serial console.
>
> Also, it is not specific to NetBSD. I can reproduce it using a Linux
> guest on a
Incrementing the reference in qio_task_get_source is
not necessary, since we're not running concurrently
with any other code touching the QIOTask. This
minimizes chances of further memory leaks.
Reviewed-by: Eric Blake
Signed-off-by: Daniel P. Berrange
Now that task objects have a directly associated error,
there's no need for an an Error **errp parameter to
the QIOTask thread worker function. It already has a
QIOTask object, so can directly set the error on it.
Reviewed-by: Eric Blake
Signed-off-by: Daniel P. Berrange
The GDestroyNotify parameter is already a pointer, so does
not need a '*' suffix on the type.
Reviewed-by: Eric Blake
Signed-off-by: Daniel P. Berrange
---
include/io/task.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
This is a followup of:
v1: https://lists.gnu.org/archive/html/qemu-devel/2017-01/msg00574.html
Currently DNS resolution of SocketAddress structs is done as
part of the socket connect/listen process. This is very
inflexible as it assumes that a single SocketAddress struct
will only ever require
Add a 'numeric' flag to the InetSocketAddress struct to allow the
caller to indicate that DNS should be skipped for the host/port
fields. This is useful if the caller knows the address is already
numeric and wants to guarantee no (potentially blocking) DNS
lookups are attempted.
Signed-off-by:
On 9 January 2017 at 13:44, Kevin Wolf wrote:
> The following changes since commit ffe22bf51065dd33022cf91f77a821d1f11c250d:
>
> Merge remote-tracking branch 'remotes/gonglei/tags/cryptodev-next-20161224'
> into staging (2017-01-06 15:18:09 +)
>
> are available in the git
101 - 200 of 348 matches
Mail list logo