#
9fbef1ac |
| 21-Nov-2010 |
Avi Kivity <avi@redhat.com> |
ide: convert bmdma address ioport to ioport_register()
cmd646, via compile tested, pci lightly boot tested.
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
#
b80d4a98 |
| 23-Jun-2010 |
Isaku Yamahata <yamahata@valinux.co.jp> |
pci: don't overwrite multi functio bit in pci header type.
Don't overwrite pci header type. Otherwise, multi function bit which pci_init_header_type() sets appropriately is lost. Anyway PCI_HEADER_T
pci: don't overwrite multi functio bit in pci header type.
Don't overwrite pci header type. Otherwise, multi function bit which pci_init_header_type() sets appropriately is lost. Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero which is already zero cleared.
how to test: run qemu and issue info pci to see whether a device in question is normal device, not pci-to-pci bridge. This is handy because guest os isn't required.
tested changes: The following files are covered by using following commands. sparc64-softmmu apb_pci.c, vga-pci.c, cmd646.c, ne2k_pci.c, sun4u.c ppc-softmmu grackle_pci.c, cmd646.c, ne2k_pci.c, vga-pci.c, macio.c ppc-softmmu -M mac99 unin_pci.c(uni-north, uni-north-agp) ppc64-softmmu pci-ohci, ne2k_pci, vga-pci, unin_pci.c(u3-agp) x86_64-softmmu acpi_piix4.c, ide/piix.c, piix_pci.c -vga vmware vmware_vga.c -watchdog i6300esb wdt_i6300esb.c -usb usb-uhci.c -sound ac97 ac97.c -nic model=rtl8139 rtl8139.c -nic model=pcnet pcnet.c -balloon virtio virtio-pci.c:
untested changes: The following changes aren't tested. prep_pci.c: ppc-softmmu -M prep should cover, but core dumped. unin_pci.c(uni-north-pci): the caller is commented out. openpic.c: the caller is commented out in ppc_prep.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
0be71e32 |
| 25-Jun-2010 |
Alex Williamson <alex.williamson@redhat.com> |
savevm: Add DeviceState param
When available, we'd like to be able to access the DeviceState when registering a savevm. For buses with a get_dev_path() function, this will allow us to create more u
savevm: Add DeviceState param
When available, we'd like to be able to access the DeviceState when registering a savevm. For buses with a get_dev_path() function, this will allow us to create more unique savevm id strings.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
a4673e27 |
| 14-Jun-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'kwolf/for-anthony' into staging
Conflicts: hw/pc.c
|
#
57234ee4 |
| 01-Jun-2010 |
Markus Armbruster <armbru@redhat.com> |
ide: Split non-qdev code off ide_init2()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
#
50a48094 |
| 22-Apr-2010 |
Igor V. Kovalenko <igor.v.kovalenko@gmail.com> |
cmd646: fix abort due to changed opaque pointer for ioport read
We cannot install different opaque pointer for read and write of the same i/o address.
- handle zero address in bmdma_writeb_common a
cmd646: fix abort due to changed opaque pointer for ioport read
We cannot install different opaque pointer for read and write of the same i/o address.
- handle zero address in bmdma_writeb_common and install the same opaque pointer for both read and write access.
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
70ae65f5 |
| 22-Apr-2010 |
Igor V. Kovalenko <igor.v.kovalenko@gmail.com> |
cmd646: pass pci_dev as it needs it
Instead of doing tricks to get the pci_dev, just pass it in the 1st place. Patch is a bit longer that reverting the pci_dev field, but it states more clearly (IM
cmd646: pass pci_dev as it needs it
Instead of doing tricks to get the pci_dev, just pass it in the 1st place. Patch is a bit longer that reverting the pci_dev field, but it states more clearly (IMHO) what we are doing.
It also fixes the bm test, now that you told me that ->unit is not always valid.
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
ea3fdd5d |
| 06-Jan-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'mst/for_anthony' into staging
|
#
409570a7 |
| 10-Dec-2009 |
Michael S. Tsirkin <mst@redhat.com> |
cmd646: symbolic names for pci registers
No functional changes. I verified that the generated binary does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <qui
cmd646: symbolic names for pci registers
No functional changes. I verified that the generated binary does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
show more ...
|
#
90228ee3 |
| 13-Dec-2009 |
Igor V. Kovalenko <igor.v.kovalenko@gmail.com> |
workaround for cmd646 bmdma register access while no dma is active
This is a workaround only, and is a partial revert of a few changes to BMDMAState which removed pci_dev field on the way.
- cmd646
workaround for cmd646 bmdma register access while no dma is active
This is a workaround only, and is a partial revert of a few changes to BMDMAState which removed pci_dev field on the way.
- cmd646 pci_from_bm() expects bm->unit value to correspond with bm data being passed to callback as opaque pointer. This breaks when write to dma control register of second channel happens when no dma operation is in progress, so bm->unit is zero for second channel, and pci_from_bm() returns garbage pointer. Crash happens shortly after that while dereferencing that pointer.
v0->v1: cleaned up dead code from pci_from_bm.
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
556cd098 |
| 09-Dec-2009 |
Markus Armbruster <armbru@redhat.com> |
qdev: Replace device names containing whitespace
Device names with whitespace require quoting in the shell and in the monitor. Some of the offenders are also overly long. Some have a more convenie
qdev: Replace device names containing whitespace
Device names with whitespace require quoting in the shell and in the monitor. Some of the offenders are also overly long. Some have a more convenient alias, some don't.
The place for verbose device names is DeviceInfo member desc. The name should be short & sweet.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
6e355d90 |
| 30-Oct-2009 |
Isaku Yamahata <yamahata@valinux.co.jp> |
pci: introduce pcibus_t to represent pci bus address/size instead of uint32_t
This patch is preliminary for 64 bit BAR support. Introduce dedicated type, pcibus_t, to represent pci bus address/size
pci: introduce pcibus_t to represent pci bus address/size instead of uint32_t
This patch is preliminary for 64 bit BAR support. Introduce dedicated type, pcibus_t, to represent pci bus address/size instead of uint32_t. Later this type will be changed to uint64_t.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
0392a017 |
| 30-Oct-2009 |
Isaku Yamahata <yamahata@valinux.co.jp> |
pci: s/PCI_ADDRESS_SPACE_/PCI_BASE_ADDRESS_SPACE_/ to match pci_regs.h
make constants for pci base address match pci_regs.h by renaming PCI_ADDRESS_SPACE_xxx to PCI_BASE_ADDRESS_SPACE_xxx.
Signed-o
pci: s/PCI_ADDRESS_SPACE_/PCI_BASE_ADDRESS_SPACE_/ to match pci_regs.h
make constants for pci base address match pci_regs.h by renaming PCI_ADDRESS_SPACE_xxx to PCI_BASE_ADDRESS_SPACE_xxx.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
4a643563 |
| 07-Nov-2009 |
Blue Swirl <blauwirbel@gmail.com> |
IDE: Fix reset handling
Problem: x86 systems could not survive a few system_resets.
Clear most of IDE state when reset. Implement the missing reset handlers.
Signed-off-by: Blue Swirl <blauwirbel@
IDE: Fix reset handling
Problem: x86 systems could not survive a few system_resets.
Clear most of IDE state when reset. Implement the missing reset handlers.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
44a99354 |
| 07-Nov-2009 |
Blue Swirl <blauwirbel@gmail.com> |
Sparc64/x86: remove unneeded calls to device reset
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
407a4f30 |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: port pci ide to vmstate
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
d1570baa |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: BMDMAState don't need a pci_dev field anymore
Patchworks-ID: 35306 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
0cde1b4c |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: cmd646 ->unit has just the value that we want
Patchworks-ID: 35307 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
61f58e59 |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: cmd646 we can get the pci device with container_of
Patchworks-ID: 35305 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
58c0e732 |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: PCIIDEState type field is not needed anymore
We have split the functions that needed it for cmd646
Patchworks-ID: 35302 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthon
ide: PCIIDEState type field is not needed anymore
We have split the functions that needed it for cmd646
Patchworks-ID: 35302 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
4c3df0ec |
| 07-Oct-2009 |
Juan Quintela <quintela@redhat.com> |
ide: split cmd646 and piix from pci.c
This patch splits cmd646 specific code from pci.c. This patch splits piix4 specific code from pci.c. And compile new piix.o and cmd646.o when they are needed. T
ide: split cmd646 and piix from pci.c
This patch splits cmd646 specific code from pci.c. This patch splits piix4 specific code from pci.c. And compile new piix.o and cmd646.o when they are needed. The only change that is not code movemet is removal of cmd646 specific parts in bmdma_readb/writeb for piix.
Patchworks-ID: 35301 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|