[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.