Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update QEMU to v8.2.2 #63

Merged
merged 84 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
e589e5a
migration: Plug memory leak on HMP migrate error path
Jan 17, 2024
106aa13
migration: Fix use-after-free of migration state object
Jan 19, 2024
b79a2ef
vfio/pci: Clear MSI-X IRQ index always
legoater Jan 25, 2024
3837e6d
Make 'uri' optional for migrate QAPI
hetgala99 Jan 23, 2024
84c9704
qemu-docs: Update options for graphical frontends
Xunop Jan 22, 2024
b917155
block/blkio: Make s->mem_region_alignment be 64 bits
rwmjones Jan 30, 2024
35a60a2
target/arm: fix exception syndrome for AArch32 bkpt insn
jkloetzke Feb 1, 2024
e2a12fa
system/vl.c: Fix handling of '-serial none -serial something'
pm215 Jan 22, 2024
2d0530a
qemu-options.hx: Improve -serial option documentation
pm215 Jan 22, 2024
de6992d
target/arm: Reinstate "vfp" property on AArch32 CPUs
pm215 Jan 26, 2024
5f5e302
pci-host: designware: Limit value range of iATU viewport register
groeck Jan 29, 2024
8b7750c
tcg/loongarch64: Set vector registers call clobbered
rth7680 Feb 1, 2024
3a970de
linux-user/aarch64: Add padding before __kernel_rt_sigreturn
rth7680 Feb 2, 2024
bbfcb0f
hw/scsi/lsi53c895a: add missing decrement of reentrancy counter
svenschnelle Jan 28, 2024
88555e3
iotests: fix leak of tmpdir in dry-run mode
berrange Feb 5, 2024
84c54ea
iotests: give tempdir an identifying name
berrange Feb 5, 2024
feb2073
virtio-scsi: Attach event vq notifier with no_poll
XanClic Feb 2, 2024
00e50cb
virtio: Re-enable notifications after drain
XanClic Feb 2, 2024
c36d4d3
virtio-blk: avoid using ioeventfd state in irqfd conditional
stefanhaRH Jan 22, 2024
76c172f
migration: Fix logic of channels and transport compatibility check
avihai1122 Jan 25, 2024
eca4e19
hw/riscv/virt-acpi-build.c: fix leak in build_rhct()
danielhb Jan 22, 2024
cefca32
tests/docker: Add sqlite3 module to openSUSE Leap container
Feb 7, 2024
6eeeb87
configure: run plugin TCG tests again
bonzini Feb 7, 2024
d6e07d5
hw/smbios: Fix OEM strings table option validation
akihikodaki Jan 29, 2024
9ab476c
hw/smbios: Fix port connector option validation
akihikodaki Jan 29, 2024
281fea0
hw/net/tulip: add chip status register values
svenschnelle Feb 5, 2024
e5f1056
tcg: Increase width of temp_subindex
rth7680 Feb 13, 2024
181e548
tcg/arm: Fix goto_tb for large translation blocks
rth7680 Feb 12, 2024
17ae7eb
vhost-user.rst: Fix vring address description
rdna Jan 12, 2024
8997083
cxl/cdat: Handle cdat table build errors
weiny2 Jan 26, 2024
9d8a2a8
cxl/cdat: Fix header sum value in CDAT checksum
weiny2 Jan 26, 2024
bdd3159
hw/cxl/device: read from register values in mdev_reg_read()
hygoni Jan 26, 2024
bbe51d6
hw/cxl: Pass CXLComponentState to cache_mem_ops
zhijianli88 Jan 26, 2024
1c38c8a
virtio-gpu: Correct virgl_renderer_resource_get_info() error check
digetx Jan 29, 2024
721c3ce
virtio_iommu: Clear IOMMUPciBus pointer cache when system reset
duanzhenzhong Jan 25, 2024
d415719
smmu: Clear SMMUPciBus pointer cache when system reset
duanzhenzhong Jan 25, 2024
47df9ca
tests/acpi: Allow update of DSDT.cxl
jic23 Jan 26, 2024
02d9979
hw/i386: Fix _STA return value for ACPI0017
jic23 Jan 26, 2024
803f1e7
tests/acpi: Update DSDT.cxl to reflect change _STA return value.
jic23 Jan 26, 2024
7950913
linux-user/aarch64: Choose SYNC as the preferred MTE mode
rth7680 Feb 15, 2024
5e6e09b
target/arm: Fix nregs computation in do_{ld,st}_zpa
rth7680 Feb 15, 2024
8da74af
target/arm: Adjust and validate mtedesc sizem1
rth7680 Feb 15, 2024
da80471
target/arm: Split out make_svemte_desc
rth7680 Feb 15, 2024
2d1a29e
target/arm: Handle mte in do_ldrq, do_ldro
rth7680 Feb 15, 2024
429c11c
target/arm: Fix SVE/SME gross MTE suppression checks
rth7680 Feb 15, 2024
f030e96
target/arm: Don't get MDCR_EL2 in pmu_counter_enabled() before checki…
pm215 Feb 8, 2024
d5bc76f
iotests: Make 144 deterministic again
kevmw Feb 9, 2024
4d9dc11
.gitlab-ci/windows.yml: Don't install libusb or spice packages on 32-bit
pm215 Feb 15, 2024
0766f13
i386/cpu: Clear FEAT_XSAVE_XSS_LO/HI leafs when CPUID_EXT_XSAVE is no…
calmisi Jan 15, 2024
72c4ef9
i386/cpu: Mask with XCR0/XSS mask for FEAT_XSAVE_XCR0_HI and FEAT_XSA…
calmisi Jan 15, 2024
e8d2772
i386/cpuid: Decrease cpuid_i when skipping CPUID leaf 1F
calmisi Jan 25, 2024
f5dddb8
i386/cpuid: Move leaf 7 to correct group
calmisi Jan 25, 2024
0b30735
target/i386: Generate an illegal opcode exception on cmp instructions…
wtdcode Feb 15, 2024
4fd56da
ui: reject extended clipboard message if not activated
berrange Jan 15, 2024
480a6ad
ui/clipboard: mark type as not available when there is no data
foxmox Jan 24, 2024
7ff0d4d
ui/clipboard: add asserts for update and request
foxmox Jan 24, 2024
2e5c9d5
ui/console: Fix console resize with placeholder surface
SuperSodaSea Feb 7, 2024
1766b93
audio: Depend on dbus_display1_dep
akihikodaki Feb 14, 2024
fb22ee7
meson: Explicitly specify dbus-display1.h dependency
akihikodaki Feb 14, 2024
814f887
tests/qtest: Depend on dbus_display1_dep
akihikodaki Feb 14, 2024
56ee4a6
hw/hppa/Kconfig: Fix building with "configure --without-default-devices"
huth Feb 16, 2024
2da2e67
docs/system: Update description for input grab key
SuperSodaSea Feb 21, 2024
aafe8c0
system/vl: Update description for input grab key
SuperSodaSea Feb 21, 2024
01aa603
.gitlab-ci.d/windows.yml: Drop msys2-32bit job
pm215 Feb 20, 2024
175bded
target/ppc: Fix lxv/stxv MSR facility check
npiggin Feb 13, 2024
131ed62
target/ppc: Fix crash on machine check caused by ifetch
npiggin Dec 15, 2023
cc98bd4
update edk2 submodule to edk2-stable202402
kraxel Feb 26, 2024
8c86c88
update edk2 binaries to edk2-stable202402
kraxel Feb 26, 2024
e4e36e6
hw/nvme: fix invalid endian conversion
birkelund Feb 22, 2024
a0fb839
pl031: Update last RTCLR value on write in case it's read back
jrtc27 Feb 26, 2024
6ed8211
target/i386: mask high bits of CR3 in 32-bit mode
bonzini Dec 22, 2023
5c4091f
target/i386: check validity of VMCB addresses
bonzini Dec 22, 2023
a28b6b4
target/i386: Fix physical address truncation
bonzini Dec 22, 2023
6801a20
target/i386: remove unnecessary/wrong application of the A20 mask
bonzini Dec 22, 2023
decafac
target/i386: leave the A20 bit set in the final NPT walk
bonzini Dec 22, 2023
36d50b4
tests/vm: update openbsd image to 7.4
stsquad Feb 27, 2024
6c14f93
tests/vm: avoid re-building the VM images all the time
stsquad Feb 27, 2024
0e33e4e
gitlab: force allow use of pip in Cirrus jobs
berrange Feb 22, 2024
829bb27
hw/intc/Kconfig: Fix GIC settings when using "--without-default-devices"
huth Feb 21, 2024
e6ce551
hw/usb/bus.c: PCAP adding 0xA in Windows version
fysnet Feb 25, 2024
2a97c05
tests/unit/test-util-sockets: Remove temporary file after test
huth Feb 26, 2024
2121469
chardev/char-socket: Fix TLS io channels sending too much data to the…
huth Feb 29, 2024
11aa0b1
Update version for 8.2.2 release
Mar 4, 2024
686f169
Merge tag 'v8.2.2' into update_qemu
rmalmain Apr 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab-ci.d/cirrus/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build_task:
install_script:
- @UPDATE_COMMAND@
- @INSTALL_COMMAND@ @PKGS@
- if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
- if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; @PIP3@ install @PYPI_PKGS@ ; fi
clone_script:
- git clone --depth 100 "$CI_REPOSITORY_URL" .
- git fetch origin "$CI_COMMIT_REF_NAME"
Expand Down
16 changes: 4 additions & 12 deletions .gitlab-ci.d/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
$MINGW_TARGET-libpng
$MINGW_TARGET-libssh
$MINGW_TARGET-libtasn1
$MINGW_TARGET-libusb
$MINGW_TARGET-lzo2
$MINGW_TARGET-nettle
$MINGW_TARGET-ninja
Expand All @@ -98,9 +97,8 @@
$MINGW_TARGET-SDL2
$MINGW_TARGET-SDL2_image
$MINGW_TARGET-snappy
$MINGW_TARGET-spice
$MINGW_TARGET-usbredir
$MINGW_TARGET-zstd "
$MINGW_TARGET-zstd
$EXTRA_PACKAGES "
- Write-Output "Running build at $(Get-Date -Format u)"
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
- $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
Expand All @@ -123,6 +121,8 @@ msys2-64bit:
variables:
MINGW_TARGET: mingw-w64-x86_64
MSYSTEM: MINGW64
# msys2 only ship these packages for 64-bit, not 32-bit
EXTRA_PACKAGES: $MINGW_TARGET-libusb $MINGW_TARGET-usbredir $MINGW_TARGET-spice
# do not remove "--without-default-devices"!
# commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
# changed to compile QEMU with the --without-default-devices switch
Expand All @@ -131,11 +131,3 @@ msys2-64bit:
# qTests don't run successfully with "--without-default-devices",
# so let's exclude the qtests from CI for now.
TEST_ARGS: --no-suite qtest

