qemu
15 years agoMerge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel
Riku Voipio [Wed, 4 Mar 2009 14:58:50 +0000 (16:58 +0200)]
Merge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel

15 years agomisc cleanups
Juha Riihimäki [Wed, 4 Mar 2009 13:07:28 +0000 (15:07 +0200)]
misc cleanups

15 years agoMerge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel
Riku Voipio [Wed, 4 Mar 2009 08:31:53 +0000 (10:31 +0200)]
Merge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel

15 years agoimprove OMAP3 boot CH support
Juha Riihimäki [Wed, 4 Mar 2009 08:22:03 +0000 (10:22 +0200)]
improve OMAP3 boot CH support

15 years agoenable OMAP3 DSS LCD output regardless of GOLCD control bit
Juha Riihimäki [Wed, 4 Mar 2009 07:32:18 +0000 (09:32 +0200)]
enable OMAP3 DSS LCD output regardless of GOLCD control bit

...this seems to make things work a little bit better, eh?

15 years agoMerge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel
Riku Voipio [Tue, 3 Mar 2009 13:58:08 +0000 (15:58 +0200)]
Merge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel

15 years agoadd more DSS regs & debug output
Juha Riihimäki [Tue, 3 Mar 2009 13:03:34 +0000 (15:03 +0200)]
add more DSS regs & debug output

15 years agosmall patches for OMAP3 DSS
Juha Riihimäki [Mon, 2 Mar 2009 13:21:16 +0000 (15:21 +0200)]
small patches for OMAP3 DSS

...but does not make it work correctly yet

15 years agofree boot structure after boot is ready
Juha Riihimäki [Mon, 2 Mar 2009 11:08:50 +0000 (13:08 +0200)]
free boot structure after boot is ready

15 years agoadd some support for booting with CH block
Juha Riihimäki [Mon, 2 Mar 2009 11:06:05 +0000 (13:06 +0200)]
add some support for booting with CH block

Added some support for booting from MMC if the boot loader image contains a configuration header block in the beginning. For now only CHSETTINGS block is parsed, others are ignored. Also added Nokia to the copyright headers in omap3.c, omap3_mmc.c and twl4030.c, since we have implemented a lot of stuff there instead of just patching.

15 years agominor clean-ups
Juha Riihimäki [Fri, 27 Feb 2009 12:31:57 +0000 (14:31 +0200)]
minor clean-ups

15 years agomerge conflict
Riku Voipio [Fri, 27 Feb 2009 11:46:11 +0000 (13:46 +0200)]
merge conflict

15 years agofix OMAP3 MMC read operation to FIFO
Juha Riihimäki [Fri, 27 Feb 2009 11:33:12 +0000 (13:33 +0200)]
fix OMAP3 MMC read operation to FIFO

Reading from MMC/SD card to the OMAP3 MMC controller's FIFO buffer expected the FIFO buffer to be cleared - thus if old data was laying around in the FIFO buffer next read would yield incorrect data. However, there was a clear operation implemented in the MMC controller's data register READ operation, i.e. effectively clearing out the FIFO contents as it is read out, this problem did not surface until something was written to the MMC as the data written to the MMC stays in the FIFO after the WRITE operation causing the next READ operation after the WRITE operation to return invalid data. Sigh.

15 years agoadd more Triton2 registers
Juha Riihimäki [Fri, 27 Feb 2009 07:13:34 +0000 (09:13 +0200)]
add more Triton2 registers

15 years agoStub rtc write
Riku Voipio [Thu, 26 Feb 2009 15:36:14 +0000 (17:36 +0200)]
Stub rtc write

clock from userland tries to set clock

15 years agofix OMAP3 MMC write operations
Juha Riihimäki [Thu, 26 Feb 2009 14:03:19 +0000 (16:03 +0200)]
fix OMAP3 MMC write operations

...and finally we have the kernel booting all the way ;)

15 years agodisable extra logging in OMAP DMA
Juha Riihimäki [Thu, 26 Feb 2009 13:56:22 +0000 (15:56 +0200)]
disable extra logging in OMAP DMA

