Commit Graph

100999 Commits

Author SHA1 Message Date
Chenyi Qiang 5f43c7786e virtio-mem: Fix the bitmap index of the section offset
vmem->bitmap indexes the memory region of the virtio-mem backend at a
granularity of block_size. To calculate the index of target section offset,
the block_size should be divided instead of the bitmap_size.

Fixes: 2044969f0b ("virtio-mem: Implement RamDiscardManager interface")
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20221216062231.11181-1-chenyi.qiang@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: David Hildenbrand <david@redhat.com>
(cherry picked from commit b11cf32e07)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-03-29 10:20:04 +03:00
Jason Wang f16011abc1 vhost: fix vq dirty bitmap syncing when vIOMMU is enabled
When vIOMMU is enabled, the vq->used_phys is actually the IOVA not
GPA. So we need to translate it to GPA before the syncing otherwise we
may hit the following crash since IOVA could be out of the scope of
the GPA log size. This could be noted when using virtio-IOMMU with
vhost using 1G memory.

Fixes: c471ad0e9b ("vhost_net: device IOTLB support")
Cc: qemu-stable@nongnu.org
Tested-by: Lei Yang <leiyang@redhat.com>
Reported-by: Yalan Zhang <yalzhang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221216033552.77087-1-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 345cc1cbcb)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-03-29 10:20:04 +03:00
Guenter Roeck e34f86a2f9 target/sh4: Mask restore of env->flags from tb->flags
The values in env->flags are a subset of tb->flags.
Restore only the bits that belong.

