qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] target/s390x: implement idte and improve ipte
@ 2017-06-22  9:41 David Hildenbrand
  2017-06-22  9:41 ` [Qemu-devel] [PATCH v2 1/3] target/s390x: Indicate and check for local tlb clearing David Hildenbrand
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Hildenbrand @ 2017-06-22  9:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: rth, agraf, Aurelien Jarno, thuth, david

By adding idte, we are now able to expose the DAT-enhancement facility
to our guest. Also, properly simulate and expose the local-tlb-clearing
facility.

To improve the TLB flushing, we will have to remember each used table (or
at least a hash!) for each tlb entry, just like real HW does.

This allows me to start an upstream kernel (having also the mvcos patch
applied) compiled for z9 using:

qemu-system-s390x ... -cpu qemu,mvcos=on,stfle=on,ldisp=on,ldisphp=on,\
                           eimm=on,stckf=on,csst=on,csst2=on,ginste=on,\
                           exrl=on,dateh=on,ltlbc=on

Linux will detect the DAT-enhancement facility and use idte+cspg.

v1 -> v2:
- Allow to enable the DAT-enhancement facility.
- Fix wrong register in idte.
- Simply set m4 to zero in case local-tlb-clearing is not enabled.

David Hildenbrand (3):
  target/s390x: Indicate and check for local tlb clearing
  target/s390x: Improve heuristic for ipte
  target/s390x: Implement idte instruction

 target/s390x/cpu_models.c  |  2 ++
 target/s390x/helper.h      |  1 +
 target/s390x/insn-data.def |  2 ++
 target/s390x/mem_helper.c  | 78 +++++++++++++++++++++++++++++++++++++++-------
 target/s390x/translate.c   | 21 ++++++++++++-
 5 files changed, 92 insertions(+), 12 deletions(-)

-- 
2.9.4

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

end of thread, other threads:[~2017-06-22 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-22  9:41 [Qemu-devel] [PATCH v2 0/3] target/s390x: implement idte and improve ipte David Hildenbrand
2017-06-22  9:41 ` [Qemu-devel] [PATCH v2 1/3] target/s390x: Indicate and check for local tlb clearing David Hildenbrand
2017-06-22 15:58   ` Richard Henderson
2017-06-22  9:41 ` [Qemu-devel] [PATCH v2 2/3] target/s390x: Improve heuristic for ipte David Hildenbrand
2017-06-22  9:41 ` [Qemu-devel] [PATCH v2 3/3] target/s390x: Implement idte instruction David Hildenbrand
2017-06-22 17:39 ` [Qemu-devel] [PATCH v2 0/3] target/s390x: implement idte and improve ipte Richard Henderson

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).