Do not emit exta logging info by default.

15 years agofix interrupt generation bug in OMAP DMA4
Juha Riihimäki [Thu, 26 Feb 2009 13:52:38 +0000 (15:52 +0200)]
fix interrupt generation bug in OMAP DMA4

Per-channel interrupt control registers (DMA4_CICRi) have not been considered when raising interrupts. This results in the DMA controller generating interrupts for masked interrupts as well. This is problematic with for example Linux OMAP3 MMC driver which relies on the DMA delivering correct interrupts.

15 years agoRefactoring some of the L3/L4/PRM emulation for OMAP3
Juha Riihimäki [Thu, 26 Feb 2009 09:17:20 +0000 (11:17 +0200)]
Refactoring some of the L3/L4/PRM emulation for OMAP3

15 years agoOMAP3 HSMMC emulation improvements
Juha Riihimäki [Wed, 25 Feb 2009 13:48:35 +0000 (15:48 +0200)]
OMAP3 HSMMC emulation improvements

Some functionality in DMA receive (and perhaps in transmit, but not tested) and trials to support CMD12 properly. Still not working well enough with Linux kernel for some reason.

15 years agoremove more unnecessary error messages
Juha Riihimäki [Wed, 25 Feb 2009 07:11:39 +0000 (09:11 +0200)]
remove more unnecessary error messages

Apparently Linux kernel power management is accessing some undocumented OMAP3 PRM registers. Added dummy emulation for the missing registers to get rid of some error messages.

15 years agoremove couple of unnecessary error messages
Juha Riihimäki [Wed, 25 Feb 2009 07:03:14 +0000 (09:03 +0200)]
remove couple of unnecessary error messages

SD emulation (sd.c) incorrectly reported an error upon receiving CMD4. This is now fixed. Also, removed error messages when a write to read-only DMA channel registers is detected; this happens frequently with Linux as it fills the entire DMA channel register bank with zeroes during DMA channel reset.

15 years agoRefactored OMAP3 L3 emulation
Juha Riihimäki [Tue, 24 Feb 2009 14:00:48 +0000 (16:00 +0200)]
Refactored OMAP3 L3 emulation

New, more dynamic implementation for the OMAP3 L3 region control area. Will probably move other L3 regions under the same structure later.

15 years agoimprove OMAP DSS emulation supporting OMAP2/3 differences
Juha Riihimäki [Tue, 24 Feb 2009 09:06:36 +0000 (11:06 +0200)]
improve OMAP DSS emulation supporting OMAP2/3 differences

Add mapping for OMAP3 DSS DSI registers (dummy implementation with error printout only at this stage) and move OMAP2 DSS L3 register mapping as specific for OMAP2. OMAP3 L3 implementation will be in omap3.c.

15 years agofix some compiler warnings
Juha Riihimäki [Tue, 24 Feb 2009 08:28:01 +0000 (10:28 +0200)]
fix some compiler warnings

15 years agofix previous patch
Juha Riihimäki [Tue, 24 Feb 2009 08:24:12 +0000 (10:24 +0200)]
fix previous patch

15 years agoconvert CR/LF line endings to LF in beagle.c
Juha Riihimäki [Tue, 24 Feb 2009 08:17:53 +0000 (10:17 +0200)]
convert CR/LF line endings to LF in beagle.c

Convert CR/LF line endings to LF line endings in hw/beagle.c.

15 years agoUpdate [v2] cocoa.m to match new DisplayState code
Juha Riihimäki [Tue, 24 Feb 2009 07:32:54 +0000 (09:32 +0200)]
Update [v2] cocoa.m to match new DisplayState code

Samuel Benson's patch from qemu-devel mailing list for updating Cocoa frontend to match new DisplayState code. Reportedly there are some issues with the patch under certain conditions but for the time being it's the best thing we have to get Cocoa frontend compiling and working.

15 years agoport omap3 code to post-displaystate
Riku Voipio [Fri, 20 Feb 2009 10:52:24 +0000 (12:52 +0200)]
port omap3 code to post-displaystate

