- Jan 10, 2019
-
-
Gerd Hoffmann authored
"common" is the only file using it, so we can just include it directly. Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com> Message-id: 20181116104319.10329-2-kraxel@redhat.com
-
Peter Maydell authored
The qemu_create_display_surface_guestmem() function was added in commit a77549b3 but apparently never used. Remove it. (The API of this function is in any case awkward as a generic function: it assumes that a physical address uniquely identifies a piece of memory in the system, which is mostly but not always true.) Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Message-id: 20181122170309.4856-1-peter.maydell@linaro.org Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com>
-
Marc-André Lureau authored
Looking at chardev/spice.c code, I realize compilation was broken for a while with spice-server < 0.12.3. Let's bump required version to 0.12.5, released May 19 2014, instead of adding more #ifdef. (this patch combines changes from an early version and some of Frediano "[PATCH 2/2] spice: Bump required spice-server version to 0.12.6") According to repology, all the distros that are build target platforms for QEMU include it: RHEL-7: 0.14.0 Debian (Stretch): 0.12.8 Debian (Jessie): 0.12.5 FreeBSD (ports): 0.14.0 OpenSUSE Leap 15: 0.14.0 Ubuntu (Xenial): 0.12.6 Note that a previous version of this patch was bumping version to 0.12.6. Unfortunately, Debian Jessie (oldstable) is stuck with spice server 0.12.5, and QEMU should keep building until after 2y of current stable (Stretch), which will be around June 17th 2019. Qemu 4.1 should thus be free of bumping to spice-server 0.12.6 during 4.1 development cycle. Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by:
Daniel P. Berrangé <berrange@redhat.com> Message-id: 20181128155932.16171-1-marcandre.lureau@redhat.com Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com>
-
Gerd Hoffmann authored
We must set the correct context (via eglMakeCurrent) before calling qemu_egl_create_context, so we need a thin wrapper and can't hook qemu_egl_create_context directly as ->dpy_gl_ctx_create callback. Reported-by:
Frederik Carlier <frederik.carlier@quamotion.mobi> Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com> Message-id: 20181129123502.30129-1-kraxel@redhat.com
-
- Jan 04, 2019
-
-
Peter Maydell authored
fw_cfg patches for 2019-01-04 Two fixes from Li Qiang: - Improve error message when can't load splash file - Fix boot bootsplash and reboot-timeout error checking # gpg: Signature made Fri 04 Jan 2019 16:22:24 GMT # gpg: using RSA key E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * remotes/philmd/tags/fw_cfg-20190104-pull-request: fw_cfg: Make qemu_extra_params_fw locally fw_cfg: Fix -boot reboot-timeout error checking fw_cfg: Fix -boot bootsplash error checking fw_cfg: Improve error message when can't load splash file Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Li Qiang authored
qemu_extra_params_fw[] has external linkage, but is used only in fw_cfg_bootsplash(), it makes sense to make it locally. Signed-off-by:
Li Qiang <liq3ea@gmail.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Reviewed-by:
Gerd Hoffmann <kraxel@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1542777026-2788-4-git-send-email-liq3ea@gmail.com> [PMD: Removed qemu_extra_params_fw declaration in vl.c] Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
-
Li Qiang authored
fw_cfg_reboot() gets option parameter "reboot-timeout" with qemu_opt_get(), then converts it to an integer by hand. It neglects to check that conversion for errors, and fails to reject negative values. Positive values above the limit get reported and replaced by the limit. This patch checks for conversion errors properly, and reject all values outside 0...0xffff. Signed-off-by:
Li Qiang <liq3ea@gmail.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Reviewed-by:
Gerd Hoffmann <kraxel@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1542777026-2788-3-git-send-email-liq3ea@gmail.com> Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
-
Li Qiang authored
fw_cfg_bootsplash() gets option parameter "splash-time" with qemu_opt_get(), then converts it to an integer by hand. It neglects to check that conversion for errors. This is needlessly complicated and error-prone. But as "splash-time not specified" is not the same as "splash-time=T" for any T, we need use qemu_opt_get() to check if splash time exists. This patch also make the qemu exit when finding or loading splash file failed. Signed-off-by:
Li Qiang <liq3ea@gmail.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Reviewed-by:
Gerd Hoffmann <kraxel@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1542777026-2788-2-git-send-email-liq3ea@gmail.com> Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
-
Li Qiang authored
read_splashfile() reports "failed to read splash file" without further details. Get the details from g_file_get_contents(), and include them in the error message. Also remove unnecessary 'res' variable. Signed-off-by:
Li Qiang <liq3ea@gmail.com> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1541052148-28752-1-git-send-email-liq3ea@gmail.com> Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
-
Peter Maydell authored
Pull request Bug fixes for the .dmg image file format. # gpg: Signature made Fri 04 Jan 2019 11:21:18 GMT # gpg: using RSA key 9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha/tags/block-pull-request: dmg: don't skip zero chunk dmg: use enumeration type instead of hard coding number dmg: fix binary search dmg: Fixing wrong dmg block type value for block terminator. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Yu-Chen Lin authored
The dmg file has many tables which describe: "start from sector XXX to sector XXX, the compression method is XXX and where the compressed data resides on". Each sector in the expanded file should be covered by a table. The table will describe the offset of compressed data (or raw depends on the type) in the dmg. For example: [-----------The expanded file------------] [---bzip table ---]/* zeros */[---zlib---] ^ | if we want to read this sector. we will find bzip table which contains this sector, and get the compressed data offset, read it from dmg, uncompress it, finally write to expanded file. If we skip zero chunk (table), some sector cannot find the table which will cause search_chunk() return s->n_chunks, dmg_read_chunk() return -1 and finally causing dmg_co_preadv() return EIO. See: [-----------The expanded file------------] [---bzip table ---]/* zeros */[---zlib---] ^ | if we want to read this sector. Oops, we cannot find the table contains it... In the original implementation, we don't have zero table. When we try to read sector inside the zero chunk. We will get EIO, and skip reading. After this patch, we treat zero chunk the same as ignore chunk, it will directly write zero and avoid some sector may not find the table. After this patch: [-----------The expanded file------------] [---bzip table ---][--zeros--][---zlib---] Signed-off-by:
yuchenlin <npes87184@gmail.com> Reviewed-by:
Julio Faracco <jcfaracco@gmail.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190103114700.9686-4-npes87184@gmail.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-
Yu-Chen Lin authored
Signed-off-by:
yuchenlin <npes87184@gmail.com> Reviewed-by:
Julio Faracco <jcfaracco@gmail.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190103114700.9686-3-npes87184@gmail.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-
Yu-Chen Lin authored
There is a possible hang in original binary search implementation. That is if chunk1 = 4, chunk2 = 5, chunk3 = 4, and we go else case. The chunk1 will be still 4, and so on. Signed-off-by:
yuchenlin <npes87184@gmail.com> Message-id: 20190103114700.9686-2-npes87184@gmail.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-
Julio Faracco authored
This is a trivial patch to fix a wrong value for block terminator. The old value was 0x7fffffff which is wrong. It was not affecting the code because QEMU dmg block is not handling block terminator right now. Neverthless, it should be fixed. Signed-off-by:
Julio Faracco <jcfaracco@gmail.com> Reviewed-by:
yuchenlin <yuchenlin@synology.com> Message-id: 20181228145055.18039-1-jcfaracco@gmail.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-
Peter Maydell authored
MIPS queue for December 2018 - v3 # gpg: Signature made Thu 03 Jan 2019 16:53:47 GMT # gpg: using RSA key D4972A8967F75A65 # gpg: Good signature from "Aleksandar Markovic <amarkovic@wavecomp.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 8526 FBF1 5DA3 811F 4A01 DD75 D497 2A89 67F7 5A65 * remotes/amarkovic/tags/mips-queue-december-2018-v3: (44 commits) tests/tcg: mips: Test R5900 three-operand MADDU1 tests/tcg: mips: Test R5900 three-operand MADDU tests/tcg: mips: Test R5900 three-operand MADD1 tests/tcg: mips: Test R5900 three-operand MADD disas: nanoMIPS: Add a note on documentation disas: nanoMIPS: Reorder declarations and definitions of gpr decoders disas: nanoMIPS: Comment the decoder of 'gpr1' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr1' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr2.reg2' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr2.reg2' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr2.reg1' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr2.reg1' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr4.zero' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr4.zero' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr4' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr4' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr3.src.store' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr3.src.store' gpr encoding type disas: nanoMIPS: Comment the decoder of 'gpr3' gpr encoding type disas: nanoMIPS: Rename the decoder of 'gpr3' gpr encoding type ... Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Jan 03, 2019
-
-
Fredrik Noring authored
Test R5900 three-operand MADDU1. Reviewed-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Fredrik Noring <noring@nocrew.org>
-
Fredrik Noring authored
Test R5900 three-operand MADDU. Reviewed-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Fredrik Noring <noring@nocrew.org>
-
Fredrik Noring authored
Test R5900 three-operand MADD1. Reviewed-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Fredrik Noring <noring@nocrew.org>
-
Fredrik Noring authored
Test R5900 three-operand MADD. Reviewed-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Fredrik Noring <noring@nocrew.org>
-
Aleksandar Markovic authored
Add "nanoMIPS32 Instruction Set Technical Reference Manual" as a reference. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Reorder declarations and definitions of gpr decoders by number of input bits of corresponding encoding type. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr2.reg2' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr2.reg2' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr2.reg1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr2.reg1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Fix order of extraction function invocations so that extraction goes from MSB side to LSB side of the given instruction coding content. This is desireable because of consistency and easier visual spotting of errors. After this patch, all such invocations should be in the desired order. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename more functions that have names that are hard to understand. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_ft_20_19_18_17_16(uint64 instruction) to NMD::extract_ft_25_24_23_22_21(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_fs_15_14_13_12_11(uint64 instruction) to NMD::extract_fs_20_19_18_17_16(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_fd_10_9_8_7_6(uint64 instruction) to NMD::extract_fd_15_14_13_12_11(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-