[PDF] Interface manual - Xen



Previous PDF Next PDF
















[PDF] les territoires ultramarins parmi lesquels les 5 d

[PDF] algorithme tant que suite

[PDF] loi de stefan corps noir

[PDF] puissance rayonnée formule

[PDF] formule rayonnement thermique

[PDF] loi de planck démonstration

[PDF] emissivité corps noir

[PDF] prend la valeur ti 82

[PDF] rayonnement thermique cours

[PDF] corps gris rayonnement

[PDF] rayonnement thermique définition

[PDF] finalité 1 bts am nathan

[PDF] finalité 1 - soutien ? la communication et aux rel

[PDF] finalité 2 bts am

[PDF] f2 bts am

Interfacemanual

Xenv2.0forx86

XenisCopyright(c)2002-2004,TheXenTeam

UniversityofCambridge,UK

suggestionsandcorrectionsarewelcome.

Contents

1Introduction1

2VirtualArchitecture3

3Memory7

4Devices11

5FurtherInformation15

AXenHypercalls17

i ii

Chapter1

Introduction

conventionaloperatingsystem. ofmechanismandpolicywithinthesystem. 1 2

Chapter2

VirtualArchitecture

2.1CPUstate

toring0.

AlistofallhypercallsisgiveninAppendixA.

2.2Exceptions

theset 3

2.3Interruptsandevents

callbacks()hypercall.

2.4Time

oftimeareprovided:

CPUcommunicationlatencies.

haveelapsedsincesystemboot. virtualtimeincreases. cyclecountertime. 4 timerop()hypercall.

2.5XenCPUScheduling

internalschedulerAPI.

2.6Privilegedoperations

5 6

Chapter3

Memory

3.1MemoryAllocation

itslimit.

3.2Pseudo-PhysicalMemory

samewithinXenoranydomain. 7

3.3PageTableUpdates

taneouslybeoftypesPTandRW. 8

OSportingwithlesseffort.

3.4SegmentDescriptorTables

intset gdt(unsignedlong*framelist,intentries) frame useasapage-tablepage,andsoon). have`entries>LAST

RESERVEDGDTENTRY'.Notealsothat,after

registeringtheGDT,slotsFIRST throughLASTRESERVEDGDTENTRY update() hypercall.

3.5StartofDay

inprotectedmodewithpagingenabled. 9 10

Chapter4

Devices

sources: aphysicalinterruptfromarealdevice, avirtualinterrupt(callback)fromXen,or asignalfromanotherdomain agedviatheevent

4.1NetworkI/O

virtualnetworkinterfacesconnectedtoit. 11

4.1.1BackendPacketHandling

backendperformsthesekeyactions: inthecaseofLinux). basicshapingorrate-limitingschemes. containingaSYN. inghavebeencarriedout.

4.1.2DataTransfer

thedomain. ofmemory. priatedomainsafterexaminingtheirheaders. 12 areabletoleavethesystem. thering.

4.2BlockI/O

ration. use.

4.2.1DataTransfer

thebackend. requestsastheynish. 13 14

Chapter5

FurtherInformation

developers'mailinglist(addressbelow).

5.1Otherdocumentation

5.2Onlinereferences

TheofcialXenwebsiteisfoundat:

5.3Mailinglists

Subscribeat:

http://lists.xensource.com/xen-devel questsforhelp.Subscribeat: http://lists.xensource.com/xen-users 15 http://lists.xensource.com/xen-announce -developeroriented.Subscribeat: http://lists.xensource.com/xen-changelog

Ofthese,xen-develisthemostactive.

16

AppendixA

XenHypercalls

describesthecurrentsetofhypercalls.

A.1InvokingHypercalls

Onx86 foundinxen/include/public/xen.h. multicall(void*call list,intnrcalls)

Executeaseriesofhypervisorcalls;nr

callsisthelengthofthearray ofmulticall entrytstructurespointedtobecalllist.Each sizedarguments. 17

A.2VirtualCPUSetup

tonotifytheguestOSofanoccurrence. set unsignedlongfailsafe selector,unsignedlongfailsafeaddress) kernel'sCSforbothevent selectorandfailsafeselector.

Thevalueevent

handlinganddispatchroutine;thefailsafe addressspeciesasep- tousethenormalcallback. usingthefollowinghypercall: set traptable(trapinfot*table) isused.

A.3SchedulingandTimer

sched op(unsignedlongop) 18 pend. virtualprogrammabletimer: set timerop(uint64ttimeout) timeoutvalueasapairof32-bitvalues.

Notethatcallingset

semantics.

A.4PageTableManagement

mmu mittedforprocessinginabatch,withsuccess countbeingupdated toreportthenumberofsuccessfulupdates. requestedasfollows: MMU safe,asdescribedinChapter3. MMU (orbeprivileged). MMU wouldrequirearevalidationofallentries). 19 quiringpageownership;seeSectionA.8. xen/include/public/xen.h. isrecommendedfornewOSports. update unsignedlongags) nrtoval.Aswith mmu update. ofothers: update longval,unsignedlongags,uint16 tdomid)

Identicaltoupdate

vamapping()savethatthepagesbeingmapped mustbelongtothedomaindomid. mappagescontainingI/Odata.

A.5SegmentationSupport

iseffectivelya`safe'versionoflgdt: set gdt(unsignedlong*framelist,intentries) listisanarray xen/include/public/arch-x86

32.h).

20 tasksimplysincelldtrequiresCPL0. torintheGDTorLDT: update longword2) checkstoensurethedescriptorisvalid.

A.6ContextSwitching

1)stackpointer:

stack switch(unsignedlongss,unsignedlongesp) ment,whichespisthenewstackpointer. pointstate: fpu taskswitch(void)quotesdbs_dbs4.pdfusesText_8