15 years agofix merge conflict
Riku Voipio [Thu, 19 Feb 2009 16:20:58 +0000 (18:20 +0200)]
fix merge conflict

15 years agomake omap_dss work on both omap2 and omap3
Riku Voipio [Thu, 19 Feb 2009 16:17:50 +0000 (18:17 +0200)]
make omap_dss work on both omap2 and omap3

15 years agoRevert "Add BGR format host frame buffer support in Epson LCD controller emulation"
Riku Voipio [Thu, 19 Feb 2009 15:32:21 +0000 (17:32 +0200)]
Revert "Add BGR format host frame buffer support in Epson LCD controller emulation"

This reverts commit 7384e7f8cd34dac587e947fe94745aacfda4dd0d.

15 years agorevert multi-omap for omap1/omap2
Riku Voipio [Thu, 19 Feb 2009 15:03:56 +0000 (17:03 +0200)]
revert multi-omap for omap1/omap2

15 years agorevert multi-omap for omap1/omap2
Riku Voipio [Thu, 19 Feb 2009 15:03:56 +0000 (17:03 +0200)]
revert multi-omap for omap1/omap2

15 years agoMerge branch 'upstream' into maemo-test
Riku Voipio [Thu, 19 Feb 2009 14:52:18 +0000 (16:52 +0200)]
Merge branch 'upstream' into maemo-test

Resolve conflicts

Conflicts:

.gitignore
hw/omap_dss.c
linux-user/main.c
linux-user/syscall.c

15 years agoMerge branch 'juha-devel'
Riku Voipio [Thu, 19 Feb 2009 11:58:35 +0000 (13:58 +0200)]
Merge branch 'juha-devel'

15 years agoclear ERRI bit in MMCHS_STAT so it accurately reflects the rest error bits
Riku Voipio [Wed, 18 Feb 2009 15:30:40 +0000 (17:30 +0200)]
clear ERRI bit in MMCHS_STAT so it accurately reflects the rest error bits

15 years agoDummy support for CMD_TYPE bits in OMAP3 MMC CMD register
Juha Riihimäki [Wed, 18 Feb 2009 13:49:42 +0000 (15:49 +0200)]
Dummy support for CMD_TYPE bits in OMAP3 MMC CMD register

This allows the Linux kernel to boot a bit further as it is issuing CMD12 with "I/O Abort" CMD_TYPE. However as this is not correctly emulated yet it seems the kernel gets trash instead of the real stuff...

15 years agoFix for OMAP3 MMC FIFO handling
Juha Riihimäki [Wed, 18 Feb 2009 13:03:11 +0000 (15:03 +0200)]
Fix for OMAP3 MMC FIFO handling

DMA transfers are now stopped correctly.

15 years agoFix DMA channel numbers for OMAP3
Juha Riihimäki [Wed, 18 Feb 2009 12:22:22 +0000 (14:22 +0200)]
Fix DMA channel numbers for OMAP3

All DMA channel numbers were off by one... :)

15 years agoOMAP DMA debug printout fix, part2
Juha Riihimäki [Wed, 18 Feb 2009 10:32:16 +0000 (12:32 +0200)]
OMAP DMA debug printout fix, part2

Fix per-channel register number printouts also for omap_dma4_read function.

15 years agoFix OMAP DMA4 debug printouts
Juha Riihimäki [Wed, 18 Feb 2009 10:24:03 +0000 (12:24 +0200)]
Fix OMAP DMA4 debug printouts

Illegal access in per-channel register region prints out the register numbers relative to channel number, which is not printed out. Changed printing to display register numbers relative to the DMA controller region.

15 years agoFix block count for OMAP3 MMC emulation
Juha Riihimäki [Wed, 18 Feb 2009 09:28:59 +0000 (11:28 +0200)]
Fix block count for OMAP3 MMC emulation

Block count was extracted wrongly from a write to MMCHS_BLK register. Also rearranged the code a bit to resemble more the similar implementation done for OMAP2.

