1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="changetscmode">
|
---|
4 | <title>Configuring the Guest Time Stamp Counter (TSC) to Reflect Guest
|
---|
5 | Execution</title>
|
---|
6 |
|
---|
7 | <body>
|
---|
8 | <p>
|
---|
9 | By default, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> keeps all sources of time visible to
|
---|
10 | the guest synchronized to a single time source, the monotonic
|
---|
11 | host time. This reflects the assumptions of many guest operating
|
---|
12 | systems, which expect all time sources to reflect "wall clock"
|
---|
13 | time. In special circumstances it may be useful however to make
|
---|
14 | the time stamp counter (TSC) in the guest reflect the time
|
---|
15 | actually spent executing the guest.
|
---|
16 | </p>
|
---|
17 | <p>
|
---|
18 | This special TSC handling mode can be enabled on a per-VM basis,
|
---|
19 | and for best results must be used only in combination with
|
---|
20 | hardware virtualization. To enable this mode use the following
|
---|
21 | command:
|
---|
22 | </p>
|
---|
23 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> "VBoxInternal/TM/TSCTiedToExecution" 1</pre>
|
---|
24 | <p>
|
---|
25 | To revert to the default TSC handling mode use:
|
---|
26 | </p>
|
---|
27 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> "VBoxInternal/TM/TSCTiedToExecution"</pre>
|
---|
28 | <p>
|
---|
29 | Note that if you use the special TSC handling mode with a guest
|
---|
30 | operating system which is very strict about the consistency of
|
---|
31 | time sources you may get a warning or error message about the
|
---|
32 | timing inconsistency. It may also cause clocks to become
|
---|
33 | unreliable with some guest operating systems depending on how
|
---|
34 | they use the TSC.
|
---|
35 | </p>
|
---|
36 | </body>
|
---|
37 |
|
---|
38 | </topic>
|
---|