Displaying 20 results from an estimated 100 matches similar to: "[patch] calloc arguments"
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
[PATCH 6/8] HVM save restore: guest memory handling
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
add support for save/restore HVM guest memory
diff -r bb1c450b2739 tools/libxc/xc_hvm_restore.c
--- a/tools/libxc/xc_hvm_restore.c Thu Jan 11 21:03:11 2007 +0800
+++ b/tools/libxc/xc_hvm_restore.c Thu Jan 11 21:05:45 2007 +0800
@@ -31,6 +31,40 @@
#include <xen/hvm/ioreq.h>
2011 May 06
14
[PATCH 0 of 4] Use superpages on restore/migrate
This patch series restores the use of superpages when restoring or
migrating a VM, while retaining efficient batching of 4k pages when
superpages are not appropriate or available.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2008 Feb 27
0
PATCH: Make QEMU send logs to stderr
The QEMU code in Xen has a custom patch which stops QEMU sending its log
messages to stderr as vanilla QEMU would. Instead it dup()s FD 2 on to
/var/log/xen/qemu-dm-{DOMID}.log
This is fine in principle, but it assumes that XenD is the only thing that
will ever want to run qemu-dm. With the use of Xenner, qemu-dm processes
may be run by the ''xenner'' program directly. Xenner in
2008 Sep 28
2
is_mapped() in xc_domain_save()
Hi all,
I think I have a pretty good grasp on domain save/migration code in
xc_domain_save() in Xen 3.2.x, except for the what the is_mapped()
macro is doing in following:
/* Hypercall interfaces operate in PFNs for HVM guests
* and MFNs for PV guests */
if ( hvm )
pfn_type[batch] = n;
else
pfn_type[batch] = pfn_to_mfn(n);
if ( !is_mapped(pfn_type[batch]) )
{
/*
** not currently
2007 Feb 12
0
[PATCH] lift physical address restriction in svae/restore code
Bump this to 44 bits for x86-32 and 52 bits for x86-64.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Index: 2007-02-07/tools/libxc/xc_linux_restore.c
===================================================================
--- 2007-02-07.orig/tools/libxc/xc_linux_restore.c 2007-01-17 11:16:20.000000000 +0100
+++ 2007-02-07/tools/libxc/xc_linux_restore.c 2007-02-12 09:06:05.000000000 +0100
2012 Oct 31
0
[PATCH 00/02] broken page handle wrt migration
These 2 patches are used to handle broken page wrt migration. Generally there are 2 cases: the broken page occur before migration, and the broken page occur during migration.
Patch 01 handles the case that broken page occurred before migration: At the sender, the broken page would not be copied to target while its pfn_type and pfn number would be transferred to target, so that at target, it would
2010 Sep 02
6
[PATCH]ioemu: fix altgr-insert behavior
When access to a Xen DomU (Linux) from a VNC client in Windows, alt-gr key is not working properly. When Alt + another key pressed, vncserver receives Altgr down, Altgr up and key down messages in order, that causes incorrect output.
With following patch, when vncerver receives key down message, it first check if the keysym needs altgr modifer, if it needs altgr modifier but altgr is not
2011 Apr 11
0
read extended-info signature failed
Hi,
I am new to the list although not really new to Xen - I would like to shoot
you a quick one regarding the following message logged on xend.log:
DEBUG (XendCheckpoint:200) restore:shadow=0x0, _static_max=0x201,
_static_min=0x201,
DEBUG (balloon:145) Balloon: 29722616 KiB free; need 525312; done.
DEBUG (XendCheckpoint:217) [xc_restore]: /usr/lib64/xen/bin/xc_restore 22 2
1 2 0 0 0
INFO
2006 Jul 28
1
Re: [Xen-changelog] [xen-unstable] [IA64] Creates tools/libxc/ia64 directory.
On Fri, 2006-07-28 at 16:20 +0000, Xen patchbot-unstable wrote:
> diff -r dc26ac2f7718 -r dab0a5650e6d tools/libxc/Makefile
> --- a/tools/libxc/Makefile Mon Jul 10 14:14:11 2006 -0600
> +++ b/tools/libxc/Makefile Tue Jul 11 11:29:25 2006 -0600
> @@ -30,9 +30,11 @@ GUEST_SRCS-y += xc_load_bin.c
> GUEST_SRCS-y += xc_load_bin.c
> GUEST_SRCS-y += xc_load_elf.c
>
2006 Apr 20
1
xm restore fails
xen_changeset : Sun Apr 16 15:45:57 2006 +0100 9629:07408313ce33
/var/log/xend.log:
[2006-04-19 20:42:09 xend] DEBUG (balloon:126) Balloon: free 1348; need
521; done.
[2006-04-19 20:42:09 xend] DEBUG (XendCheckpoint:148) [xc_restore]:
/usr/lib/xen/bin/xc_restore 11 20 42 133120 1 2
[2006-04-19 20:42:10 xend] ERROR (XendCheckpoint:227) xc_linux_restore
start: max_pfn = 20800
2006 Jul 13
3
[PATCH] Update new qemu-dm to spawn vncviewer
This patch does 3 things to the new device model, qemu-dm:
1) Add `vncviewer'' as an option to `qemu-dm'' to spawn a `vncviewer'' process.
2) Have the `vncviewer'' config parameter translate to the `vncviewer'' flag to
`qemu-dm''.
3) Add a new config parameter, `vncconnect'', that spawns a `vncviewer''
process that looks for a
2007 May 21
2
new_ctxt_format in xc_linux_restore?
Guess following lines as typo since new context format is used to
support fast suspend with online vcpu context saved in image file:
if ( !new_ctxt_format ) <--- Opposite should be used here???
ctxt.flags |= VGCF_online;
Or do I misunderstand save/restore logic? Also interested why
smp restore works if a true typo above. :-)
Thanks,
Kevin
2009 Nov 03
2
R 2.10.0: Error in gsub/calloc
I'm running R 2.10.0 under Mac OS X 10.5.8; however, I don't think this
is a Mac-specific problem.
I have a very large (158,908 possible sentences, ca. 58 MB) plain text
document d which I am
trying to tokenize: t <- strapply(d, "\\w+", perl = T). I am
encountering the following error:
Error in base::gsub(pattern, rs, x, ...) :
Calloc could not allocate (-1398215180 of
2009 Nov 03
1
hivex.c: unchecked calloc
Hi Rich,
There's an unchecked calloc in hivex.c's hive_open:
h->bitmap = calloc (1 + h->size / 32, 1);
...
This subsequent deref could cause a segfault:
BITMAP_SET (h->bitmap, blkoff);
2015 Jun 16
1
[PATCH] btrfs: use calloc instead of malloc+memset
Small optimization, and eases the code.
---
daemon/btrfs.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index f02acb1..7b14bac 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -1723,12 +1723,11 @@ do_btrfs_balance_status (const char *path)
nlines = count_strings (lines);
- ret = malloc(sizeof *ret);
+ ret = calloc (1,
2015 Jun 17
2
[PATCH] btrfs: keep calloc and its error message match
commit 3f4ba2e98d21746723d291939ccc2e1f1526aa6d
left some error messages unchanged.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
---
daemon/btrfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 7b14bac..e8059db 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -479,7 +479,7 @@ do_btrfs_subvolume_list (const
2015 Jun 17
0
Re: [PATCH] btrfs: keep calloc and its error message match
On Wednesday 17 June 2015 10:44:09 Chen Hanxiao wrote:
> commit 3f4ba2e98d21746723d291939ccc2e1f1526aa6d
> left some error messages unchanged.
That commit was about converting a couple of malloc+memset to calloc,
not about replacing messages in other parts. Hence, this note is wrong.
>
> Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
> ---
> daemon/btrfs.c | 4
2006 Apr 13
2
Calloc : syntax error
Hi,
I have issue with Calloc : at the compilation step, gcc tells "error :
syntax error before ')' token".
When I use the classical C calloc... free, everything's fine.
Here's the part of code :
a = (double*) Calloc(*n,sizeof(double));
when i remove this line or replace it with the calloc, it's ok
Hint : In the header file R.h, there's a line :
/* for PROBLEM
2007 Jan 30
0
calloc bug in RODBC 1.1-7 and later?
I'm trying to load Affy Annotation data from an Access database into R using
RODBC. This has worked fine for quite some time. The bug seems to be
correlated to RODBC versions 1.1-7 and later.
Works fine: R 2.2.0 with RODBC 1.1-4; R 2.3.0 or R 2.4.1 with RODBC 1.1-6
Fails: R 2.3.1 with RDOBC 1.1-7; R 2.4.1 with RODC 1.1-7 or 1.1-8
Details
=====
This works fine:
Version 2.2.0
2024 Aug 13
1
[PATCH] Reorder calloc arguments
Reordering calloc arguments silences gcc compiler warnings of
latest versions. Spotted with OpenSSH-portable on a Linux system.
Okay?
Index: cipher.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/cipher.c,v
diff -u -p -u -p -r1.121 cipher.c
--- cipher.c 17 May 2024 02:39:11 -0000 1.121
+++ cipher.c 13 Aug 2024 16:46:00 -0000
@@ -249,7 +249,7