Cc: qemu-stable@nongnu.org
Fixes: ab419fd8a0 ("target/sh4: Fix TB_FLAG_UNALIGN")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-ID: <20221212011345.GA2235238@roeck-us.net>
[rth: Reduce to only the the superh_cpu_synchronize_from_tb change]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit bc2331635c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-03-29 10:20:04 +03:00
Antonio Abbatangelo 4a99fd0f18 ui: Add clear button to file picker 2023-03-26 22:20:11 -07:00
wutno 065c74a00f nv2a: Don't manually set NV_PFB_CFG0 reg 2023-03-06 14:02:41 -07:00
Dustin Holden d8fa50e524 smc: Implement read/write of SMC error code storage 2023-02-14 17:10:40 -07:00
Matt Borgerson 7cbe9d337a util/osdep.c: Fix qemu_mkdir missing return value 2023-01-23 12:47:25 -07:00
Matt Borgerson 3c836586be ci: Update xemu-win64-toolchain image tag 2023-01-23 12:39:36 -07:00
Matt Borgerson d0d3e7b4fa xemu-win64-toolchain/sdl2.mk: Specify PKG_FILE 2023-01-23 10:37:06 -07:00
Matt Borgerson c08183c54d xemu-win64-toolchain: Add libslirp v4.7.0 2023-01-23 10:37:06 -07:00
Matt Borgerson d14e3360d3 scripts/download-macos-libs.py: Add libslirp 2023-01-23 02:17:32 -07:00
Matt Borgerson e1cd23213f configure, meson: Use legacy gl/epoxy detection for now 2023-01-23 02:17:32 -07:00
Matt Borgerson 577c469ae1 scripts/gen-license.py: Update libslirp 2023-01-23 02:06:46 -07:00
Matt Borgerson 9c3e05ded4 configure: Add back fortify source option 2023-01-23 00:30:40 -07:00
Matt Borgerson 03ba4ecad2 ci: Drop QEMU GH mirror's lockdown.yml workflow 2023-01-23 00:30:40 -07:00
Matt Borgerson 861492d62a meson: Use optimization level 3 2023-01-23 00:30:40 -07:00
Matt Borgerson 3afd8456d5 xbox.c: Fix null string warning 2023-01-23 00:30:40 -07:00
Matt Borgerson 38f294c58a softmmu/runstate.c: Fix unused variable warning 2023-01-23 00:30:40 -07:00
Matt Borgerson 637a37dd02 target/i386: Fix unused function warning 2023-01-23 00:30:40 -07:00
Matt Borgerson b53b53b04b configure: Cleanup straggling newline 2023-01-23 00:30:40 -07:00
Matt Borgerson b6dc0cdca2 accel/tcg: Don't attempt to revert code_gen_ptr on a recycled TB 2023-01-23 00:30:40 -07:00
Matt Borgerson c5a32ec200 meson: Update meson-buildoptions.sh 2023-01-23 00:30:40 -07:00
Matt Borgerson 2872f38f4f meson: Reflow a few sections 2023-01-23 00:30:40 -07:00
Matt Borgerson 25ced4f4c1 configure, meson: Migrate gl check to meson 2023-01-23 00:30:40 -07:00
Matt Borgerson ec7d5ce8db configure, meson: Migrate libsamplerate check to meson 2023-01-23 00:30:40 -07:00
Matt Borgerson ef44344d06 configure, meson: Migrate libpcap check to meson 2023-01-23 00:30:40 -07:00
Matt Borgerson ed042c141f configure, meson: Migrate openssl check to meson 2023-01-23 00:30:40 -07:00
Matt Borgerson 6cc30513ac configure, meson: Eliminate redundant gtk check 2023-01-23 00:30:40 -07:00
Matt Borgerson c3e9fb14a5 i386/tcg: Migrate gen_jmp_im to gen_update_eip_next 2023-01-23 00:30:40 -07:00
Matt Borgerson 93b2a408fb main: Cleanup 2023-01-23 00:30:40 -07:00
Matt Borgerson d981ca9409 accel/tcg: Migrate from tb->pc 2023-01-23 00:30:40 -07:00
Matt Borgerson d73d134bcf target/i386: Fix gen_enter_mmx calls 2023-01-23 00:30:40 -07:00
Matt Borgerson 2cca7e1b8f tlb: Update TCGMemOpIdx to MemOpIdx 2023-01-23 00:30:40 -07:00
Matt Borgerson 99e719a674 tlb: Update callback to use CPUTLBEntryFull 2023-01-23 00:30:40 -07:00
Matt Borgerson 4dd5e12807 xemu-xbe.c: Add memtxattrs 2023-01-23 00:30:40 -07:00
Matt Borgerson 2e201db096 xemu-hud.h: Add gl.h 2023-01-23 00:30:40 -07:00
Matt Borgerson 426805f0b3 ui/xemu: Specify new force param to qmp_blockdev_change_medium 2023-01-23 00:30:40 -07:00
Matt Borgerson b3fe79bc8a ui/xemu: Drop old display change listener ops 2023-01-23 00:30:40 -07:00
Matt Borgerson bf85019e32 ui/xemu: Specify delay arg to dpy_set_ui_info 2023-01-23 00:30:40 -07:00
Matt Borgerson 8625656510 ui/xemu: Define {ctrl,alt}_grab 2023-01-23 00:30:40 -07:00
Matt Borgerson 88fd14d26a meson: Enable slirp 2023-01-23 00:30:40 -07:00
Matt Borgerson c30a2a8f23 meson: Enable opengl 2023-01-23 00:30:40 -07:00
Matt Borgerson 28fb1e44c6 meson: Ignore EGL requirement 2023-01-23 00:30:40 -07:00
Matt Borgerson 8e3a1b2b2c xbox: Drop old pcms->pit_enabled setting 2023-01-23 00:30:40 -07:00
Matt Borgerson b1a59ba2e9 nv2a: Add missing vga headers 2023-01-23 00:30:40 -07:00
Matt Borgerson 381ac7e72c nv2a: Pass error_fatal to vga_common_init 2023-01-23 00:30:40 -07:00
Matt Borgerson b135dd14ea nv2a, mcpx: Drop minimum_version_id_old from vmsd 2023-01-23 00:30:40 -07:00
Matt Borgerson f54b0ba36d ac97: Specify memtxattrs 2023-01-23 00:30:40 -07:00
Matt Borgerson e9478a6cf3 include: Drop various qemu-common.h imports 2023-01-23 00:30:40 -07:00
Matt Borgerson 0f22bea488 meson: Require SDL 2023-01-23 00:30:40 -07:00