similar to: Trouble using virStream with callbacks

Displaying 20 results from an estimated 200 matches similar to: "Trouble using virStream with callbacks"

2018 Dec 03
2
Re: console type tcp with logging
пн, 3 дек. 2018 г. в 12:27, Daniel P. Berrangé <berrange@redhat.com>: > > We don't have any plans to add it, but if someone's interested we'd > accept patches. It would need to integrate with our virStream APIs > to allow download, in similar way to how virStorageVolDownload() works What args this function need to receive? VolDownload this args:
2018 Dec 03
0
Re: console type tcp with logging
On Mon, Dec 03, 2018 at 01:38:45PM +0300, Vasiliy Tolstov wrote: > пн, 3 дек. 2018 г. в 12:27, Daniel P. Berrangé <berrange@redhat.com>: > > > > We don't have any plans to add it, but if someone's interested we'd > > accept patches. It would need to integrate with our virStream APIs > > to allow download, in similar way to how virStorageVolDownload()
2010 Jul 08
1
virStream functions
May anybody tell me which is the porpose of virStream functions ? Thanks in advance. Camilo Aguilar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100708/ab2a6e86/attachment.htm>
2017 May 16
0
Re: No way to stop virStream error after guest stop
On Fri, Apr 28, 2017 at 11:01:18PM +0000, JosÉ Luis Valencia Gutierrez wrote: >Hello everyone, >I am opening a virChannel(unix) to a domain and receiving data with a >non-blocking virStream using events, when the connected domain gets >stopped(which deletes the channel unix socket) by calling destroy, >shutdown, pause or migrate on that domain, with the stream open the read
2017 May 17
0
Re: No way to stop virStream error after guest stop
On Wed, May 17, 2017 at 01:01:39AM +0000, JosÉ Luis Valencia Gutierrez wrote: >I get just _READABLE events repeatedly, virStreamAbort() doesn't work, it >gets out of control after the target domain stops and the unix scocket is >deleted. I ended connecting directly to the unix socket. I just wanted to >ask if it certainly is a bug or perhaps someone went through this before >and
2017 Apr 28
2
No way to stop virStream error after guest stop
Hello everyone, I am opening a virChannel(unix) to a domain and receiving data with a non-blocking virStream using events, when the connected domain gets stopped(which deletes the channel unix socket) by calling destroy, shutdown, pause or migrate on that domain, with the stream open the read event is triggered repeatedly, and virStreamRecv returns 0 bytes indicating EOF but neither
2013 Sep 19
0
Re: Trouble using virStream with callbacks
I tried to dig a bit deeper in this. From my limited understanding, it seems like stream events are implemented as enabled/disabled timers. The issue is that if there's no data from the guest app pending, the timeout in virEventPollRunOnce will be calculated as -1. So then we block on the poll() and only come out once stdin is ready for reading. This means that if data is received from the
2013 Sep 19
0
Re: Trouble using virStream with callbacks
> poll() will be listening for i/o on the libvirt socket as well as > stdin, so it'll see incoming I/O from the guest. That's strange, that's not what I'm seeing when running it step-by-step. I see poll() hanging regardless of guest events. There are indeed two fds in the array (stdin and the other one being the libvirt socket I suppose), but in all cases, I never observed
2013 Sep 19
0
Re: Trouble using virStream with callbacks
> As a test why not try hacking virsh console so that it connects to your > virtio serial port, instead of a console. If we assume 'virsh console' > is bug-free, that would let you identify whether the flaw is in your host > code, or the guest side. Thanks for the pointer. Doing a few trivial changes to virsh-console does show that it works correctly and pointed out multiple
2015 Feb 02
0
virStream text codec
Hi. I'm try to use virDomainOpenConsole( domainPtr, NULL, stream, VIR_DOMAIN_CONSOLE_SAFE) for control remote terminal, but i don't understand in which text codec the stream returns a data?
2017 May 24
2
Re: No way to stop virStream error after guest stop
On Wed, May 17, 2017 at 07:53:35PM +0000, JosÉ Luis Valencia Gutierrez wrote: >I just tried removing the callback before calling virStreamFinish and it >worked right, I thought by simply finish the stream would stop the events >and close it, the example I was based on only calls virStreamFinish on EOF >event. > I'm working on a patch that removes the callbacks after calling
2017 May 24
0
Re: No way to stop virStream error after guest stop
That is great, calling Abort also should remove the callbacks. On Wed, 24 May 2017 11:11 Martin Kletzander, <mkletzan@redhat.com> wrote: > On Wed, May 17, 2017 at 07:53:35PM +0000, JosÉ Luis Valencia Gutierrez > wrote: > >I just tried removing the callback before calling virStreamFinish and it > >worked right, I thought by simply finish the stream would stop the events
2017 May 17
0
Re: No way to stop virStream error after guest stop
I just tried removing the callback before calling virStreamFinish and it worked right, I thought by simply finish the stream would stop the events and close it, the example I was based on only calls virStreamFinish on EOF event. Em qua, 17 de mai de 2017 às 12:49, Martin Kletzander <mkletzan@redhat.com> escreveu: > On Wed, May 17, 2017 at 09:08:14AM +0200, Martin Kletzander wrote: >
2013 Sep 19
2
Re: Trouble using virStream with callbacks
On Thu, Sep 19, 2013 at 12:59:33PM -0400, Jonathan Lebon wrote: > > poll() will be listening for i/o on the libvirt socket as well as > > stdin, so it'll see incoming I/O from the guest. > > That's strange, that's not what I'm seeing when running it step-by-step. I see > poll() hanging regardless of guest events. There are indeed two fds in the > array
2017 May 17
2
Re: No way to stop virStream error after guest stop
I get just _READABLE events repeatedly, virStreamAbort() doesn't work, it gets out of control after the target domain stops and the unix scocket is deleted. I ended connecting directly to the unix socket. I just wanted to ask if it certainly is a bug or perhaps someone went through this before and have a workaround. Jose V. Em ter, 16 de mai de 2017 às 05:28, Martin Kletzander
2013 Sep 19
2
Re: Trouble using virStream with callbacks
On Thu, Sep 19, 2013 at 11:59:45AM -0400, Jonathan Lebon wrote: > I tried to dig a bit deeper in this. From my limited understanding, > it seems like stream events are implemented as enabled/disabled timers. > The issue is that if there's no data from the guest app pending, the > timeout in virEventPollRunOnce will be calculated as -1. So then we > block on the poll() and only
2017 May 17
2
Re: No way to stop virStream error after guest stop
On Wed, May 17, 2017 at 09:08:14AM +0200, Martin Kletzander wrote: >On Wed, May 17, 2017 at 01:01:39AM +0000, JosÉ Luis Valencia Gutierrez wrote: >>I get just _READABLE events repeatedly, virStreamAbort() doesn't work, it >>gets out of control after the target domain stops and the unix scocket is >>deleted. I ended connecting directly to the unix socket. I just wanted to
2018 Dec 01
2
Re: console type tcp with logging
пт, 30 нояб. 2018 г. в 12:43, Daniel P. Berrangé <berrange@redhat.com>: > > On Thu, Nov 29, 2018 at 08:57:54PM +0300, Vasiliy Tolstov wrote: > > чт, 29 нояб. 2018 г. в 18:23, Daniel P. Berrangé <berrange@redhat.com>: > > > > > > On Thu, Nov 29, 2018 at 06:19:43PM +0300, Vasiliy Tolstov wrote: > > > > Hi! I want to have ability to connect to
2013 Dec 28
1
Re: how to use openConsole and openGraphics
the theory , i mean how libvirt get guest's console( or graphic screen), via what kind of channel, then how libvirt show guest's screen. thanks, Eric Blake At 2013-12-28 04:30:30,"Eric Blake" <eblake@redhat.com> wrote: >On 12/26/2013 01:46 AM, yue wrote: >> hi,all >> 1.how to use openConsole and openGraphics? > >See tools/virsh-console.c for an
2008 Sep 05
0
[PATCH] Janitorial work on xc_save.c
# HG changeset patch # User Brendan Cully <brendan@cs.ubc.ca> # Date 1220640849 25200 # Node ID 6e53036deb06fdbaa55489610ea8fc9c9b67ca64 # Parent 0eab1869ef6649878e7f2f5f5af534122aca3a4c Janitorial work on xc_save.c Remove an unused variable. Replace errx by warnx when cleanup code follows. diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c --- a/tools/xcutils/xc_save.c +++