All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30
@ 2018-07-31  8:02 Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-07-31  8:02 UTC (permalink / raw)
  To: qemu-devel

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(-)
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG
  2018-07-31  8:02 [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Paolo Bonzini
@ 2018-07-31  8:02 ` Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 3/4] timer: remove replay clock probe in deadline calculation Paolo Bonzini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-07-31  8:02 UTC (permalink / raw)
  To: qemu-devel

This is trivial, so just do it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 target/i386/misc_helper.c | 3 +++
 target/i386/smm_helper.c  | 1 +
 2 files changed, 4 insertions(+)

diff --git a/target/i386/misc_helper.c b/target/i386/misc_helper.c
index 628f64a..78f2020 100644
--- a/target/i386/misc_helper.c
+++ b/target/i386/misc_helper.c
@@ -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):
diff --git a/target/i386/smm_helper.c b/target/i386/smm_helper.c
index 90621e5..c1c34a7 100644
--- a/target/i386/smm_helper.c
+++ b/target/i386/smm_helper.c
@@ -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;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PULL 3/4] timer: remove replay clock probe in deadline calculation
  2018-07-31  8:02 [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG Paolo Bonzini
@ 2018-07-31  8:02 ` Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 4/4] backends/cryptodev: remove dead code Paolo Bonzini
  2018-07-31 12:35 ` [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Peter Maydell
  3 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-07-31  8:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Pavel Dovgalyuk

From: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>

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.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <20180725121526.12867.17866.stgit@pasha-VirtualBox>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 util/qemu-timer.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/util/qemu-timer.c b/util/qemu-timer.c
index 2ed1bf2..86bfe84 100644
--- a/util/qemu-timer.c
+++ b/util/qemu-timer.c
@@ -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;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PULL 4/4] backends/cryptodev: remove dead code
  2018-07-31  8:02 [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG Paolo Bonzini
  2018-07-31  8:02 ` [Qemu-devel] [PULL 3/4] timer: remove replay clock probe in deadline calculation Paolo Bonzini
@ 2018-07-31  8:02 ` Paolo Bonzini
  2018-07-31 12:35 ` [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Peter Maydell
  3 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2018-07-31  8:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jay Zhou

From: Jay Zhou <jianjay.zhou@huawei.com>

Fix Coverity issue 1390600.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Message-Id: <1524894864-7492-1-git-send-email-jianjay.zhou@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 backends/cryptodev-vhost-user.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-user.c
index d52dacc..d539f14 100644
--- a/backends/cryptodev-vhost-user.c
+++ b/backends/cryptodev-vhost-user.c
@@ -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(
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30
  2018-07-31  8:02 [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Paolo Bonzini
                   ` (2 preceding siblings ...)
  2018-07-31  8:02 ` [Qemu-devel] [PULL 4/4] backends/cryptodev: remove dead code Paolo Bonzini
@ 2018-07-31 12:35 ` Peter Maydell
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2018-07-31 12:35 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: QEMU Developers

On 31 July 2018 at 09:02, Paolo Bonzini <pbonzini@redhat.com> wrote:
> 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.
>
> ----------------------------------------------------------------


Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-31 12:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-31  8:02 [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Paolo Bonzini
2018-07-31  8:02 ` [Qemu-devel] [PULL 2/4] i386: implement MSR_SMI_COUNT for TCG Paolo Bonzini
2018-07-31  8:02 ` [Qemu-devel] [PULL 3/4] timer: remove replay clock probe in deadline calculation Paolo Bonzini
2018-07-31  8:02 ` [Qemu-devel] [PULL 4/4] backends/cryptodev: remove dead code Paolo Bonzini
2018-07-31 12:35 ` [Qemu-devel] [PULL 0/4] Misc patches for 2018-07-30 Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.