aboutsummaryrefslogtreecommitdiff
path: root/hw
AgeCommit message (Collapse)AuthorFilesLines
2011-04-27hw/virtio-9p-local.c: Remove unnecessary null char in symlink fileHarsh Prateek Bora1-1/+1
This patch removes the addition of null char in symlink file which is being appended to file in case of mapped security model. Without this patch, the extra null char causes LTP testcase lstat03 to fail and hence this fix is required. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
2011-04-27virtio-9p: Bugfix to send correct iounitM. Mohan Kumar1-1/+1
LCREATE function packs address of iounit in the pdu, fix that to send actual iounit itself. Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Acked-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
2011-04-27virtio-9p: removexattr on default acl should return 0Aneesh Kumar K.V1-2/+13
If we don't have default acl, removexattr on default acl should return 0 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
2011-04-27virtio-9p: Print the pdu details on returnAneesh Kumar K.V1-1/+4
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
2011-04-27virtio-9p: move 9p files aroundAneesh Kumar K.V10-111/+4
Now that we start adding more files related to 9pfs it make sense to move them to a separate directory Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
2011-04-27pflash: Restore & fix lazy ROMD switchingJan Kiszka1-4/+8
Commit 5145b3d1cc revealed a bug in the lazy ROMD switch-back logic, but resolved it by breaking that feature. This approach addresses the issue by switching back to ROMD after a certain amount of read accesses without further unlock sequences. Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-27Merge branch 'for-anthony' of git://repo.or.cz/qemu/kevinAurelien Jarno3-1056/+1155
* 'for-anthony' of git://repo.or.cz/qemu/kevin: Remove obsolete 'enabled' variable from progress state Add dd-style SIGUSR1 progress reporting qed: Fix consistency check on 32-bit hosts ide/atapi: Introduce CHECK_READY flag for commands ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors ide/atapi: Use table instead of switch for commands ide/atapi: Factor commands out ide: Split atapi.c out Improve accuracy of block migration bandwidth calculation atapi: Add 'medium ready' to 'medium not ready' transition on cd change qemu-img: allow rebase to a NULL backing file when unsafe
2011-04-27rtl8139: Fix compilation for w32/w64Stefan Weil1-2/+1
Compilation for Windows needs a different declaration for the printf format attribute, so use the macro which was defined for this purpose. Cc: Benjamin Poirier <benjamin.poirier@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-27ide/atapi: Introduce CHECK_READY flag for commandsKevin Wolf1-25/+23
Some commands are supposed to report a Not Ready Condition (i.e. they require a medium to be present in order to execute successfully). Instead of duplicating the check in each command implementation, let's add a flag and check it before calling the command. This patch only converts existing checks, it does not introduce new checks for any of the other commands that can/should report a Not Ready Condition. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectorsKevin Wolf1-15/+6
The disk size can only change when the medium is changed, and the change callback takes care of updating s->nb_sectors in this case. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27ide/atapi: Use table instead of switch for commandsKevin Wolf1-67/+48
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27ide/atapi: Factor commands outKevin Wolf1-378/+459
In preparation for a table of function pointers, factor each command out from ide_atapi_cmd() into its own function. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27ide: Split atapi.c outKevin Wolf3-1061/+1097
Besides moving code, this patch only fixes some whitespace issues in the moved code and makes all functions in atapi.c static which can be static. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27atapi: Add 'medium ready' to 'medium not ready' transition on cd changeAmit Shah1-4/+16
MMC-5 Table F.1 lists errors that can be thrown for the TEST_UNIT_READY command. Going from medium not ready to medium ready states is communicated by throwing an error. This adds the missing 'tray opened' event that we fail to report to guests. After doing this, older Linux guests properly revalidate a disc on the change command. HSM violation errors, which caused Linux guests to do a soft-reset of the link, also go away: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00 ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 res 01/60:00:00:00:00/00:00:00:00:00/a0 Emask 0x3 (HSM violation) ata2.00: status: { ERR } ata2: soft resetting link ata2.00: configured for MWDMA2 ata2: EH complete Signed-off-by: Amit Shah <amit.shah@redhat.com> Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com> Tested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-26trace: Remove %s in grlib trace eventsStefan Hajnoczi3-18/+17
Trace events cannot use %s in their format strings because trace backends vary in how they can deference pointers (if at all). Recording const char * values is not meaningful if their contents are not recorded too. Change grlib trace events that rely on strings so that they communicate similar information without using strings. A follow-up patch explains this limitation and updates docs/tracing.txt. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2011-04-25rtl8139: add format attribute to DPRINTFBenjamin Poirier1-3/+6
gcc can check the format string for correctness even when debugging output is not enabled. Have to make sure arguments are always available. They are optimized out if unneeded. Signed-off-by: Benjamin Poirier <benjamin.poirier@gmail.com> Cc: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25rtl8139: use variadic macro for debug statementsBenjamin Poirier1-203/+232
Removes double (( )) to make DEBUG_PRINT compatible with real function calls. Change the name to DPRINTF to be consistent with other DPRINTF macros throughout qemu. Include the "RTL8139: " prefix in the macro. This changes some debug output slightly since the prefix wasn't present on all lines. Part of the change was done using the "coccinelle" tool with the following small semantic match: @@ expression E; @@ - DEBUG_PRINT((E)) + DPRINTF(E) Signed-off-by: Benjamin Poirier <benjamin.poirier@gmail.com> Cc: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25rtl8139: use TARGET_FMT_plx in debug messagesBenjamin Poirier1-6/+9
Prevents a compilation failure when DEBUG_RTL8139 is defined: CC libhw32/rtl8139.o cc1: warnings being treated as errors hw/rtl8139.c: In function ‘rtl8139_cplus_transmit_one’: hw/rtl8139.c:1960: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 5 has type ‘target_phys_addr_t’ make[1]: *** [rtl8139.o] Error 1 Signed-off-by: Benjamin Poirier <benjamin.poirier@gmail.com> Cc: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25Merge remote-tracking branch 'awilliam/ipxe' into stagingAnthony Liguori6-6/+6
2011-04-22vmstate: port mac_dbdmaJuan Quintela1-24/+22
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22mac_dbdma: create DBDMAState instead of passing one array aroundJuan Quintela1-18/+27
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port piix4Juan Quintela1-14/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22piix4: create PIIX4StateJuan Quintela1-12/+17
It only contains a PCIDevice by know, but it makes easy to use migration code Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port mac_nvramJuan Quintela1-19/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22mac_nvram: size is a size, no need to be a target dependent typeJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port nandJuan Quintela1-34/+39
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22nand: pin values are uint8_tJuan Quintela2-5/+5
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port max111xJuan Quintela1-32/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22max111x: input field is only used as uint8_tJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_lcdJuan Quintela1-67/+43
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22pxa2xx_lcd: up field is used as a bool and migrated as an uint8_tJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22pxa2xx_lcd: name anonymous structJuan Quintela1-13/+15
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: stellaris use unused for placeholder entriesJuan Quintela1-2/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris gamepadJuan Quintela1-26/+24
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_keyboardJuan Quintela1-40/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_serialJuan Quintela1-42/+18
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris_adcJuan Quintela1-55/+34
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_pointerJuan Quintela1-45/+28
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port ppc4xx_pciJuan Quintela1-41/+39
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port ppce500_pciJuan Quintela1-47/+40
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_pmJuan Quintela1-21/+12
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_mmJuan Quintela1-21/+12
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_cmJuan Quintela1-25/+14
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_i2sJuan Quintela1-35/+18
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris gptmJuan Quintela1-60/+24
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port cudaJuan Quintela1-70/+46
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port heathrow_picJuan Quintela1-37/+25
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pl022 sspJuan Quintela1-48/+36
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris sysJuan Quintela1-46/+25
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris ssi busJuan Quintela1-20/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>