15 years agoDisable extensive SD debug printouts
Juha Riihimäki [Wed, 18 Feb 2009 06:30:33 +0000 (08:30 +0200)]
Disable extensive SD debug printouts

Enough is enough and too much is too much

15 years agoMerge commit 'origin/riku-devel' into juha-devel
Juha Riihimäki [Wed, 18 Feb 2009 06:06:35 +0000 (08:06 +0200)]
Merge commit 'origin/riku-devel' into juha-devel

15 years agoEnable debug traces in SD emulation
Juha Riihimäki [Wed, 18 Feb 2009 06:05:11 +0000 (08:05 +0200)]
Enable debug traces in SD emulation

Added some more debug information in the SD emulation and fixed OMAP3 MMC2/3 initialization with correct NULL values.

15 years agodo not pretend to support low voltage operation
Riku Voipio [Tue, 17 Feb 2009 16:16:26 +0000 (18:16 +0200)]
do not pretend to support low voltage operation

eliminate "mmc0: SD card claims to support the incompletely defined 'low voltage
range'. This will be ignored." warning

15 years agoYet-Another-Fix for OMAP3 I2C interrupt emulation
Juha Riihimäki [Tue, 17 Feb 2009 12:35:36 +0000 (14:35 +0200)]
Yet-Another-Fix for OMAP3 I2C interrupt emulation

It Is Now Fixed(tm).

15 years agoFix XRDY/RRDY/XDR/RDR interrupt generation for OMAP3 I2C
Juha Riihimäki [Tue, 17 Feb 2009 11:15:54 +0000 (13:15 +0200)]
Fix XRDY/RRDY/XDR/RDR interrupt generation for OMAP3 I2C

Patch for XRDY/RRDY/XDR/RDR interrupt generation in the OMAP3 I2C emulation.

15 years agoOMAP3 HS MMC emulation interrupt fix and other small stuff
Juha Riihimäki [Tue, 17 Feb 2009 08:42:25 +0000 (10:42 +0200)]
OMAP3 HS MMC emulation interrupt fix and other small stuff

The OMAP3 HS MMC controller interrupt state is now correctly updated after a write to STAT register. Hardcoded OMAP SDRC to always return "no address error" to an error query. Changed CR+LF line terminators to LF in a number of files.

15 years agomore gpio clocks and rtc stub
Riku Voipio [Mon, 16 Feb 2009 15:59:33 +0000 (17:59 +0200)]
more gpio clocks and rtc stub

15 years agoMerge commit 'juri/juha-devel' into test
Riku Voipio [Mon, 16 Feb 2009 15:01:35 +0000 (17:01 +0200)]
Merge commit 'juri/juha-devel' into test

15 years agomore twl regs
Riku Voipio [Mon, 16 Feb 2009 15:01:26 +0000 (17:01 +0200)]
more twl regs

15 years agoOMAP3 I2C patch for FIFO draining feature handling
Juha Riihimäki [Mon, 16 Feb 2009 14:44:03 +0000 (16:44 +0200)]
OMAP3 I2C patch for FIFO draining feature handling

XDR/RDR STAT bits are set only when corresponding IE bits are set. Therefore polling for XDR/RDR bits is now impossible. However this seems to make the Linux kernel feel better.

15 years agoMerge commit 'origin/riku-devel' into juha-devel
Juha Riihimäki [Mon, 16 Feb 2009 13:25:52 +0000 (15:25 +0200)]
Merge commit 'origin/riku-devel' into juha-devel

15 years agoMerge commit 'juri/riku-devel' into test
Riku Voipio [Mon, 16 Feb 2009 13:20:11 +0000 (15:20 +0200)]
Merge commit 'juri/riku-devel' into test

15 years agoMoved OMAP3 boot ROM MMC loader emulation from beagle.c to omap3.c
Juha Riihimäki [Mon, 16 Feb 2009 13:19:47 +0000 (15:19 +0200)]
Moved OMAP3 boot ROM MMC loader emulation from beagle.c to omap3.c

Since the MMC loader emulation of OMAP3 boot ROM is generic for OMAP3 and not specific for Beagleboard, moved the relevant functions to omap3.c from beagle.c.

