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] [PATCH 2/2] hvmloader->rombios use C/H/S, LBA when have

To: DuanZhenzhong <zhenzhong.duan@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/2] hvmloader->rombios use C/H/S, LBA when have been set by qemu
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 26 Oct 2010 17:23:18 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, joe.jin@xxxxxxxxxx
Delivery-date: Tue, 26 Oct 2010 09:23:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CC51B4E.7050400@xxxxxxxxxx>
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>
Newsgroups: chiark.mail.xen.devel
References: <20100805233516.GB21473@xxxxxxxxxxxxxxxxxxxxxxx> <4CC51B4E.7050400@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
DuanZhenzhong writes ("[Xen-devel] [PATCH 2/2] hvmloader->rombios use C/H/S, 
LBA when have been set by qemu"):
> This is due to some ide state pointer in ide.c is NULL.

How did the pointer become null ?  I think the bug has happened
earlier and that your patch is therefore not correct.

For example,

> static inline void ide_set_irq(IDEState *s)
> {
> -    BMDMAState *bm = s->bmdma;
> -    if (!s->bs) return; /* ouch! (see ide_flush_cb) */
> +    BMDMAState *bm;
> +    if (!s || !s->bs) return; /* ouch! (see ide_flush_cb) */

I think it is always wrong to call ide_set_irq(NULL).

Ian.

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

<Prev in Thread] Current Thread [Next in Thread>