Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-users

Re: [Xen-users] CoW works on Windows guest?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] CoW works on Windows guest?
From: "Orathai Sukwong" <kobkob@xxxxxxxxx>
Date: Fri, 29 Sep 2006 13:44:37 -0400
Delivery-date: Fri, 29 Sep 2006 10:46:10 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VuEBTi/eJkUdJEMLbV9SnYC+7a9ZUcuWQw21QSz0hlDx5QMF+VEc0DigwsdA0Scc1OJrxy10che+N88KR1a0sv0/GOwze13y8nYlSOX8I1Dd0W7N7Z3R2277ci+yC2vJhd289nh9QXlZiwNQrRiZLCN2E6Yt2WnZB1dzUJzi04Q=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <748f85310609291016t5bfa28cdk98a73b4a78db2677@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <748f85310609280723l49ca9725nf6a28fa234c1353f@xxxxxxxxxxxxxx> <m3psdf51av.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <748f85310609281151q586a21b7if3a97e384f59eae9@xxxxxxxxxxxxxx> <m364f74jr1.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <748f85310609290802t5e3d1363u86f94114a2e850f5@xxxxxxxxxxxxxx> <m3fyea3a2e.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <748f85310609291016t5bfa28cdk98a73b4a78db2677@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I know the problem is. This line failed:

 handle->dirty_bitmaps = calloc(handle->bitmap_count, sizeof(uint32_t));

Calloc failed to allocate the dirty_bitmaps.

Is that because it's out of heap memory?

Thanks.



On 9/29/06, Orathai Sukwong <kobkob@xxxxxxxxx> wrote:
You might try the latest version of the kernel module and tools that
are in the development tree:

  http://static.danplanet.com/hg/dm-userspace/

Note that you *must* rebuild the kernel module and both cowd and
dscow_plugin if you move to the newer version.  This should be easy to
do outside of your xen tree:

  # cd dm-userspace/module
  # cp dm-userspace.h /lib/modules/`uname -r`/build/include/linux
  # make
  # insmod ./dm-user.ko
  # cd../tools/cowd
  # ./autogen && ./configure --enable-internal-dmu
  # make && make install


 I did all that. With this dscow_tool & cowd binaries, I still have got the same problem. However, the seg fault happens in slightly different position.

Program received signal SIGSEGV, Segmentation fault.
dscow_create (filename=0x0, base=0xbfe1099f "/xenimages/test.img",
    block_size=0) at dscow_ops.c:349
349                     handle->dirty_bitmaps[i] = 1;
(gdb) print i
$1 = 0


And i is declared in int.
--------------------------------
struct dscow {
        struct dscow_disk_header header;

        uint64_t blocks;
        uint32_t *bitmap;
        uint32_t bitmap_count;
        uint32_t *dirty_bitmaps;
        char *base_filename;

        int fd;
        int dirty;
};

This image size is 4096000000 bytes (4.1 GB).

Thank you.



We have a tree on xenbits now.  Eventually, we will push an updated
version of the Xen tree with the latest patches integrated directly.

--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users