15 years agomulti-mmc support
Riku Voipio [Mon, 16 Feb 2009 13:02:34 +0000 (15:02 +0200)]
multi-mmc support

15 years agomulti-mmc support
Riku Voipio [Mon, 16 Feb 2009 13:02:34 +0000 (15:02 +0200)]
multi-mmc support

15 years agoSome improvements for OMAP3
Juha Riihimäki [Mon, 16 Feb 2009 12:08:38 +0000 (14:08 +0200)]
Some improvements for OMAP3

Add support for PRCM IRQ, SDRC DLLA_STATUS register. Mirrors modifications to CM ICLKEN1 and ICLKEN3 to corresponding idle status registers.

15 years agoReplace numeric constants with symbols for OMAP3 L4
Juha Riihimäki [Mon, 16 Feb 2009 09:13:13 +0000 (11:13 +0200)]
Replace numeric constants with symbols for OMAP3 L4

OMAP3 L4 region ids and target agents now have symbolic names instead of plain numbers. This makes it much easier to a) read the code and b) rearrange the order of the data structures due to e.g. inserting new known regions or agents.

15 years agoDebug trace changes
Juha Riihimäki [Fri, 13 Feb 2009 13:15:46 +0000 (15:15 +0200)]
Debug trace changes

More user-friendly debug tracing possibilities.

15 years agoID mods for OMAP3 emulation
Juha Riihimäki [Fri, 13 Feb 2009 12:20:08 +0000 (14:20 +0200)]
ID mods for OMAP3 emulation

Added a new CPU core, Cortex-A8-r2 (i.e. r2p3) and updated the old Cortex-A8 to correspond to r1p1. Made OMAP3530 emulation use the Cortex-A8-r2 core instead of the older one and updated OMAP3 TAP id to correspond to ES3.0. Changed OMAP3 system crystal from 13MHz to 26MHz.

15 years agoFurther patches for OMAP3 emulation
Juha Riihimäki [Fri, 13 Feb 2009 09:30:31 +0000 (11:30 +0200)]
Further patches for OMAP3 emulation

Some patching for OMAP3 L4IC and PRM emulation. Also patched the DSS to take in the DSI region; this renders omap_dss.c unusable for non-OMAP3 platforms currently. Will be fixed later.

15 years agomerge changes with "User-mode GDB stub improvements"
Riku Voipio [Fri, 13 Feb 2009 09:06:42 +0000 (11:06 +0200)]
merge changes with "User-mode GDB stub improvements"

15 years agolinux-user: Proper exit code for uncaught signals
Riku Voipio [Sun, 23 Nov 2008 21:37:24 +0000 (23:37 +0200)]
linux-user: Proper exit code for uncaught signals

The proper exit code for dieing from an uncaught signal is -<signal>.
The kernel doesn't allow exit() or _exit() to pass a negative value.
To get the proper exit code we need to actually die from an uncaught
signal.

A default signal handler is installed, we send ourself a signal
and we wait for it to arrive.

Patch originates from Scratchbox

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>

15 years agoFix Sparc64 VGA memory size bug exposed by r6604
blueswir1 [Thu, 12 Feb 2009 17:29:32 +0000 (17:29 +0000)]
Fix Sparc64 VGA memory size bug exposed by r6604

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6618 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomake keep-ld-preload default
Riku Voipio [Thu, 12 Feb 2009 14:38:11 +0000 (16:38 +0200)]
make keep-ld-preload default

This is for sb1 compat. Testcase:

scratchbox/packages/tests/env$ ./run.sh

15 years agoKVM: cpuid function 2: store all values (Amit Shah)
aliguori [Wed, 11 Feb 2009 21:00:43 +0000 (21:00 +0000)]
KVM: cpuid function 2: store all values (Amit Shah)

Incrementing the array index was missed in the previous series which causes
us to not store all the values.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6617 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomonitor: Don't change VNC server when disabled (Jan Kiszka)
aliguori [Wed, 11 Feb 2009 21:00:38 +0000 (21:00 +0000)]
monitor: Don't change VNC server when disabled (Jan Kiszka)

