Samsung Trace Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Téléphones mobiles Samsung Trace. IOMMU Event Tracing - The Linux Foundation Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Can Help Your Distro?

1© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing – What It Is and How It Can Help Your Distro?Shuah Khan – Sr

Page 2 - Abstract

10© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Device assigned to hostHostGuest

Page 3

11© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Device detached from hostHostGuest

Page 4 - What is an IOMMU?

12© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Device assigned to guestHostGuest

Page 5

13© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing - classes IOMMU group class events:Add device to IOMMU group.R

Page 6 - What does IOMMU do for us?

14© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing – group class eventsAdd device to a group:Format: IOMMU: group

Page 7

15© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing – device class eventsAttach (add) device to a domain:Format: I

Page 8

16© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing – map and unmap eventsIOMMU Map:Format: IOMMU: iova=0x%016llx

Page 9 - IOMMU domains - protection

17© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU Event Tracing – error class eventsIO Page Fault (AMD-Vi)Format: IOMMU:%s %s

Page 10 - Device assigned to host

18© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley How to enable IOMMU tracing at boot-time?Using Kernel boot option trace_event:The

Page 11 - Device detached from host

19© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley How to enable IOMMU tracing at run-time?Enable single event:cd /sys/kernel/debug/t

Page 12 - Device assigned to guest

2© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley AbstractIOMMU event tracing feature enables reporting IOMMU events as theyhappen du

Page 13 - IOMMU Error class:

20© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Where are those traces?/sys/kernel/debug/tracing/trace# tracer: nop## entries-in-b

Page 14 - Remove device from a group:

21© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What do IOMMU group event traces look like?# tracer: nop## entries-in-buffer/entri

Page 15 - Format: IOMMU: device=%s

22© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What does lspci show?00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor

Page 16

23© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU groups and device topologyGroupID=0Device=0000:00:00.0Host bridge:DRAM Contr

Page 17

24© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What do IOMMU device event traces look like?# tracer: nop## entries-in-buffer/entr

Page 18

25© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What do IOMMU map/unmap event traces look like?# tracer: nop## entries-in-buffer/e

Page 19

26© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Great we have traces! What now?Using traces to solve problems...

Page 20 - Where are those traces?

27© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Using traces -----Get insight into:IOMMU device topology – which devices belong to

Page 21

28© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley VFIO based device assignment use-caseAlex Williamson enabled run-time IOMMU traces

Page 22 - What does lspci show?

29© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Result - VFIO patch series to fix problems!Alex was able to:Reduce the number of u

Page 23

3© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley AgendaWhat is an IOMMU?What does IOMMU do for us?IOMMU referencesIOMMU groups – dev

Page 24

30© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Result - Improvements to IOMMU tracing featureAlex found a few bugs and suggested

Page 25

31© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley AcknowledgementsSpecial thanks to Alex Williamson:for generating traces for VFIO b

Page 26

32© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU ReferencesUtilizing IOMMUs for Virtualization in Linux and Xen, Multiple Aut

Page 27 - Using traces

33© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Thank you.

Page 28

34© 2014 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMUIOMMU lookups Device address0xf000Physical address0xf00bar000000Host

Page 29 - After: maps 9509, unmaps 9509

35© 2014 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Server 32-coresVM 1driverVM 2driverVM 3driverVM 4driverStandard NIC Standard NIC S

Page 30

36© 2014 SAMSUNG Electronics Co.Open Source Group – Silicon Valley Virtual Device AssignmentServer 32-coresVM 1driverVM 2driverVM 3V-NICVM 4V-NICSR-I

Page 31 - Acknowledgements

4© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What is an IOMMU?I/O Memory Management Unit:Translation - maps device (I/O) address

Page 32 - IOMMU References

5© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IO Memory Management Unit – maps device addresses to physical addresses

Page 33 - Thank you

6© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley What does IOMMU do for us?Advantages:One single contiguous virtual memory region ca

Page 34 - IOMMU lookups

7© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU groups – device isolationSingle device isolation is not possible in some case

Page 35 - Physical Device Assignment

8© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMUDevice isolation at port granularity – Not!!!

Page 36 - Virtual Device Assignment

9© 2015 SAMSUNG Electronics Co.Open Source Group – Silicon Valley IOMMU domains - protectionDomains provide protection against one guest VM corruptin

Commentaires sur ces manuels

Pas de commentaire