WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: fs-backend on -unstable

To: Jody Belka <lists-xen@xxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: fs-backend on -unstable
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Thu, 26 Mar 2009 05:18:28 -0700 (PDT)
Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 26 Mar 2009 05:19:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238069908; bh=MFTYn1ZaiZNAMIfwIKhP8KH9K6poxqRg9LPZwP9i7UM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=5paMH54HjSAnPzwAZG+Fx2yLQhI1oXFbwsSIa6FzJwYk1A7aNeSKLILXiObss4z+jtkBA46iqUWmdnp4rCZ9O40Op9G9HthJntceXnGwAr3junvKMXw3x6jIO682QCsahejloerMCsGr4t1dhzhX98A/vPGKSDJwGtaYbOPmi2A=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=WvBsVuBDGo2eiF/KmzTGV+vcPSM2c8zjcD6Bz5O29qCvcf6yN8qiDBPaUimxeuJnNovS38oz0XhfH59HziVdsAB2eZ+AUTRtoXMSLK3CZZPpu/YqRNT0WbqdWhcFwWYJ4YkbIIG6DOZdaIHW3H56CODoxVfxLko0qiT4xuhR4jY=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49CB570D.2000101@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bderzhavets@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Patch applied to /usr/src/xen-unstable.hg/tools/ioemu-dir/hw/ide.c.

# cd /usr/src/xen-unstable.hg
# find . -name ide.c -print
./stubdom/ioemu/hw/ide.c
./tools/ioemu-remote/hw/ide.c
# ls -l ./stubdom/ioemu/hw/ide.c
lrwxrwxrwx 1 root src 50 2009-03-26 07:45 ./stubdom/ioemu/hw/ide.c -> /usr/src/xen-unstable.hg//tools/ioemu-dir/hw/ide.c

# make tools
# make install-tools
# cd stubdom # there is symlink to ./tools/ioemu-remote/ide.c
# make
# make install

System restarted (just in case).
No luck (just same picture as before) under Xen Unstable & Suse's 2.6.27-5

Boris.

--- On Thu, 3/26/09, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: fs-backend on -unstable
To: "Jody Belka" <lists-xen@xxxxxxxx>
Cc: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx>, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>, "Xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Date: Thursday, March 26, 2009, 6:21 AM

Jody Belka wrote:

> Now, the stub domain isn't actually working for me anyway, even on
> non-pvops0, but it is able to talk to the fs-backend at least. To show
> what that looks like, I've attached a couple of emails I sent
off-list.



There are some known issues that affect stubdoms at the moment, since
they involve some changes made on qemu upstream I am trying to find a
solution there.

However if you want to test the latest stubdoms you can try this patch,
it works for me.

---

diff --git a/hw/ide.c b/hw/ide.c
index 7031ba1..a97c78b 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -1056,10 +1056,11 @@ static int dma_buf_prepare(BMDMAState *bm, int
is_write)
uint32_t addr;
uint32_t size;
} prd;
- int l, len;
+ int l, len, n;
void *mem;
target_phys_addr_t l1;

+ n = s->nsector <= IDE_DMA_BUF_SECTORS ? s->nsector :
IDE_DMA_BUF_SECTORS;
qemu_iovec_init(&s->iovec, s->nsector / (TARGET_PAGE_SIZE/512) +
1);
s->io_buffer_size = 0;
for(;;) {
@@ -1082,6 +1083,13 @@ static int dma_buf_prepare(BMDMAState *bm, int is_write)
l = bm->cur_prd_len;
if (l > 0) {
l1 = l;
+ if (l1 > IDE_DMA_BUF_SECTORS * 512)
+ l1 = IDE_DMA_BUF_SECTORS * 512;
+ if (s->io_buffer_size + l1 > IDE_DMA_BUF_SECTORS * 512) {
+ l1 = IDE_DMA_BUF_SECTORS * 512 - s->io_buffer_size;
+ if (!l1)
+ return s->io_buffer_size != 0;
+ }
mem = cpu_physical_memory_map(bm->cur_prd_addr, &l1,
is_write);
if (!mem) {
break;
@@ -1263,6 +1271,8 @@ static void ide_read_dma_cb(void *opaque, int ret)

/* launch next transfer */
n = s->nsector;
+ if (n > IDE_DMA_BUF_SECTORS)
+ n = IDE_DMA_BUF_SECTORS;
s->io_buffer_index = 0;
s->io_buffer_size = n * 512;
if (dma_buf_prepare(bm, 1) == 0)
@@ -1412,6 +1422,8 @@ static void ide_write_dma_cb(void *opaque, int ret)
}

n = s->nsector;
+ if (n > IDE_DMA_BUF_SECTORS)
+ n = IDE_DMA_BUF_SECTORS;
s->io_buffer_size = n * 512;
/* launch next transfer */
if (dma_buf_prepare(bm, 0) == 0)

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

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