Displaying 10 results from an estimated 10 matches for "read_exact".
2012 May 23
4
Possible error restoring machine
...t read_extract does not handle EAGAIN/EWOULDBLOCK
(both can be returned on non blocking socket depending on file type and
Unix/Linux version) leading to a failure.
Does this make sense or is it impossible ??
Also note that rdexact (xc_domain_restore.c) handle data timeout but we
can still block in read_exact called by
xc_tmem_restore/xc_tmem_restore_extra.
Last note on rdexact, isn''t 1 second (HEARTBEAT_MS) too small if there
are network problems?
Frediano
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
...ed long hvirt_start;
+
+/* #levels of page tables used by the currrent guest */
+static unsigned int pt_levels;
+
+/* total number of pages used by the current guest */
+static unsigned long max_pfn;
+
+/* A table mapping each PFN to its new MFN. */
+static xen_pfn_t *p2m = NULL;
+
+static ssize_t
+read_exact(int fd, void *buf, size_t count)
+{
+ int r = 0, s;
+ unsigned char *b = buf;
+
+ while (r < count) {
+ s = read(fd, &b[r], count - r);
+ if ((s == -1) && (errno == EINTR))
+ continue;
+ if (s <= 0) {
+ break;
+ }
+...
2009 Mar 10
0
Bug#519064: xen-utils-common: hvm migration fails because of missing /var/lib/xen/save
...ing to migrate (xm migrate) a guest from one host to another,
it simply fails. On the source host the virtual machine gets destroyed
without any warning message - on the destination host I see the following
error message in /var/log/xen/xend.log
[2009-03-10 08:01:22 9846] ERROR (XendCheckpoint:52) read_exact: EOF trying to read 21 (buf='')
and a python trace
[2009-03-10 08:01:22 9846] ERROR (XendDomain:1136) Restore failed
Traceback (most recent call last):
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomain.py", line 1134, in domain_restore_fd
return XendCheckpoint.restor...
2008 Nov 25
7
when timer go back in dom0 save and restore or migrate, PV domain hung
...g
+ memset(&domctl, 0, sizeof(domctl));
+ domctl.domain = dom;
+ domctl.cmd = XEN_DOMCTL_restoredomain;
+ frc = do_domctl(xc_handle, &domctl);
+ if ( frc != 0 )
+ {
+ ERROR("Unable to set flag of restore.");
+ goto out;
+ }
if ( read_exact(io_fd, &p2m_size, sizeof(unsigned long)) )
{
@@ -1120,6 +1130,8 @@
/* restore saved vcpu_info and arch specific info */
MEMCPY_FIELD(new_shared_info, old_shared_info, vcpu_info);
+ MEMCPY_FIELD(new_shared_info, old_shared_info, wc_nsec);
+ MEMCPY_FIELD(new_shared_info, ol...
2007 Sep 27
0
Migration failing (xen 3.0.3 on RHEL 5) with "not a valid guest state file: pfn count read"
...39;, ''domid'': ''5'',
''cpu/0/availability'': ''online'', ''memory/target'': ''512000'', ''store/port'':
''1''}
[2007-09-27 09:32:01 xend 27175] ERROR (XendCheckpoint:48) read_exact:
EOF trying to read 8 (buf='''')
[2007-09-27 09:32:01 xend.XendDomainInfo 27175] DEBUG
(XendDomainInfo:1463) XendDomainInfo.destroy: domid=5
[2007-09-27 09:32:01 xend.XendDomainInfo 27175] DEBUG
(XendDomainInfo:1471) XendDomainInfo.destroyDomain(5)
[2007-09-27 09:32:01 xend 27175] E...
2011 Apr 11
0
read extended-info signature failed
...domain_pause(self.domid)
Error: (3, ''No such process'')
I have traced back the error to the following code snippet in
tools/libxc/xc_linux_restore.c file ~ this is Xen 3.0.3, included in RHEL
5.5:
/* Read first entry of P2M list, or extended-info signature (~0UL). */
if (!read_exact(io_fd, p2m_frame_list, sizeof(long))) {
ERR("read extended-info signature failed");
goto out;
}
However, I am not sure under what circumstances that expression could return
false & trigger the error message. Any hint will be greatly appreciated!
Thanks!
--
Juan...
2008 Nov 27
1
Re: RE: Re: Re: when timer go back in dom0 save and restore ormigrate, PV domain hung
..._domctl(xc_handle, &domctl);
+ if ( frc != 0 )
+ {
+ ERROR("Unable to set flag
of restore.");
+ goto out;
+ }
if ( read_exact(io_fd, &p2m_size,
sizeof(unsigned long)) )
{
@@ -1120,6 +1130,8 @@
/* restore saved vcpu_info and arch specific info
*/
MEMCPY_FIELD(new_shared_info, old_shared_info,...
2010 Jun 01
31
XCP
Hi there,
We are using latest version of XCP on 6 hosts. While issuing VM.start or
VM.start_on xmlrpc functional call , it says :
{''Status'': ''Failure'', ''ErrorDescription'': [''SESSION_INVALID'',
''OpaqueRef:cfb6df14-387d-40a1-cc27-d5962cba7712'']}
However if I put VM.start in a loop maybe after
2013 Jul 15
21
[PATCH 00 of 21 RESEND] blktap3/drivers: Introduce tapdisk server.
This patch series copies the core of the tapdisk process from blktap2, with
updates coming from blktap2.5.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2007 Oct 24
16
PATCH 0/10: Merge PV framebuffer & console into QEMU
The following series of 10 patches is a merge of the xenfb and xenconsoled
functionality into the qemu-dm code. The general approach taken is to have
qemu-dm provide two machine types - one for xen paravirt, the other for
fullyvirt. For compatability the later is the default. The goals overall
are to kill LibVNCServer, remove alot of code duplication and/or parallel
impls of the same concepts, and