[Qemu-devel] [PATCH v3 00/39] Memory API, batch 2: PCI devices

79 messages, 4 authors, 2011-08-08 · page 2 of 2 · open the first message on its own page

Re: [Qemu-devel] [PATCH v3 01/39] virtio-pci: get config on init

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2011-08-08 12:56:09

On Mon, Aug 08, 2011 at 07:45:19AM -0500, Anthony Liguori wrote:
On 08/08/2011 05:36 AM, Michael S. Tsirkin wrote:
quoted
quoted
Thinking more closely, I don't think this right.

Updating on map ensured that the config was refreshed after each
time the bar was mapped.  In the very least, the config needs to be
refreshed during reset because the guest may write to the guest
space which should get cleared after reset.

Regards,

Anthony Liguori
Not sure I understand. Which register, for example,
do you have in mind?
Could you clarify please?
Actually, you never need to call config_get() AFAICT.  It's called
in every read/write access.
Every read, yes. But every write? Are you sure?
 So I think the code you changed is
extraneous now.

Regards,

Anthony Liguori

-- 
MST

Re: [Qemu-devel] [PATCH v3 01/39] virtio-pci: get config on init

From: Anthony Liguori <hidden>
Date: 2011-08-08 13:02:15

On 08/08/2011 07:56 AM, Michael S. Tsirkin wrote:
On Mon, Aug 08, 2011 at 07:45:19AM -0500, Anthony Liguori wrote:
quoted
On 08/08/2011 05:36 AM, Michael S. Tsirkin wrote:
quoted
quoted
Thinking more closely, I don't think this right.

Updating on map ensured that the config was refreshed after each
time the bar was mapped.  In the very least, the config needs to be
refreshed during reset because the guest may write to the guest
space which should get cleared after reset.

Regards,

Anthony Liguori
Not sure I understand. Which register, for example,
do you have in mind?
Could you clarify please?
Actually, you never need to call config_get() AFAICT.  It's called
in every read/write access.
Every read, yes. But every write? Are you sure?
Yeah, not on write, but I think this is a bug.  get_config() should be 
called before doing the memcpy() in order to have a proper RMW.

Regards,

Anthony Liguori
quoted
  So I think the code you changed is
extraneous now.

Regards,

Anthony Liguori

Re: [Qemu-devel] [PATCH v3 01/39] virtio-pci: get config on init

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2011-08-08 13:13:52

On Mon, Aug 08, 2011 at 08:02:08AM -0500, Anthony Liguori wrote:
On 08/08/2011 07:56 AM, Michael S. Tsirkin wrote:
quoted
On Mon, Aug 08, 2011 at 07:45:19AM -0500, Anthony Liguori wrote:
quoted
On 08/08/2011 05:36 AM, Michael S. Tsirkin wrote:
quoted
quoted
Thinking more closely, I don't think this right.

Updating on map ensured that the config was refreshed after each
time the bar was mapped.  In the very least, the config needs to be
refreshed during reset because the guest may write to the guest
space which should get cleared after reset.

Regards,

Anthony Liguori
Not sure I understand. Which register, for example,
do you have in mind?
Could you clarify please?
Actually, you never need to call config_get() AFAICT.  It's called
in every read/write access.
Every read, yes. But every write? Are you sure?
Yeah, not on write, but I think this is a bug.  get_config() should
be called before doing the memcpy() in order to have a proper RMW.

Regards,

Anthony Liguori
Probably not noticeable because guests don't do the RMW
in practice.
We also send the config over on migration.
That's probably a bug as well ...

-- 
MST

Re: [Qemu-devel] [PATCH v3 01/39] virtio-pci: get config on init

From: Anthony Liguori <hidden>
Date: 2011-08-08 13:15:32

On 08/08/2011 08:14 AM, Michael S. Tsirkin wrote:
Probably not noticeable because guests don't do the RMW
in practice.
We also send the config over on migration.
That's probably a bug as well ...
It's probably unnecessary, but I don't think it's a bug..

Regards,

Anthony Liguori

Previous page

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help