; > Commit 4eae2a657d is doing the right thing, but
>> > > > > > > 's->stats_vq_elem'
>> > > > > > > should be treated as part of balloon device state and migrated
>> > > > > > > to destination if it's not NULL to make
On Mon, Jun 13, 2016 at 4:20 PM, Ladi Prosek <lpro...@redhat.com> wrote:
> Unused function declarations were found using a simple gcc plugin and
> manually verified by grepping the sources.
>
> Signed-off-by: Ladi Prosek <lpro...@redhat.com>
> ---
> Posting as one t
t; status.
>> >
>> > Signed-off-by: Liang Li <liang.z...@intel.com>
>> > Cc: Michael S. Tsirkin <m...@redhat.com>
>> > Cc: Ladi Prosek <lpro...@redhat.com>
>> > Cc: Paolo Bonzini <pbonz...@redhat.com>
>> > ---
>> >
n,
> and the check in the function 'balloon_stats_poll_cb()' will
> prevent the 'virtio_notify()' from executing. So guest will not
> update the memory status.
>
> Signed-off-by: Liang Li <liang.z...@intel.com>
> Cc: Michael S. Tsirkin <m...@redhat.com>
> Cc: Ladi Pro
Unused function declarations were found using a simple gcc plugin and
manually verified by grepping the sources.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
Posting as one trivial patch because no domain specific knowledge is
required to verify correctness.
block/q
Hi all,
Just a quick announcement that there's a new iPXE subtree at
https://github.com/ladipro/ipxe-virtio focused on Virtio networking
and related areas. The plan is to be sending regular pull requests to
ipxe/ipxe with reviewed patches. Any and all Virtio contributions are
welcome and will be
On Thu, May 5, 2016 at 6:04 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
> On Thu, May 05, 2016 at 05:27:03PM +0200, Ladi Prosek wrote:
>> On Thu, May 5, 2016 at 5:20 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
>> > On Thu, May 05, 2016 at 05:15:01PM +0200, L
On Thu, May 5, 2016 at 5:20 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
> On Thu, May 05, 2016 at 05:15:01PM +0200, Ladi Prosek wrote:
>> On Thu, May 5, 2016 at 5:02 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
>> > On Thu, May 05, 2016 at 04:59:13PM +0200, L
On Thu, May 5, 2016 at 5:02 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
> On Thu, May 05, 2016 at 04:59:13PM +0200, Ladi Prosek wrote:
>> On Thu, May 5, 2016 at 3:36 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
>> > On Thu, May 05, 2016 at 11:13
On Thu, May 5, 2016 at 3:36 PM, Michael S. Tsirkin <m...@redhat.com> wrote:
> On Thu, May 05, 2016 at 11:13:37AM +0200, Ladi Prosek wrote:
>> There is a discrepancy between dataplane and no-dataplane virtio
>> behavior with respect to the ISR status register and MSI-X
>>
code path.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
hw/virtio/virtio.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 08275a9..4053313 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -
On Wed, Apr 13, 2016 at 5:45 PM, Gerd Hoffmann wrote:
> Read absolute and relative axis information, only classify
> devices as mouse/tablet in case the x axis is present.
I, too, had to come up with a heuristic to classify input devices in
my guest driver and what I ended up
On Wed, Apr 13, 2016 at 5:45 PM, Gerd Hoffmann <kra...@redhat.com> wrote:
> On Mi, 2016-04-13 at 16:43 +0200, Ladi Prosek wrote:
>> VIRTIO_INPUT_CFG_ABS_INFO was not implemented for pass-through input
>> devices. This patch follows the existing design and pre-fetches the
>&
VIRTIO_INPUT_CFG_ABS_INFO was not implemented for pass-through input
devices. This patch follows the existing design and pre-fetches the
config for all absolute axes using EVIOCGABS at realize time.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
hw/input/virtio-input-host.c
The reported maximum was wrong. The X and Y coordinates are 0-based
so if size is 8000 maximum must be 7FFF.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
hw/input/virtio-input-hid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/input/virtio-input-hid.
;> -device ohci-1394,chardev=serial10,idserial10
>>
>> Results:
>> I've successfully connected to the Target VM using WindbgX64 and ran basic
>> debugging functions such as "Break" and "stack trace".
>> Moreover I've successfully viewed li
The write path for pass-through devices, commonly used for controlling
keyboard LEDs via EV_LED, was not implemented. This commit adds the
necessary plumbing to connect the status virtio queue to the host evdev
file descriptor.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
v1
On Fri, Apr 1, 2016 at 12:20 PM, Gerd Hoffmann <kra...@redhat.com> wrote:
> On Fr, 2016-04-01 at 11:31 +0200, Ladi Prosek wrote:
>> The write path for pass-through devices, commonly used for controlling
>> keyboard LEDs via EV_LED, was not implemented. This commit adds the
The write path for pass-through devices, commonly used for controlling
keyboard LEDs via EV_LED, was not implemented. This commit adds the
necessary plumbing to connect the status virtio queue to the host evdev
file descriptor.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
Most of t
VIRTIO_INPUT_CFG_EV_BITS with subsel of EV_LED was always
returning an empty bitmap for pass-through input devices.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
hw/input/virtio-input-host.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/input/virtio-input-host.c b/hw/input/
KEY_PAUSE is flat out missing. KEY_SYSRQ already has a keycode
assigned but it's not what I'm seeing on my system. The mapping
doesn't appear to have to be unique so both keycodes now map to
KEY_SYSRQ which is what the "Keyboard PrintScreen", HID usage ID
0x46, translates to.
Signed-of
Just a friendly ping after two weeks of silence.
Thanks,
Ladi
On Fri, Mar 4, 2016 at 10:12 AM, Paolo Bonzini <pbonz...@redhat.com> wrote:
>
>
> On 04/03/2016 09:04, Ladi Prosek wrote:
>>>> >> +QSIMPLEQ_INIT(>requests);
>>>> >> }
>>> >
>>> > This init here isn't necessary,
On Fri, Mar 4, 2016 at 7:27 AM, Amit Shah <amit.s...@redhat.com> wrote:
> On (Thu) 03 Mar 2016 [14:16:11], Ladi Prosek wrote:
>> QSIMPLEQ supports appending to tail in O(1) and is intrusive so
>> it doesn't require extra memory allocations for the bookkeeping
>> data
QSIMPLEQ supports appending to tail in O(1) and is intrusive so
it doesn't require extra memory allocations for the bookkeeping
data.
Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c| 9 -
backends/
to see if the queue is empty as a little bit of
optimization.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
This commit has a logical dependency on
[PATCH v3 0/4] rng-random: implement request queue
which removes a synchronous invocation of the receive_func callback in
rng_random_req
On Thu, Mar 3, 2016 at 6:05 AM, Amit Shah <amit.s...@redhat.com> wrote:
> On (Thu) 04 Feb 2016 [13:07:35], Ladi Prosek wrote:
>> - Original Message -
>> > - Original Message -
>> > >
>> > >
>> > > On 03/02/2016 13:36,
completion
of reads from virtio-rng, i.e. a read was completed only after
another read was issued.
By switching rng-random to use the same request queue as rng-egd,
the unsafe stack-based allocation of the entropy buffer is
eliminated and replaced with g_malloc.
Signed-off-by: Ladi Prosek <l
RngBackend is now in charge of cleaning up the linked list on
instance finalization. It also exposes a function to finalize
individual RngRequest instances, called by its child classes.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c
rng_backend_cancel_requests had no callers and none of the code
deleted in this commit ever ran.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c | 12
backends/rng.c | 9 -
include/sysemu/rng.h | 11 ---
3 files changed, 32 del
The 'requests' field now lives in the RngBackend parent class.
There are no functional changes in this commit.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c | 28 +---
include/sysemu/rng.h | 11 +++
2 files changed, 20 insertions(
As suggested by Paolo, I have moved the RngRequest implementation
up to the RngBackend parent class and made both child classes use
it. Apart from the refactoring, the only functional change
compared to v1 is the use of heap instead of stack allocation for
the read buffer in rng-random.
The
This patch adds 1394 (FireWire) virtual device support to QEMU.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
I am resurrecting this patch sent to the list by Itamar last year. My
motivation is remote Windows kernel debugging - probably the same reason
why this work was started in the
On Wed, Mar 2, 2016 at 10:56 AM, Amit Shah <amit.s...@redhat.com> wrote:
> On (Wed) 10 Feb 2016 [16:53:25], Ladi Prosek wrote:
>> Requests are now created in the RngBackend parent class and the
>> code path is shared by both rng-egd and rng-random.
>>
>>
On Wed, Mar 2, 2016 at 8:15 AM, Amit Shah <amit.s...@redhat.com> wrote:
> On (Wed) 10 Feb 2016 [16:53:24], Ladi Prosek wrote:
>> RngBackend is now in charge of cleaning up the linked list on
>> instance finalization. It also exposes a function to finalize
>> individual R
admittedly
the device assumed too much about the stats queue protocol even before
that commit. This commit adds a few more checks and ensures that the one
stats buffer gets deallocated on device reset.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
hw/virtio/virtio-balloon.
The 'requests' field now lives in the RngBackend parent class.
There are no functional changes in this commit.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c | 28 +---
include/sysemu/rng.h | 11 +++
2 files changed, 20 insertions(
rng_backend_cancel_requests has no callers and none of the code
deleted in this commit ever runs.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c | 12
backends/rng.c | 9 -
include/sysemu/rng.h | 11 ---
3 files changed, 32 del
As suggested by Paolo, I have moved the RngRequest implementation
up to the RngBackend parent class and made both child classes use
it. Apart from the refactoring, the only functional change
compared to v1 is the use of heap instead of stack allocation for
the read buffer in rng-random.
The
as delayed
completion of reads from virtio-rng, i.e. a read is completed
only after another read is issued.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c| 16 ++--
backends/rng-random.c | 43 +++
backends
RngBackend is now in charge of cleaning up the linked list on
instance finalization. It also exposes a function to finalize
individual RngRequest instances, called by its child classes.
Signed-off-by: Ladi Prosek <lpro...@redhat.com>
---
backends/rng-egd.c
>
>
> On 10/02/2016 16:53, Ladi Prosek wrote:
> > +req->size = size;
> > +req->receive_entropy = receive_entropy;
> > +req->opaque = opaque;
> > +req->data = g_malloc(req->size);
> > +
> > +
Hi Pankaj,
- Original Message -
>
> Hi Ladi,
>
> I think this is fine if we have multiple requests from Guests and
> depending on entropy pool available we can honour individual requests
> and return with the entropy.
>
> Just one point I have is, Suppose we have multiple requests from
- Original Message -
>
>
> On 03/02/2016 13:36, Amit Shah wrote:
> > ... and this can lead to breaking migration (the queue of requests on
> > the host needs to be migrated, else the new host will have no idea of
> > the queue).
>
> It is already migrated as part of virtio_rng_save's
- Original Message -
> - Original Message -
> >
> >
> > On 03/02/2016 13:36, Amit Shah wrote:
> > > ... and this can lead to breaking migration (the queue of requests on
> > > the host needs to be migrated, else the new host will have no idea of
> > > the queue).
> >
> > It is
Hi Amit,
- Original Message -
> Hi Ladi,
>
> Adding Pankaj to CC, he too looked at this recently.
>
> On (Fri) 22 Jan 2016 [13:19:58], Ladi Prosek wrote:
> > If the guest adds a buffer to the virtio queue while another buffer
> > is still pending and hasn
completion of reads from virtio-rng, i.e.
a read is completed only after another read is issued.
This patch adds an internal queue of requests, analogous to what
rng-egd uses, to make sure that requests and responses are balanced
and correctly ordered.
Signed-off-by: Ladi Prosek <lpro...@redhat.
201 - 247 of 247 matches
Mail list logo