[ As requested, broken out of the monitor rework series. ]

Avoid a segfault when the user issues 'change vnc' without having vnc
enabled on startup.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6616 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix qemu_realloc() (Kevin Wolf)
aliguori [Wed, 11 Feb 2009 21:00:32 +0000 (21:00 +0000)]
Fix qemu_realloc() (Kevin Wolf)

For qemu_realloc with size == 0 a result of NULL is perfectly fine

Signed-off-by: Kevin Wolf <kwolf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6615 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoTCG: remove obsolete old_op_count profiler field
blueswir1 [Wed, 11 Feb 2009 19:47:39 +0000 (19:47 +0000)]
TCG: remove obsolete old_op_count profiler field

Since we don't generate any "old op" anymore, the old_op_count
is unneeded.

Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6614 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd missing r24..r26 to callee save registers
malc [Wed, 11 Feb 2009 18:54:02 +0000 (18:54 +0000)]
Add missing r24..r26 to callee save registers

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6613 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd missing r24..r26 to calle save registers
malc [Wed, 11 Feb 2009 18:51:19 +0000 (18:51 +0000)]
Add missing r24..r26 to calle save registers

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6612 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse qemu_ram_alloc
blueswir1 [Wed, 11 Feb 2009 18:04:12 +0000 (18:04 +0000)]
Use qemu_ram_alloc

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6611 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: PCI device, disk and host network hot-add / hot-remove (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:54 +0000 (15:21 +0000)]
qemu: PCI device, disk and host network hot-add / hot-remove (Marcelo Tosatti)

Add monitor command to hot-add PCI devices (nic and storage).

Syntax is:

pci_add pci_addr=[[<domain>:]<bus>:]<slot> nic|storage params

It returns the domain, bus and slot for the newly added device on success.

It is possible to attach a disk to a device after PCI initialization via
the drive_add command. If so, a manual scan of the SCSI bus on the guest
is necessary.

Save QEMUMachine necessary for drive_init.

Add monitor command to hot-remove devices, remove device data on _EJ0 notification.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6610 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoParse full PCI device addresses (Markus Armbruster)
aliguori [Wed, 11 Feb 2009 15:21:48 +0000 (15:21 +0000)]
Parse full PCI device addresses (Markus Armbruster)

This code parses full PCI device addresses.  It then rejects domains
other than zero, because these are not supported in QEMU.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6609 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: pci hotplug GPE support (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:41 +0000 (15:21 +0000)]
qemu: pci hotplug GPE support (Marcelo Tosatti)

Enable the corresponding bit on the PCIST region and trigger the SCI
and handle the _EJ0 notifications.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6608 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: initialize hot add system / acpi gpe (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:35 +0000 (15:21 +0000)]
qemu: initialize hot add system / acpi gpe (Marcelo Tosatti)

ACPI GPE support, used by PCI (and CPU) hotplug.

From: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6607 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: zero ioport_opaque on isa_unassign_ioport (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:29 +0000 (15:21 +0000)]
qemu: zero ioport_opaque on isa_unassign_ioport (Marcelo Tosatti)

If the io port is unassigned, the previous private pointer is
meaningless.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6606 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: LSI SCSI and e1000 unregister callbacks (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:22 +0000 (15:21 +0000)]
qemu: LSI SCSI and e1000 unregister callbacks (Marcelo Tosatti)

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6605 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: warn if PCI region is not power of two (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:16 +0000 (15:21 +0000)]
qemu: warn if PCI region is not power of two (Marcelo Tosatti)

Otherwise the PCI size for such regions can be calculated erroneously.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6604 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: add pci_unregister_device (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:10 +0000 (15:21 +0000)]
qemu: add pci_unregister_device (Marcelo Tosatti)

Unregister the pci device, unassign its IO and memory regions, and free
associated data.

