105 Commits

Author SHA1 Message Date
Ming Yang
b39041a629 Merge branch 'openEuler-20.03-LTS-Next' of gitee.com:src-openeuler/qemu into yangming-rbd-20.03-next-v1 2021-04-25 10:33:29 +08:00
Chuan Zheng
0d8a7eb3ab Revert "migration/dirtyrate: add migration dirtyrate feature"
This reverts commit 31dcda4fc76a2079da58ace9f2c502c065eda1fd.
2021-04-19 09:58:03 +08:00
Chuan Zheng
70ead7ca97 Revert "multifd/tls: add support for multifd tls feature"
This reverts commit 7c511d7e1ffa9376fd98d1d4916287eb787e21b9.
2021-04-19 09:57:40 +08:00
Ming Yang
01ed8a90f1 Merge branch 'openEuler-20.03-LTS-Next' of gitee.com:src-openeuler/qemu into yangming-rbd-20.03-next-v1 2021-04-17 16:57:00 +08:00
ChuanZheng
7c511d7e1f multifd/tls: add support for multifd tls feature
tls migration can easily reach bottleneck of cpu which results in
migration failure.
add support for multifd tls feature to make fully use of bandwidth.
2021-04-17 16:43:05 +08:00
Chuan Zheng
31dcda4fc7 migration/dirtyrate: add migration dirtyrate feature
dirtyrate feature provides a method for calcluting dirty
page rate before migration.

Test dirtyrate by qmp command like this:
1. virsh qemu-monitor-command [vmname] '{"execute":"calc-dirty-rate", "arguments": {"calc-time": [sleep-time]}}'
2. sleep specific time which is a bit larger than sleep-time
3. virsh qemu-monitor-command [vmname] '{"execute":"query-dirty-rate"}'
2021-04-17 15:41:25 +08:00
Ming Yang
008c87949f Add block-rbd block-ssh and block-iscsi packages.
Signed-off-by: Ming Yang <yangming73@huawei.com>
2021-04-16 09:12:25 +00:00
Chen Qun
975b491b36 spec: Update release version with !85
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2021-03-18 22:02:22 +08:00
Chen Qun
91aea89496 spec: Update patch and changelog with !85 fix CVE-2021-20203 #I3A34O !85
net: vmxnet3: validate configuration values during activate (CVE-2021-20203)

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
2021-03-18 22:02:10 +08:00
Euler Robot
b6ea3e737f spec: Update release version with !75
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2021-02-26 16:28:26 +08:00
Euler Robot
918f84359b spec: Update patch and changelog with !75
ide:atapi: check io_buffer_index in ide_atapi_cmd_reply_end

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2021-02-26 16:27:54 +08:00
Euler Robot
c31379c458 spec: Update release version with !72
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2021-02-19 21:28:38 +08:00
Euler Robot
e540b82f51 spec: Update patch and changelog with !72
ati: use vga_read_byte in ati_cursor_define
sd: sdhci: assert data_count is within fifo_buffer
msix: add valid.accepts methods to check address

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2021-02-19 21:27:55 +08:00
Ying Fang
e3ded2e85f spec: reorder the changelog
Nothing but just reorder the changelog.

Signed-off-by: Ying Fang <fangying1@huawei.com>
2021-01-19 20:20:54 +08:00
Euler Robot
22c2e01926 spec: Update release version with !62
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2021-01-15 11:26:56 +08:00
Euler Robot
554bceb1ac spec: Update patch and changelog with !62
memory: clamp cached translation in case it points to an MMIO region

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2021-01-15 11:26:49 +08:00
Alex Chen
f482c6ad5d spec: updating the license info
Specify the version of CC-BY license

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2021-01-08 14:10:43 +08:00
Euler Robot
2d6775dfc7 spec: Update release version with !55
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2021-01-06 11:26:52 +08:00
Euler Robot
552b2ac9fb spec: Update patch and changelog with !55
target/arm: Fix write redundant values to kvm

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2021-01-06 11:26:52 +08:00
Euler Robot
bad95d5aa7 spec: Update release version with !53
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-12-15 21:27:25 +08:00
Euler Robot
81894b8d69 spec: Update patch and changelog with !53
hw: usb: hcd-ohci: check for processed TD before retire
hw: ehci: check return value of 'usb_packet_map'
hw: usb: hcd-ohci: check len and frame_number variables
hw/net/e1000e: advance desc_offset in case of null descriptor

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-15 21:27:18 +08:00
Alex Chen
7ef01abe88 slirp: check pkt_len before reading protocol header
While processing ARP/NCSI packets in 'arp_input' or 'ncsi_input'
routines, ensure that pkt_len is large enough to accommodate the
respective protocol headers, lest it should do an OOB access.
Add check to avoid it.

