Re: [Qemu-devel] [PATCH 1/3] ide: Split error status from status register

2011-06-09 Thread Paolo Bonzini
On 06/09/2011 04:07 PM, Kevin Wolf wrote: I think you're right. We could enable it unconditionally (and change the bm->status line from = to |=), but anyway it's redundant if the subsections are present, so it wouldn't make a difference. Yes, I was thinking the same. Paolo

Re: [Qemu-devel] [PATCH 1/3] ide: Split error status from status register

2011-06-09 Thread Kevin Wolf
Am 09.06.2011 15:27, schrieb Paolo Bonzini: > On 06/09/2011 03:15 PM, Kevin Wolf wrote: >> +/* This function accesses bm->bus->error_status which is loaded only after >> + * BMDMA itself. This is why the function is called from ide_pci_post_load >> + * instead of being registered with VMState where

Re: [Qemu-devel] [PATCH 1/3] ide: Split error status from status register

2011-06-09 Thread Paolo Bonzini
On 06/09/2011 03:15 PM, Kevin Wolf wrote: +/* This function accesses bm->bus->error_status which is loaded only after + * BMDMA itself. This is why the function is called from ide_pci_post_load + * instead of being registered with VMState where it would run too early. */ +static int ide_bmdma_pos

[Qemu-devel] [PATCH 1/3] ide: Split error status from status register

2011-06-09 Thread Kevin Wolf
When adding the werror=stop mode, some flags were added to s->status which are used to determine what kind of operation should be restarted when the VM is continued. Unfortunately, it turns out that s->status is in fact a device register and as such is visible to the guest (some of the abused bits