#
5c81e4ca |
| 05-Feb-2011 |
Blue Swirl <blauwirbel@gmail.com> |
vmware_vga: refactor device creation
Turn vmsvga_init into an inline function.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
be92bbf7 |
| 06-Jan-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
vga: tag as not hotplugable.
This patch tags all vga cards as not hotpluggable. The qemu standard vga will never ever be hotpluggable. For cirrus + vmware it might be possible to get that work som
vga: tag as not hotplugable.
This patch tags all vga cards as not hotpluggable. The qemu standard vga will never ever be hotpluggable. For cirrus + vmware it might be possible to get that work some day. Todays we can't handle that for a number of reasons though.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
2507c12a |
| 08-Dec-2010 |
Alexander Graf <agraf@suse.de> |
Add endianness as io mem parameter
As stated before, devices can be little, big or native endian. The target endianness is not of their concern, so we need to push things down a level.
This patch a
Add endianness as io mem parameter
As stated before, devices can be little, big or native endian. The target endianness is not of their concern, so we need to push things down a level.
This patch adds a parameter to cpu_register_io_memory that allows a device to choose its endianness. For now, all devices simply choose native endian, because that's the same behavior as before.
Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
#
281a26b1 |
| 17-Nov-2010 |
Gerd Hoffmann <kraxel@redhat.com> |
vgabios update: handle compatibility with older qemu versions
As pointed out by avi the vgabios update is guest-visible and thus has migration implications.
One change is that the vga has a valid p
vgabios update: handle compatibility with older qemu versions
As pointed out by avi the vgabios update is guest-visible and thus has migration implications.
One change is that the vga has a valid pci rom bar now. We already have a pci bus property to enable/disable the rom bar and we'll load the bios via fw_cfg as fallback for the no-rom-bar case. So we just have to add compat properties to handle this case.
A second change is that the magic bochs lfb @ 0xe0000000 is gone. When live-migrating a guest from a older qemu version it might be using the lfb though, so we have to keep it for the old machine types. The patch enables the bochs lfb in case we don't have the pci rom bar enabled (i.e. we are in 0.13+older compat mode).
This patch depends on these patches which add (and use) the pc-0.13 machine type: http://patchwork.ozlabs.org/patch/70797/ http://patchwork.ozlabs.org/patch/70798/
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Cc: avi@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
4eccfec4 |
| 06-May-2010 |
Gerd Hoffmann <kraxel@redhat.com> |
switch vmware_vga to pci vgabios
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
#
9f810beb |
| 10-Sep-2010 |
Andrzej Zaborowski <balrog@zabor.org> |
vmware_vga: Replace the few tab-indents with spaces (clean-up).
Use 4 spaces instead of 2, too.
|
#
4dedc07f |
| 10-Sep-2010 |
Andrzej Zaborowski <balrog@zabor.org> |
vmware_vga: Add checks to deal with non-atomic fifo writes.
Janne Huttunen noticed that the FIFO end pointer is updated by the guest after writing each word to the FIFO, at least the X.org driver wh
vmware_vga: Add checks to deal with non-atomic fifo writes.
Janne Huttunen noticed that the FIFO end pointer is updated by the guest after writing each word to the FIFO, at least the X.org driver which is open does this. This means that there's no way for the host to know if the guest is in the middle a write operation. Qemu thus needs to read the beginning of the command up to when it's able to tell how many words are expected for the given command. It will abort reading and rewind the FIFO if there aren't enough words yet, this should be relatively rare but it is suspected to have been the cause of the occasional FIFO overrun that killed the display.
show more ...
|
#
bd57ce8c |
| 17-Jun-2010 |
Michael S. Tsirkin <mst@redhat.com> |
vmware_vga: fix reset value for command register
Make init value for this register match the spec. BAR address is 0 at init, so enabling it only works by chance.
Signed-off-by: Michael S. Tsirkin <
vmware_vga: fix reset value for command register
Make init value for this register match the spec. BAR address is 0 at init, so enabling it only works by chance.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
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 ...
|
#
1724f049 |
| 25-Jun-2010 |
Alex Williamson <alex.williamson@redhat.com> |
qemu_ram_alloc: Add DeviceState and name parameters
These will be used to generate unique id strings for ramblocks. The name field is required, the device pointer is optional as most callers don't
qemu_ram_alloc: Add DeviceState and name parameters
These will be used to generate unique id strings for ramblocks. The name field is required, the device pointer is optional as most callers don't have a device. When there's no device or the device isn't a child of a bus implementing BusInfo.get_dev_path, the name should be unique for the platform.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.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 ...
|
#
fbe6d7a4 |
| 21-May-2010 |
Gerd Hoffmann <kraxel@redhat.com> |
use new cursor struct + functions for vmware vga and sdl.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
f2d928d4 |
| 06-Jan-2010 |
Roland Dreier <rdreier@cisco.com> |
vmware_vga: Check cursor dimensions passed from guest to avoid buffer overflow
Check that the cursor dimensions passed from the guest for the DEFINE_CURSOR command don't overflow the available space
vmware_vga: Check cursor dimensions passed from guest to avoid buffer overflow
Check that the cursor dimensions passed from the guest for the DEFINE_CURSOR command don't overflow the available space in the cursor.image[] or cursor.mask[] arrays before copying data from the guest into those arrays.
Signed-off-by: Roland Dreier <rolandd@cisco.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
3fa0f955 |
| 10-Dec-2009 |
Michael S. Tsirkin <mst@redhat.com> |
vmware_vga: 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
vmware_vga: 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 ...
|
#
8095cb3e |
| 17-Dec-2009 |
Dave Airlie <airlied@linux.ie> |
vmware: increase cursor buffer size.
The cursor pixmap size we calculate later ends up being 4096 dwords long by the looks of it. This boots an F12 LiveCD now.
Signed-off-by: Dave Airlie <airlied@l
vmware: increase cursor buffer size.
The cursor pixmap size we calculate later ends up being 4096 dwords long by the looks of it. This boots an F12 LiveCD now.
Signed-off-by: Dave Airlie <airlied@linux.ie> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
b5cc6e32 |
| 17-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
VMware VGA: Only enable dirty log tracking when fifo is disabled
This patch enables dirty log tracking whenever it's needed and disables it when it is not.
We unconditionally enable dirty log track
VMware VGA: Only enable dirty log tracking when fifo is disabled
This patch enables dirty log tracking whenever it's needed and disables it when it is not.
We unconditionally enable dirty log tracking on reset, restart dirty log tracking when PCI IO regions are remapped, and disable/enable it based on commands from the guest.
Rebased-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
a6109ff1 |
| 17-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
Fix VMware VGA depth computation
VMware VGA requires that the depth presented to the guest is the same as the DisplaySurface that it renders to. This is because it performs a very simple memcpy() t
Fix VMware VGA depth computation
VMware VGA requires that the depth presented to the guest is the same as the DisplaySurface that it renders to. This is because it performs a very simple memcpy() to blit from one surface to another.
We currently hardcode a 24-bit depth. The surface allocator for SDL may, and usually will, allocate a surface with a different depth causing screen corruption.
This changes the code to allocate the DisplaySurface before initializing the device which allows the depth of the DisplaySurface to be used instead of hardcoding something.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
ee3e41a9 |
| 17-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
Make sure to enable dirty log tracking for VMware VGA
This is needed for VMware VGA to work properly under KVM.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
f0138a63 |
| 17-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
Make sure to enable dirty tracking of VBE vram mapping
Apparently, VBE maps the VGA vram to a fixed physical location. KVM requires that all mappings of the VGA vram have dirty tracking enabled on
Make sure to enable dirty tracking of VBE vram mapping
Apparently, VBE maps the VGA vram to a fixed physical location. KVM requires that all mappings of the VGA vram have dirty tracking enabled on them. Any access to the VGA vram through the VBE mapping currently fails to result in dirty page tracking updates causing a black screen.
This is the true root cause of VMware VGA not working correctly under KVM and likely also an issue with some of the std-vga black screen issues too.
Cirrus does not enable VBE so it would not be a problem when using Cirrus.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Rebased-by: Dave Airlie <airlied@redhat.com>
show more ...
|
#
f351d050 |
| 17-Dec-2009 |
Dave Airlie <airlied@linux.ie> |
vmware: setup PCI BAR 2 for FIFO as per vmware spec
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
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 ...
|
#
b3c3f123 |
| 11-Dec-2009 |
Dave Airlie <airlied@redhat.com> |
vmware_vga: add rom file so that it boots.
This just adds the rom file to the vmware SVGA chipset so it boots.
Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Anthony Liguori <aliguo
vmware_vga: add rom file so that it boots.
This just adds the rom file to the vmware SVGA chipset so it boots.
Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
d05ac8fa |
| 04-Dec-2009 |
Blue Swirl <blauwirbel@gmail.com> |
Add "static" to please Sparse
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
be73cfe2 |
| 02-Dec-2009 |
Juan Quintela <quintela@redhat.com> |
savevm: Port to qdev.vmsd all devices that have qdev
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
18e08a55 |
| 11-Nov-2009 |
Michael S. Tsirkin <mst@redhat.com> |
pci: pci.h cleanup: move out stuff not in pci.c
pci.h declares some functions which aren't defined in pci.h. Clean up moving things to appropriate headers, and update all users.
Signed-off-by: Mich
pci: pci.h cleanup: move out stuff not in pci.c
pci.h declares some functions which aren't defined in pci.h. Clean up moving things to appropriate headers, and update all users.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|