CVE-2020-29129 CVE-2020-29130
  QEMU: slirp: out-of-bounds access while processing ARP/NCSI packets
 -> https://www.openwall.com/lists/oss-security/2020/11/27/1

Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20201126135706.273950-1-ppandit@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
(cherry-picked from 2e1dcbc0)
Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-14 17:45:48 +08:00
Euler Robot
c2e1bb0edc spec: Update release version with !50
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-12-14 14:43:45 +08:00
Euler Robot
9a8321ab52 spec: Update patch and changelog with !50
hostmem: Fix up free host_nodes list right after visited

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-14 14:43:45 +08:00
Alex Chen
e9378e9de1 tests: Disalbe filemonitor testcase
Since filemonitor testcase requires that host kernel being a LTS version,
we cannot guarantee that on OBS system. Let's disable it by default.

Signed-off-by: Ying Fang <fangying1@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-14 11:26:28 +08:00
Euler Robot
6dcde13300 spec: Update release version with !45
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-12-08 17:07:49 +08:00
Euler Robot
c8b63b0764 spec: Update patch and changelog with !45
json: Fix a memleak in parse_pair()

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-08 17:07:48 +08:00
Euler Robot
cfe38bdf2b spec: Update release version with !41
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-12-07 11:26:56 +08:00
Euler Robot
b69a50ee73 spec: Update patch and changelog with !41
net: remove an assert call in eth_get_gso_type

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-12-07 11:26:54 +08:00
Euler Robot
5fe6190310 spec: Update release version with !32
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-11-22 21:27:10 +08:00
Euler Robot
1a3c916c87 spec: Update patch and changelog with !32
ati: check x y display parameter values