msys2-32bit:
extends: .shared_msys2_builder
variables:
MINGW_TARGET: mingw-w64-i686
MSYSTEM: MINGW32
CONFIGURE_ARGS: --target-list=ppc64-softmmu -Ddebug=false -Doptimization=0
TEST_ARGS: --no-suite qtest
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.2.1
8.2.2
3 changes: 2 additions & 1 deletion audio/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ endforeach

if dbus_display
module_ss = ss.source_set()
module_ss.add(when: [gio, pixman], if_true: files('dbusaudio.c'))
module_ss.add(when: [gio, dbus_display1_dep, pixman],
if_true: files('dbusaudio.c'))
audio_modules += {'dbus': module_ss}
endif

Expand Down
2 changes: 1 addition & 1 deletion block/blkio.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ typedef struct {
CoQueue bounce_available;

/* The value of the "mem-region-alignment" property */
size_t mem_region_alignment;
uint64_t mem_region_alignment;

/* Can we skip adding/deleting blkio_mem_regions? */
bool needs_mem_regions;
Expand Down
6 changes: 3 additions & 3 deletions chardev/char-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,9 @@ static gboolean tcp_chr_read(QIOChannel *chan, GIOCondition cond, void *opaque)
s->max_size <= 0) {
return TRUE;
}
len = sizeof(buf);
if (len > s->max_size) {
len = s->max_size;
len = tcp_chr_read_poll(opaque);
if (len > sizeof(buf)) {
len = sizeof(buf);
}
size = tcp_chr_recv(chr, (void *)buf, len);
if (size == 0 || (size == -1 && errno != EAGAIN)) {
Expand Down
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,9 @@ fi
mkdir -p tests/tcg
echo "# Automatically generated by configure - do not modify" > $config_host_mak
echo "SRC_PATH=$source_path" >> $config_host_mak
if test "$plugins" = "yes" ; then
echo "CONFIG_PLUGIN=y" >> tests/tcg/$config_host_mak
fi

tcg_tests_targets=
for target in $target_list; do
Expand Down
6 changes: 3 additions & 3 deletions contrib/vhost-user-gpu/virgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,15 @@ virgl_get_resource_info_modifiers(uint32_t resource_id,
#ifdef VIRGL_RENDERER_RESOURCE_INFO_EXT_VERSION
struct virgl_renderer_resource_info_ext info_ext;
ret = virgl_renderer_resource_get_info_ext(resource_id, &info_ext);
if (ret < 0) {
if (ret) {
return ret;
}

*info = info_ext.base;
*modifiers = info_ext.modifiers;
#else
ret = virgl_renderer_resource_get_info(resource_id, info);
if (ret < 0) {
if (ret) {
return ret;
}

Expand Down Expand Up @@ -372,7 +372,7 @@ virgl_cmd_set_scanout(VuGpu *g,
uint64_t modifiers = 0;
ret = virgl_get_resource_info_modifiers(ss.resource_id, &info,
&modifiers);
if (ret == -1) {
if (ret) {
g_critical("%s: illegal resource specified %d\n",
__func__, ss.resource_id);
cmd->error = VIRTIO_GPU_RESP_ERR_INVALID_RESOURCE_ID;
Expand Down
6 changes: 3 additions & 3 deletions docs/interop/vhost-user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ Vring descriptor indices for packed virtqueues
A vring address description
^^^^^^^^^^^^^^^^^^^^^^^^^^^

+-------+-------+------+------------+------+-----------+-----+
| index | flags | size | descriptor | used | available | log |
+-------+-------+------+------------+------+-----------+-----+
+-------+-------+------------+------+-----------+-----+
| index | flags | descriptor | used | available | log |
+-------+-------+------------+------+-----------+-----+

:index: a 32-bit vring index

Expand Down
13 changes: 7 additions & 6 deletions docs/system/keys.rst.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
During the graphical emulation, you can use special key combinations to
change modes. The default key mappings are shown below, but if you use
``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt)
and if you use ``-ctrl-grab`` then the modifier is the right Ctrl key
(instead of Ctrl-Alt):
During the graphical emulation, you can use special key combinations from
the following table to change modes. By default the modifier is Ctrl-Alt
(used in the table below) which can be changed with ``-display`` suboption
``mod=`` where appropriate. For example, ``-display sdl,
grab-mod=lshift-lctrl-lalt`` changes the modifier key to Ctrl-Alt-Shift,
while ``-display sdl,grab-mod=rctrl`` changes it to the right Ctrl key.

Ctrl-Alt-f
Toggle full screen
Expand All @@ -28,7 +29,7 @@ Ctrl-Alt-n
*3*
Serial port

Ctrl-Alt
Ctrl-Alt-g
Toggle mouse and keyboard grab.

In the virtual consoles, you can use Ctrl-Up, Ctrl-Down, Ctrl-PageUp and
Expand Down
2 changes: 2 additions & 0 deletions hw/arm/smmu-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,8 @@ static void smmu_base_reset_hold(Object *obj)
{
SMMUState *s = ARM_SMMU(obj);

memset(s->smmu_pcibus_by_bus_num, 0, sizeof(s->smmu_pcibus_by_bus_num));

g_hash_table_remove_all(s->configs);
g_hash_table_remove_all(s->iotlb);
}
Expand Down
2 changes: 1 addition & 1 deletion hw/block/virtio-blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static void virtio_blk_req_complete(VirtIOBlockReq *req, unsigned char status)
iov_discard_undo(&req->inhdr_undo);
iov_discard_undo(&req->outhdr_undo);
virtqueue_push(req->vq, &req->elem, req->in_len);
if (s->dataplane_started && !s->dataplane_disabled) {
if (qemu_in_iothread()) {
virtio_blk_data_plane_notify(s->dataplane, req->vq);
} else {
virtio_notify(vdev, req->vq);
Expand Down
11 changes: 8 additions & 3 deletions hw/cxl/cxl-cdat.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static void ct3_build_cdat(CDATObject *cdat, Error **errp)
g_autofree CDATTableHeader *cdat_header = NULL;
g_autofree CDATEntry *cdat_st = NULL;
uint8_t sum = 0;
uint8_t *hdr_buf;
int ent, i;

/* Use default table if fopen == NULL */
Expand All @@ -63,7 +64,7 @@ static void ct3_build_cdat(CDATObject *cdat, Error **errp)
cdat->built_buf_len = cdat->build_cdat_table(&cdat->built_buf,
cdat->private);

if (!cdat->built_buf_len) {
if (cdat->built_buf_len <= 0) {
/* Build later as not all data available yet */
cdat->to_update = true;
return;
Expand Down Expand Up @@ -95,8 +96,12 @@ static void ct3_build_cdat(CDATObject *cdat, Error **errp)
/* For now, no runtime updates */
cdat_header->sequence = 0;
cdat_header->length += sizeof(CDATTableHeader);
sum += cdat_header->revision + cdat_header->sequence +
cdat_header->length;

hdr_buf = (uint8_t *)cdat_header;
for (i = 0; i < sizeof(*cdat_header); i++) {
sum += hdr_buf[i];
}

/* Sum of all bytes including checksum must be 0 */
cdat_header->checksum = ~sum + 1;

Expand Down
2 changes: 1 addition & 1 deletion hw/cxl/cxl-component-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void cxl_component_register_block_init(Object *obj,
/* io registers controls link which we don't care about in QEMU */
memory_region_init_io(&cregs->io, obj, NULL, cregs, ".io",
CXL2_COMPONENT_IO_REGION_SIZE);
memory_region_init_io(&cregs->cache_mem, obj, &cache_mem_ops, cregs,
memory_region_init_io(&cregs->cache_mem, obj, &cache_mem_ops, cxl_cstate,
".cache_mem", CXL2_COMPONENT_CM_REGION_SIZE);

memory_region_add_subregion(&cregs->component_registers, 0, &cregs->io);
Expand Down
17 changes: 11 additions & 6 deletions hw/cxl/cxl-device-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,9 @@ static void mailbox_reg_write(void *opaque, hwaddr offset, uint64_t value,

static uint64_t mdev_reg_read(void *opaque, hwaddr offset, unsigned size)
{
uint64_t retval = 0;

retval = FIELD_DP64(retval, CXL_MEM_DEV_STS, MEDIA_STATUS, 1);
retval = FIELD_DP64(retval, CXL_MEM_DEV_STS, MBOX_READY, 1);
CXLDeviceState *cxl_dstate = opaque;

return retval;
return cxl_dstate->memdev_status;
}

static void ro_reg_write(void *opaque, hwaddr offset, uint64_t value,
Expand Down Expand Up @@ -371,7 +368,15 @@ static void mailbox_reg_init_common(CXLDeviceState *cxl_dstate)
cxl_dstate->mbox_msi_n = msi_n;
}

static void memdev_reg_init_common(CXLDeviceState *cxl_dstate) { }
static void memdev_reg_init_common(CXLDeviceState *cxl_dstate)
{
uint64_t memdev_status_reg;

memdev_status_reg = FIELD_DP64(0, CXL_MEM_DEV_STS, MEDIA_STATUS, 1);
memdev_status_reg = FIELD_DP64(memdev_status_reg, CXL_MEM_DEV_STS,
MBOX_READY, 1);
cxl_dstate->memdev_status = memdev_status_reg;
}

void cxl_device_register_init_t3(CXLType3Dev *ct3d)
{
Expand Down
2 changes: 1 addition & 1 deletion hw/display/virtio-gpu-virgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void virgl_cmd_set_scanout(VirtIOGPU *g,
memset(&info, 0, sizeof(info));
ret = virgl_renderer_resource_get_info(ss.resource_id, &info);
#endif
if (ret == -1) {
if (ret) {
qemu_log_mask(LOG_GUEST_ERROR,
"%s: illegal resource specified %d\n",
__func__, ss.resource_id);
Expand Down
2 changes: 2 additions & 0 deletions hw/hppa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config HPPA_B160L
select DINO
select LASI
select SERIAL
select SERIAL_PCI
select ISA_BUS
select I8259
select IDE_CMD646
Expand All @@ -16,3 +17,4 @@ config HPPA_B160L
select LASIPS2
select PARALLEL
select ARTIST
select USB_OHCI_PCI
2 changes: 1 addition & 1 deletion hw/i386/acpi-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ static void build_acpi0017(Aml *table)
aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0017")));

method = aml_method("_STA", 0, AML_NOTSERIALIZED);
aml_append(method, aml_return(aml_int(0x01)));
aml_append(method, aml_return(aml_int(0x0B)));
aml_append(dev, method);
build_cxl_dsm_method(dev);

Expand Down
12 changes: 6 additions & 6 deletions hw/intc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ config IOAPIC
bool
select I8259

config ARM_GIC
bool
select MSI_NONBROKEN

config OPENPIC
bool
select MSI_NONBROKEN
Expand All @@ -25,14 +21,18 @@ config APIC
select MSI_NONBROKEN
select I8259

config ARM_GIC
bool
select ARM_GICV3_TCG if TCG
select ARM_GIC_KVM if KVM
select MSI_NONBROKEN

config ARM_GICV3_TCG
bool
default y
depends on ARM_GIC && TCG

config ARM_GIC_KVM
bool
default y
depends on ARM_GIC && KVM

config XICS
Expand Down
4 changes: 2 additions & 2 deletions hw/net/tulip.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,15 @@ static uint16_t tulip_mdi_default[] = {
/* MDI Registers 8 - 15 */
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* MDI Registers 16 - 31 */
0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0003, 0x0000, 0x0001, 0x0000, 0x3b40, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
};

/* Readonly mask for MDI (PHY) registers */
static const uint16_t tulip_mdi_mask[] = {
0x0000, 0xffff, 0xffff, 0xffff, 0xc01f, 0xffff, 0xffff, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0fff, 0x0000, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
0x0fff, 0x0000, 0xffff, 0xffff, 0x0000, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
};

Expand Down
2 changes: 1 addition & 1 deletion hw/nvme/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7924,7 +7924,7 @@ static void nvme_init_state(NvmeCtrl *n)
n->aer_reqs = g_new0(NvmeRequest *, n->params.aerl + 1);
QTAILQ_INIT(&n->aer_queue);

list->numcntl = cpu_to_le16(max_vfs);
list->numcntl = max_vfs;
for (i = 0; i < max_vfs; i++) {
sctrl = &list->sec[i];
sctrl->pcid = cpu_to_le16(n->cntlid);
Expand Down
2 changes: 2 additions & 0 deletions hw/pci-host/designware.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ static void designware_pcie_root_config_write(PCIDevice *d, uint32_t address,
break;

case DESIGNWARE_PCIE_ATU_VIEWPORT:
val &= DESIGNWARE_PCIE_ATU_REGION_INBOUND |
(DESIGNWARE_PCIE_NUM_VIEWPORTS - 1);
root->atu_viewport = val;
break;

Expand Down
2 changes: 1 addition & 1 deletion hw/riscv/virt-acpi-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static void build_rhct(GArray *table_data,
size_t len, aligned_len;
uint32_t isa_offset, num_rhct_nodes;
RISCVCPU *cpu;
char *isa;
g_autofree char *isa = NULL;

AcpiTable table = { .sig = "RHCT", .rev = 1, .oem_id = s->oem_id,
.oem_table_id = s->oem_table_id };
Expand Down
1 change: 1 addition & 0 deletions hw/rtc/pl031.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ static void pl031_write(void * opaque, hwaddr offset,
g_autofree const char *qom_path = object_get_canonical_path(opaque);
struct tm tm;

s->lr = value;
s->tick_offset += value - pl031_get_count(s);

qemu_get_timedate(&tm, s->tick_offset);
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/lsi53c895a.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,7 @@ static void lsi_execute_script(LSIState *s)
lsi_script_scsi_interrupt(s, LSI_SIST0_UDC, 0);
lsi_disconnect(s);
trace_lsi_execute_script_stop();
reentrancy_level--;
return;
}
insn = read_dword(s, s->dsp);
Expand Down
7 changes: 6 additions & 1 deletion hw/scsi/virtio-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ static void virtio_scsi_drained_begin(SCSIBus *bus)
static void virtio_scsi_drained_end(SCSIBus *bus)
{
VirtIOSCSI *s = container_of(bus, VirtIOSCSI, bus);
VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s);
VirtIODevice *vdev = VIRTIO_DEVICE(s);
uint32_t total_queues = VIRTIO_SCSI_VQ_NUM_FIXED +
s->parent_obj.conf.num_queues;
Expand All @@ -1166,7 +1167,11 @@ static void virtio_scsi_drained_end(SCSIBus *bus)

for (uint32_t i = 0; i < total_queues; i++) {
VirtQueue *vq = virtio_get_queue(vdev, i);
virtio_queue_aio_attach_host_notifier(vq, s->ctx);
if (vq == vs->event_vq) {
virtio_queue_aio_attach_host_notifier_no_poll(vq, s->ctx);
} else {
virtio_queue_aio_attach_host_notifier(vq, s->ctx);
}
}
}

Expand Down
Loading
Loading