VMware, Inc. 337
Chapter 16 Connecting Devices
11 (Optional)OntheHardwaretabofthevirtualmachinesettingseditor,toconfigure
thisserialporttousepolledmode,selectYield CPUonpoll.
Thisoptionisofinteresttodeveloperswhoareusingdebuggingtoolsthat
communicateoveraserialconnection.Iftheserialportintheguestisbeingused
inpo
lledmoderatherthaninte
rruptmode,youmightnoticeperformanceissues.
Thisoptionforcesthevirtualmachinetoyieldprocessortimeiftheonlytaskitis
tryingtodoispollthevirtualserialport.
Ifyouaresettingupaconnectionbetweentwovirtualmachines,younowhav
ethefirst
virtualmachinesetupastheserver.Repeatthisprocedureforthesecondvirtual
machine,butsetitupastheclientbyselectingThisendistheclientwhenconfiguring
thenamedpipe.
Change the Input Speed of the Serial Connection
Youcanincreasethespeedofaserialconnectionoverapipetoavirtualmachine.
Beforeyoubegin,usetheguestoperatingsystemtoconfiguretheserialportforthe
highestsettingsupportedbytheapplicationyouarerunninginthevirtualmachine.
Inprinciple,theoutputspeed,whichisthespeedatwhichthevirtualmach
inesends
datathroughthevirtualserialport,isunlimited.Inpractice,theoutputspeeddepends
onhowfasttheapplicationattheotherendofthepipereadsinbounddata.
To change the input speed of the serial connection
1PoweroffthevirtualmachineandclosetheWorkstationwindow.
2Useatexteditortoaddthefo
llowinglinetoyourvirtualmachine’sconfiguration
(.vmx)file:
serial<n>.pipe.charTimePercent = "<x>"
<n>isthenumberoftheserialport,startingfrom0.Thefirstserialportisserial0.
The<x>valueisapositiveintegerthatspecifiesthetimetakentotransmita
character,expressedasapercentageofthedefaultspeedsetfortheserialportin
theguest.Forexampl
e,asettingof200forcestheportto
taketwiceaslongforeach
character,orsenddataathalfthedefaultspeed.Asettingof50forcestheportto
takeonlyhalfaslongforeachcharacter,orsenddataattwicethedefaultspeed.
Assumingthattheseri
alportspeedissetappropriate
lyintheguestoperating
system,experimentwiththissetting.Startwithavalueof100andgradually
decreaseituntilyoufindthehighestspeedatwhichyourconnectionworks
reliably.
Kommentare zu diesen Handbüchern