Signed-off-by: Alex Chen <alex.chen@huawei.com>
2020-11-22 21:27:09 +08:00
Euler Robot
2eaac8df60 spec: Update release version with !29
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-11-02 21:28:16 +08:00
Euler Robot
618d721818 spec: Update patch and changelog with !29
target/arm: Add isar_feature tests for PAN + ATS1E1
target/arm: Add ID_AA64MMFR2_EL1
target/arm: Add and use FIELD definitions for ID_AA64DFR0_EL1
target/arm: Use FIELD macros for clearing ID_DFR0 PERFMON field
target/arm: Define an aa32_pmu_8_1 isar feature test function
target/arm: Add _aa64_ and _any_ versions of pmu_8_1 isar checks
target/arm: Stop assuming DBGDIDR always exists
target/arm: Move DBGDIDR into ARMISARegisters
target/arm: Enable ARMv8.2-ATS1E1 in -cpu max
target/arm: Test correct register in aa32_pan and aa32_ats1e1 checks
target/arm: Read debug-related ID registers from KVM
target/arm/monitor: Introduce qmp_query_cpu_model_expansion
target/arm/monitor: query-cpu-model-expansion crashed qemu when using machine type none
target/arm: convert isar regs to array
target/arm: parse cpu feature related options
target/arm: register CPU features for property
target/arm: Allow ID registers to synchronize to KVM
target/arm: introduce CPU feature dependency mechanism
target/arm: introduce KVM_CAP_ARM_CPU_FEATURE
target/arm: Add CPU features to query-cpu-model-expansion
target/arm: Update ID fields
target/arm: Add more CPU features
target/arm: ignore evtstrm and cpuid CPU features
target/arm: Update the ID registers of Kunpeng-920
target/arm: only set ID_PFR1_EL1.GIC for AArch32 guest
target/arm: clear EL2 and EL3 only when kvm is not enabled

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Liang Yan <lyan@suse.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
2020-11-02 21:28:15 +08:00
Euler Robot
b73cb9d02e spec: Update release version with !26
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-10-22 16:29:45 +08:00
Euler Robot
0c27d06fc9 spec: Update patch and changelog with !26
pci: check bus pointer before dereference
hw/ide: check null block before _cancel_dma_sync

Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
2020-10-22 16:29:38 +08:00
Euler Robot
66e514cb45 spec: Update release version with !14
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-10-10 15:46:31 +08:00
Euler Robot
632df052b8 spec: Update patch and changelog with !14
hw/net/xgmac: Fix buffer overflow in xgmac_enet_send()
hw/net/net_tx_pkt: fix assertion failure in net_tx_pkt_add_raw_fragment()
sm501: Convert printf + abort to qemu_log_mask
sm501: Shorten long variable names in sm501_2d_operation
sm501: Use BIT(x) macro to shorten constant
sm501: Clean up local variables in sm501_2d_operation
sm501: Replace hand written implementation with pixman where possible

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
2020-10-10 15:46:22 +08:00
AlexChen
06f886beec qemu: rename some patches for slirp
Signed-off-by: AlexChen <alex.chen@huawei.com>
2020-10-10 15:42:27 +08:00
AlexChen
a7b090aaca qemu: enrich commit info for some patchs
Signed-off-by: AlexChen <alex.chen@huawei.com>
2020-10-10 15:41:56 +08:00
Jiajie Li
74e366ee0f Fix CVE-2020-25085 & CVE-2020-25084
Signed-off-by Jiajie Li <lijiajie11@huawei.com>
2020-10-10 15:41:09 +08:00
Jiajie Li
3b04b46775 Drop bogus IPv6 messages
Drop IPv6 message shorter than what's mentioned in the payload
  length header (+ the size of the IPv6 header). They're invalid and could
  lead to data leakage in icmp6_send_echoreply().
2020-10-10 15:40:02 +08:00
lijiajie
514ab9213b update qemu.spec with hw-usb-core-fix-overflow.patch 2020-08-27 20:43:36 +08:00
Zeyu Jin
2bfc4806b3 hw/arm/acpi: enable SHPC native hot plug
backport from upstream:
https://git.qemu.org/?p=qemu.git;a=commit;h=e04c13cdcf5befd9d08df38d4d34494a802cdf63

Signed-off-by: Zeyu Jin <jinzeyu@huawei.com>
2020-08-12 14:14:30 +08:00
Zeyu Jin
b7af38f23a spec: increase build-requirement of rbd-devel
Rbd support is default in qemu configure, so we should also add rbd support in qemu.spec .

Signed-off-by: jinzeyu <jinzeyu@huawei.com>
2020-08-11 20:47:23 +08:00
Ying Fang
b2456150ba spec: enable Werror by default
enable Werror by default so that we can check compilation warnnings

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-08-04 15:30:36 +08:00
zhanghailiang
82b842349a qemu: pick serveral patches from upstream that fix CVE
Fix CVE-2020-13361, CVE-2020-13659, CVE-2020-13800, CVE-2020-13362

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
2020-07-25 13:25:59 +08:00
zhanghailiang
a8e410c7ce spec: increase release number
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
2020-06-20 15:42:02 +08:00
Ying Fang
dcba4d91a4 spec: Update release version
increase release version by one

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-05-29 11:16:19 +08:00
Ying Fang
12087330c1 target/arm: Add the kvm_adjvtime vcpu property for Cortex-A72
Add the kvm_adjvtime vcpu property for ARM Cortex-A72 cpu model,
so that virtual time adjust will be enabled for it.

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-05-29 11:15:45 +08:00
Ying Fang
cdc4c75a8b Revert "target/arm: add ths missing GENERIC_TIMER"
This reverts commit 665d6b61fd86629272885e281410f512f8e7f32e.
2020-05-29 11:09:01 +08:00