qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH master/stable-1.0] pci: fix corrupted pci conf i


From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH master/stable-1.0] pci: fix corrupted pci conf index register by unaligned write
Date: Sun, 8 Jan 2012 14:45:17 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Jan 08, 2012 at 12:48:05PM +0200, Avi Kivity wrote:
> On 01/08/2012 12:12 PM, Michael S. Tsirkin wrote:
> > > >
> > > > > And the check for unaligned writes is, well, unusual :-)
> > > 
> > > What's unusual?
> > > 
> > > 
> > > > This seems to be how memory API behaves ... right, Avi?
> > > > Maybe this should be documented somewhere.
> > > 
> > > Document what?
> >
> > That address passed to callbacks is in fact an offset
> > from start of the region.
> >
> 
> It's documented already (and it's not new - since 8da3ff18097, Dec 2008).

True, memory.h explicitly says:
@addr is relative to @mr

But now that's mentioned, I have a question:
we could also specify min access size and disable
unaligned access in ops.valid structure.
That would trigger machine checks on access errors
instead of ignoring them as we do now.
Anyone knows offhand what does real hardware do?

> -- 
> error compiling committee.c: too many arguments to function



reply via email to

[Prev in Thread] Current Thread [Next in Thread]