qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v7] s390x/pci: add common fmb
@ 2019-01-08 17:37 Pierre Morel
  2019-01-08 17:37 ` [Qemu-devel] [PATCH v7] s390x/pci: add common function measurement block Pierre Morel
  0 siblings, 1 reply; 10+ messages in thread
From: Pierre Morel @ 2019-01-08 17:37 UTC (permalink / raw)
  To: walling
  Cc: borntraeger, cohuck, rth, david, qemu-s390x, qemu-devel, pasic,
	thuth

After the last review round I and use the sizeof of the source entry
in the fmb_do_update() function instead of the target entry.
Anyway they both are the same size but it may be easier to read.

Regards,
Pierre

Yi Min Zhao (1):
  s390x/pci: add common function measurement block

 hw/s390x/s390-pci-bus.c  |   4 +-
 hw/s390x/s390-pci-bus.h  |  29 +++++++++++
 hw/s390x/s390-pci-inst.c | 133 +++++++++++++++++++++++++++++++++++++++++++++--
 hw/s390x/s390-pci-inst.h |   1 +
 4 files changed, 163 insertions(+), 4 deletions(-)

-- 
2.7.4

Changelog:

from v6:
- let the compiler calculate the sizeof target entry
  using the source size (was using target size)
  but of course they should (and are) the same

from v5:
- let the compiler calculate the sizeof target entry.

from v4:
- commit message
- use sizeof target of the fmb_do_update

from v3:
- changed commit message according to Conny's comments

In s390-pci-inst.c
- simplify the fmb_do_update() to handle
  all cases from byte to quad. (Conny)

from v2:
In s390-pci-bus:
- Initialize the FMB Format.

In s390-pci-bus.h
- re-organization of the internal counters, having a table for the
  internal counters.

In s390-pci-inst.c
- Internal counters update (LD/ST/STB/RPCIT) is done always.
  even if the FMB if fmb_addr is NULL.
  AFAIU this respect the documentation which only states that FMB
  update is stopped.
- in mpcifc_service_call(), moved the setting of fmb_addr after
  the timer has been stopped.
- fmb_update((), use address_space_stq_be() to handle endianness
  when storing the FMB.
- define the format with 32 bits instead of one char and reserved
  chars, this is easier to handle the FMB copy.
- No update of the DMA fields inside the FMB, as stipulated by the
  documentation when format32 is 0.

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

end of thread, other threads:[~2019-01-17 16:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-08 17:37 [Qemu-devel] [PATCH v7] s390x/pci: add common fmb Pierre Morel
2019-01-08 17:37 ` [Qemu-devel] [PATCH v7] s390x/pci: add common function measurement block Pierre Morel
2019-01-09 11:29   ` David Hildenbrand
2019-01-09 11:43     ` David Hildenbrand
2019-01-14  9:18       ` Pierre Morel
2019-01-14  9:23         ` David Hildenbrand
2019-01-14  9:31           ` Pierre Morel
2019-01-14  9:44           ` Cornelia Huck
2019-01-17 15:44             ` [Qemu-devel] [qemu-s390x] " Collin Walling
2019-01-17 16:37   ` [Qemu-devel] " Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).