search for: virstreamptr

Displaying 7 results from an estimated 7 matches for "virstreamptr".

2018 Dec 03
2
Re: console type tcp with logging
...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: virStorageVolDownload(virStorageVolPtr vol, virStreamPtr stream, unsigned long long offset, unsigned long long length, unsigned int flags) I think that we can use all of this, but instead of vol, what we need to recv? Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru
2013 Sep 18
2
Trouble using virStream with callbacks
...gt; #include <libvirt/libvirt.h> #include <fcntl.h> #define CONNECT_URI "qemu:///system" #define DOMAIN "TestVM" #define CHANNEL "channel.0" #define BUF_SIZE 80 int stream_active = 1; void stdin_to_stream(int watch, int fd, int events, void *opaque) { virStreamPtr stream = *((virStreamPtr*)(opaque)); if (events & VIR_EVENT_HANDLE_READABLE) { char buf[1024]; int bytes_read = read(fd, buf, sizeof(buf)); if (bytes_read > 0) virStreamSend(stream, buf, bytes_read); } if (events & (VIR_EVENT_HANDLE_ERROR|VIR_EVENT_HAN...
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
2018 Dec 03
0
Re: console type tcp with logging
...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: > virStorageVolDownload(virStorageVolPtr vol, > virStreamPtr stream, > unsigned long long offset, > unsigned long long length, > unsigned int flags) > > I think that we can use all of this, but instead of vol, what we need to recv? We need the domain object, and the device ali...
2015 Feb 01
2
Vepa use vf?
1. Does vepa mode in libvirt use sr-iov ? 2. How can I do port mirroring with sr-iov? vepa This network uses a macvtap "direct" connection in "vepa" mode to connect each guest to the network (this requires that the physical interfaces used be connected to a vepa-capable hardware switch. The physical interface to be used will be picked from among those listed in
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 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
...the result is, to say the least, not very organized. These patches take a first step at cleaning up the mess by abstracting out socket operations from the rest of the code. The purpose of this is to allow us to slot in a different connection layer under the library-side protocol (ie. one based on virStreamPtr for remote libvirt connections). But the refactoring is also useful both because it simplifies the code and because it would make it easier to add multiple daemon connections. These changes pass all the tests with both libvirt & appliance attach-methods, and with valgrind; *except* for tests/...