Windows runtime error
This commit breaks Windows giving runtime error "Unknown device 'virtio-balloon-pci'"
ec6bd8dea77478f32981a5df49f66ca2430ad19d
Author: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Committer: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Parent: 2567f5796c38238d6f2055f074e347a0338140ce (Compile most Xen files only once)
Fix arm-softmmu breakage
Don't use whole-archive for hwlib or libqemu objects
Quoted 8 lines · Consul
This commit breaks Windows giving runtime error "Unknown device 'virtio-balloon-pci'"
ec6bd8dea77478f32981a5df49f66ca2430ad19dAuthor: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Committer: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Parent:2567f5796c38238d6f2055f074e347a0338140ce(Compile most Xen files only once)
Quoted 5 lines
Fix arm-softmmu breakage
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>
hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
Are you on a Solaris host by chance?
Regards,
Anthony Liguori
Quoted 2 lines
Quoted 7 lines
Quoted 3 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'
There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
Paul
Quoted 6 lines · Paul Brook
Quoted 6 lines
Quoted 4 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Quoted 8 lines
Quoted 2 lines
Why did this break arm-softmmu? It builds fine for me.
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
So a fresh rebuild "fixes" the problem?
Blue, can you revert this commit then?
Regards,
Anthony Liguori
Quoted 3 lines
Paul
Quoted 9 lines · Anthony Liguori
Quoted 8 lines · Paul Brook
Quoted 7 lines
Quoted 3 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
Quoted 8 lines
Quoted 6 lines
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
So a fresh rebuild "fixes" the problem?
No, sorry, I mean occasionally you end up with a stale libhw.a.
Quoted 1 line
Blue, can you revert this commit then?
Both this (whole-archive) and the preceding fdc change need to be reverted.
The scsi bits are probably ok, but the fdc is tied to the ISA DMA engine. We don't currently have a target independent method of handling inter-device data transfer.
Paul
Quoted 22 lines · Paul Brook
Quoted 10 lines · Anthony Liguori
Quoted 8 lines · Paul Brook
Quoted 8 lines
Quoted 4 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
Quoted 9 lines
Quoted 7 lines
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
So a fresh rebuild "fixes" the problem?
Quoted 8 lines
No, sorry, I mean occasionally you end up with a stale libhw.a.
Quoted 2 lines
Blue, can you revert this commit then?
Both this (whole-archive) and the preceding fdc change need to be reverted.
I've reverted the whole-archive change and the fdc. I've left scsi intact. They were blocking my testing of other patches.
Everything now links and seems to work.
Regards,
Anthony Liguori
Quoted 12 lines · Anthony Liguori
Quoted 1 line · Consul
This commit breaks Windows giving runtime error "Unknown device
'virtio-balloon-pci'"
Quoted 6 lines
ec6bd8dea77478f32981a5df49f66ca2430ad19dAuthor: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Committer: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Parent:2567f5796c38238d6f2055f074e347a0338140ce(Compilemost Xen files only once)
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Fix arm-softmmu breakage
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
No, it works fine without it.
Quoted 1 line
Why did this break arm-softmmu? It builds fine for me.
Because fdc.o was forced to be linked in with whole-archive but the stuff that it depends on may be undefined on ARM. With whole-archive removed from hwlib, fdc.o is not referenced in anywhere in arm-softmmu and it will not be pulled in.
Quoted 20 lines · Paul Brook
Quoted 9 lines · Anthony Liguori
Quoted 8 lines · Paul Brook
Quoted 7 lines
Quoted 3 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
Quoted 8 lines
Quoted 6 lines
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
So a fresh rebuild "fixes" the problem?
Quoted 7 lines
No, sorry, I mean occasionally you end up with a stale libhw.a.
Quoted 1 line
Blue, can you revert this commit then?
Both this (whole-archive) and the preceding fdc change need to be reverted.
I disagree, whole-archive should only be used very sparingly, basically for the block/* stuff only. Otherwise most emulators will be linked with a lot of unnecessary objects files from the archives that will never be used on that platform.
Quoted 41 lines · Anthony Liguori
Quoted 34 lines · Paul Brook
Quoted 18 lines · Anthony Liguori
Quoted 15 lines · Paul Brook
Quoted 12 lines
Quoted 7 lines
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Why did this break arm-softmmu? It builds fine for me.
In function `fdctrl_stop_transfer':
fdc.c:1086: undefined reference to `DMA_release_DREQ'Quoted 8 lines
Quoted 5 lines
There appears to be a missing dependency somewhere, I suspect libhw*.a doesn't get rebuilt when you move objects from Makefile.target to Makefile.hw.
So a fresh rebuild "fixes" the problem?
No, sorry, I mean occasionally you end up with a stale libhw.a.
Quoted 5 lines
Quoted 3 lines
Blue, can you revert this commit then?
Both this (whole-archive) and the preceding fdc change need to be
Quoted 8 lines
reverted.
Quoted 2 lines
I've reverted the whole-archive change and the fdc. I've left scsi intact.
They were blocking my testing of other patches.Everything now links and seems to work.
Good for you. Should I then revert the qdev commit that broke pcnet (9d07d7579bcaf01e05c511c63d091ed2ac310091), because now Sparc crashes immediately when network is used?
Quoted 21 lines · Blue Swirl
Quoted 19 lines · Anthony Liguori
Quoted 2 lines · Consul
This commit breaks Windows giving runtime error "Unknown device
'virtio-balloon-pci'"
Quoted 6 lines
ec6bd8dea77478f32981a5df49f66ca2430ad19dAuthor: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Committer: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Parent:2567f5796c38238d6f2055f074e347a0338140ce(Compilemost Xen files only once)
Quoted 4 lines
Fix arm-softmmu breakage
Don't use whole-archive for hwlib or libqemu objects
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
No, it works fine without it.
virtio-pci has a constructor and all static functions. It'll be removed from the archive without whole-archive. This is failure that we're seeing.
In general, hwlib will need whole-archive because hwlib will contain things with constructors.
Quoted 8 lines
Quoted 2 lines
Why did this break arm-softmmu? It builds fine for me.
Because fdc.o was forced to be linked in with whole-archive but the stuff that it depends on may be undefined on ARM. With whole-archive removed from hwlib, fdc.o is not referenced in anywhere in arm-softmmu and it will not be pulled in.
fdc.o shouldn't be in hwlib if it depends on stuff not defined in a particular architecture.
Regards,
Anthony Liguori
Quoted 5 lines · Blue Swirl
I disagree, whole-archive should only be used very sparingly, basically for the
block/*stuff only. Otherwise most emulators will be linked with a lot of unnecessary objects files from the archives that will never be used on that platform.
I don't think unnecessary object files are a huge concern. If it is, the better thing is to use a per-target config instead of relying on ld to figure things out.
Regards,
Anthony Liguori
Quoted 4 lines · Blue Swirl
Good for you. Should I then revert the qdev commit that broke pcnet (
9d07d7579bcaf01e05c511c63d091ed2ac310091), because now Sparc crashes immediately when network is used?
qdev should have gotten more testing before being committed. I won't disagree with you there.
Your changes didn't introduce new functionality. The risk of reverting it was very low. I also did give you a chance to fix it first, I have no way of knowing how long that was going to take you. It completely broke target-i386 so its a major blocker. Paul also agreed that it should be reverted.
Regards,
Anthony Liguori
Quoted 38 lines · Anthony Liguori
Quoted 10 lines · Blue Swirl
Quoted 7 lines · Anthony Liguori
Quoted 3 lines · Consul
This commit breaks Windows giving runtime error "Unknown device
Quoted 8 lines
Quoted 8 lines
'virtio-balloon-pci'"
Quoted 5 lines
ec6bd8dea77478f32981a5df49f66ca2430ad19dAuthor: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Committer: Blue Swirl <[email protected]> 2009-05-21 11:22:59
Parent:2567f5796c38238d6f2055f074e347a0338140ce(Compile
Quoted 17 lines
Quoted 16 lines
Quoted 2 lines
most Xen files only once)
Quoted 8 lines
Fix arm-softmmu breakage
Don't use whole-archive for hwlib or libqemu objects
Signed-off-by Blue Swirl <[email protected]>hwlib definitely needs whole-archive.
Quoted 6 lines
Quoted 3 lines
No, it works fine without it.
virtio-pci has a constructor and all static functions. It'll be removed
from the archive without whole-archive. This is failure that we're seeing.
Oh, I see now! Sorry for the noise.
Quoted 2 lines
In general, hwlib will need whole-archive because hwlib will contain things
with constructors.
Right.
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Why did this break arm-softmmu? It builds fine for me.
Quoted 8 lines
Quoted 6 lines
Because fdc.o was forced to be linked in with whole-archive but the stuff that it depends on may be undefined on ARM. With whole-archive removed from hwlib, fdc.o is not referenced in anywhere in arm-softmmu and it will not be pulled in.
fdc.o shouldn't be in hwlib if it depends on stuff not defined in a
particular architecture.
It would be nice to avoid this restriction. For example, fdc init could take pointers to the DMA functions as parameters.
Quoted 2 lines
It would be nice to avoid this restriction. For example, fdc init could take pointers to the DMA functions as parameters.
It, could, but it'll need rewriting anyway when it gets converted to the new device API. What we really want is a consistent way of transferring data between devices (aka "DMA channels"). We already have several different ad-hoc implementations. pcnet, etraxf_eth and omap_dss and pxa2xx_dma are ones that spring to mind.
Paul
Quoted 5 lines · Blue Swirl
I disagree, whole-archive should only be used very sparingly, basically for the
block/*stuff only. Otherwise most emulators will be linked with a lot of unnecessary objects files from the archives that will never be used on that platform.
I think even for block/* we should not use whole archive. Specifying the full list of objects, or perhaps a partially linked object is much cleaner.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 8 lines · Avi Kivity
Quoted 5 lines · Blue Swirl
I disagree, whole-archive should only be used very sparingly, basically for the
block/*stuff only. Otherwise most emulators will be linked with a lot of unnecessary objects files from the archives that will never be used on that platform.I think even for
block/*we should not use whole archive. Specifying the full list of objects, or perhaps a partially linked object is much cleaner.
I'm not opposed to this. I don't see a lot of advantages to using a static library.
Regards,
Anthony Liguori