Add a callback so drivers can free device state.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6603 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: add qemu_free_irqs (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:21:04 +0000 (15:21 +0000)]
qemu: add qemu_free_irqs (Marcelo Tosatti)

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6602 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: add cpu_unregister_io_memory and make io mem table index dynamic (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:58 +0000 (15:20 +0000)]
qemu: add cpu_unregister_io_memory and make io mem table index dynamic (Marcelo Tosatti)

So drivers can clear their mem io table entries on exit back to unassigned
state.

Also make the io mem index allocation dynamic.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6601 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: add net_client_uninit / qemu_find_vlan_client (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:51 +0000 (15:20 +0000)]
qemu: add net_client_uninit / qemu_find_vlan_client (Marcelo Tosatti)

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6600 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: net/drive add/remove tweaks (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:46 +0000 (15:20 +0000)]
qemu: net/drive add/remove tweaks (Marcelo Tosatti)

Export net/drive add/remove functions for device hotplug usage.

Return the table index on add.

Return failure instead of exiting if limit has been reached
on drive_add.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6599 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: move drives_opt for external use (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:37 +0000 (15:20 +0000)]
qemu: move drives_opt for external use (Marcelo Tosatti)

Device hotplug will use that structure from a separate
file.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6598 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: record devfn on block driver instance (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:29 +0000 (15:20 +0000)]
qemu: record devfn on block driver instance (Marcelo Tosatti)

Record PCIDev on the BlockDriverState structure to locate for release
on hot-removal.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6597 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: drive removal support (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:20 +0000 (15:20 +0000)]
qemu: drive removal support (Marcelo Tosatti)

To be used by hot-remove.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6596 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: dynamic nic info index allocation (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:20:03 +0000 (15:20 +0000)]
qemu: dynamic nic info index allocation (Marcelo Tosatti)

Dynamically allocate nic info index, so to reuse indexes when devices are
removed.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6595 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: dynamic drive/drive_opt index allocation (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:19:58 +0000 (15:19 +0000)]
qemu: dynamic drive/drive_opt index allocation (Marcelo Tosatti)

Dynamically allocate drive options and drive table index, to reuse
indexes when devices are removed.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6594 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: return PCIDevice on net device init and record devfn (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:19:52 +0000 (15:19 +0000)]
qemu: return PCIDevice on net device init and record devfn (Marcelo Tosatti)

Change the PCI network drivers init functions to return the PCIDev, to
inform which slot has been hot-plugged.

Also record PCIDevice structure on NICInfo to locate for release on
hot-removal.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6593 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoqemu: add pci helper functions (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:19:46 +0000 (15:19 +0000)]
qemu: add pci helper functions (Marcelo Tosatti)

Add pci_find_bus/pci_find_device to be used by PCI hotplug.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6592 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd a description for the set_link monitor command.
aliguori [Wed, 11 Feb 2009 15:19:16 +0000 (15:19 +0000)]
Add a description for the set_link monitor command.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6591 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd BIOS patches necessary for hotplug (Marcelo Tosatti)
aliguori [Wed, 11 Feb 2009 15:11:43 +0000 (15:11 +0000)]
Add BIOS patches necessary for hotplug (Marcelo Tosatti)

See each patch for appropriate Signed-off-by's.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6590 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUpdate PC BIOS to latest bits from Bochs
aliguori [Wed, 11 Feb 2009 14:55:47 +0000 (14:55 +0000)]
Update PC BIOS to latest bits from Bochs

A number of patches were merged since we last pulled.

Thanks to Marcelo Tosatti for rebasing the existing patches and testing.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6589 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoTuning OMAP I2C emulation
Juha Riihimäki [Wed, 11 Feb 2009 13:08:48 +0000 (15:08 +0200)]
Tuning OMAP I2C emulation

Some further adjustments in the OMAP I2C emulation for OMAP3 I2C controller.

15 years agoAdd "static"
blueswir1 [Tue, 10 Feb 2009 19:00:31 +0000 (19:00 +0000)]
Add "static"

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6588 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomove linking against libsb elsewhere
Riku Voipio [Tue, 10 Feb 2009 17:08:47 +0000 (19:08 +0200)]
move linking against libsb elsewhere

libsb linking from here no longer works.