Misc patches for 2018-07-30
The following changes since commit 6d9dd5fb9d0e9f4a174f53a0e20a39fbe809c71e:
Merge remote-tracking branch 'remotes/armbru/tags/pull-qobject-2018-07-27-v2' into staging (2018-07-30 09:55:47 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to cc4c77e12b422db8a685cec97866950895a684bc:
backends/cryptodev: remove dead code (2018-07-30 14:00:11 +0200)
----------------------------------------------------------------
Bug fixes.
----------------------------------------------------------------
Jay Zhou (1):
backends/cryptodev: remove dead code
Paolo Bonzini (2):
i386: do not migrate MSR_SMI_COUNT on machine types <2.12
i386: implement MSR_SMI_COUNT for TCG
Pavel Dovgalyuk (1):
timer: remove replay clock probe in deadline calculation
backends/cryptodev-vhost-user.c | 5 ----- include/hw/i386/pc.h | 4 ++++ target/i386/cpu.c | 2 ++ target/i386/cpu.h | 1 + target/i386/machine.c | 2 +- target/i386/misc_helper.c | 3 +++ target/i386/smm_helper.c | 1 + util/qemu-timer.c | 11 ++--------- 8 files changed, 14 insertions(+), 15 deletions(-)
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 4/4] backends/cryptodev: remove dead code
From: Jay Zhou <[email protected]>
Fix Coverity issue 1390600.
Message-Id: <[email protected]>
--- backends/cryptodev-vhost-user.c | 5 ----- 1 file changed, 5 deletions(-)
backends/cryptodev-vhost-user.c +0 -5
@@ -157,7 +157,6 @@ static void cryptodev_vhost_user_event(void *opaque, int event) {CryptoDevBackendVhostUser *s = opaque;CryptoDevBackend *b =CRYPTODEV_BACKEND (s); -Error *err =NULL ;int queues = b->conf.peers.queues;assert (queues <MAX_CRYPTO_QUEUE_NUM );
@@ -174,10 +173,6 @@ static void cryptodev_vhost_user_event(void *opaque, int event)cryptodev_vhost_user_stop (queues, s);break ; } - -if (err) { -error_report_err (err); - } } static void cryptodev_vhost_user_init(
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 3/4] timer: remove replay clock probe in deadline calculation
In reply to Paolo BonziniFrom: Pavel Dovgalyuk <[email protected]>
Ciro Santilli reported that commit a5ed352596a8b7eb2f9acce34371b944ac3056c4 breaks the execution replay. It happens due to the probing the clock for the new instances of iothread.
However, this probing was made in replay mode for the timer lists that are empty.
This patch removes clock probing in replay mode.
It is an artifact of the old version with another thread model.
Message-Id: <20180725121526.12867.17866.stgit@pasha-VirtualBox>
--- util/qemu-timer.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
util/qemu-timer.c +2 -9
@@ -578,17 +578,10 @@ int64_t timerlistgroup_deadline_ns(QEMUTimerListGroup *tlg) {int64_t deadline =-1 ;QEMUClockType type; -bool play = replay_mode ==REPLAY_MODE_PLAY ;for (type =0 ; type <QEMU_CLOCK_MAX ; type++) {if (qemu_clock_use_for_deadline (type)) { -if (!play || type ==QEMU_CLOCK_REALTIME ) { - deadline =qemu_soonest_timeout (deadline, -timerlist_deadline_ns (tlg->tl[type])); - }else { -/* Read clock from the replay file and -do not calculate the deadline, based on virtual clock. */ -qemu_clock_get_ns (type); - } + deadline =qemu_soonest_timeout (deadline, +timerlist_deadline_ns (tlg->tl[type])); } }return deadline;
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG
In reply to Paolo BonziniThis is trivial, so just do it.
--- target/i386/misc_helper.c | 3 +++ target/i386/smm_helper.c | 1 + 2 files changed, 4 insertions(+)
target/i386/misc_helper.c +3 -0
@@ -447,6 +447,9 @@ void helper_rdmsr(CPUX86State *env) val = env->tsc_aux;break ;#endif +case MSR_SMI_COUNT : + val = env->msr_smi_count; +break ;case MSR_MTRRphysBase (0 ):case MSR_MTRRphysBase (1 ):case MSR_MTRRphysBase (2 ):
target/i386/smm_helper.c +1 -0
@@ -54,6 +54,7 @@ void do_smm_enter(X86CPU *cpu)qemu_log_mask (CPU_LOG_INT ,"SMM: enter\n" );log_cpu_state_mask (CPU_LOG_INT ,CPU (cpu),CPU_DUMP_CCOP ); + env->msr_smi_count++; env->hflags |=HF_SMM_MASK ;if (env->hflags2 &HF2_NMI_MASK ) { env->hflags2 |=HF2_SMM_INSIDE_NMI_MASK ;
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 9 lines · Paolo Bonzini
The following changes since commit
6d9dd5fb9d0e9f4a174f53a0e20a39fbe809c71e:Merge remote-tracking branch 'remotes/armbru/tags/pull-qobject-2018-07-27-v2' into staging (2018-07-30 09:55:47 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstream
Quoted 8 lines
for you to fetch changes up to
cc4c77e12b422db8a685cec97866950895a684bc:backends/cryptodev: remove dead code (2018-07-30 14:00:11 +0200)
----------------------------------------------------------------
Bug fixes.----------------------------------------------------------------
Applied, thanks.
-- PMM