Skip to contentSkip to conversation

docs: add vpmu description to xen-command-line.markdown

PATCH In review Dietmar Hahn 3 participants 4 messages Apr 27, 2012 – May 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: add vpmu description to xen-command-line.markdown

# HG changeset patch
# User Dietmar Hahn <[email protected]> # Date 1335517766 -7200
# Node ID 9ba4e4a5f3b1b7dad77e2801afc0253d6d30d565 # Parent 107285938c50f82667bd4d014820b439a077c22c

Add a short description to the vpmu boot option in the xen-command-line.markdown

docs/misc/xen-command-line.markdown +21 -0
diff -r 107285938c50 docs/misc/xen-command-line.markdown
@@ -543,7 +543,28 @@ console even after dom0 has been started
 relinquish control to dom0.
 
 ### vpid
+
 ### vpmu
+> `= ( bts )`
+
+> Default: `off`
+
+Switch on the virtualized performance monitoring unit for HVM guests.
+
+If the current cpu isn't supported a message like  
+'VPMU: Initialization failed. ...'  
+is printed on the hypervisor serial log.
+
+For some Intel Nehalem processors a quirk handling exist for an unknown
+wrong behaviour (see handle_pmc_quirk()).
+
+If 'vpmu=bts' is specified the virtualisation of the Branch Trace Store (BTS)
+feature is switched on on Intel processors supporting this feature.
+
+*Warning:*
+As the BTS virtualisation is not 100% safe and because of the nehalem quirk
+don't use the vpmu flag on production systems with Intel cpus!
+
 ### vti\_vhpt\_size
 ### vti\_vtlb\_size
 ### watchdog
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Dietmar Hahn

# HG changeset patch
# User Dietmar Hahn <[email protected]> # Date 1335517766 -7200
# Node ID 9ba4e4a5f3b1b7dad77e2801afc0253d6d30d565 # Parent 107285938c50f82667bd4d014820b439a077c22c

Add a short description to the vpmu boot option in the xen-command-line.markdown

Can't we just blacklist systems with the nehalem quirk and otherwise enable it?

Ian.

Quoted 36 lines

diff -r 107285938c50 docs/misc/xen-command-line.markdown

docs/misc/xen-command-line.markdown +21 -0
@@ -543,7 +543,28 @@ console even after dom0 has been started
 relinquish control to dom0.
 
 ### vpid
+
 ### vpmu
+> `= ( bts )`
+
+> Default: `off`
+
+Switch on the virtualized performance monitoring unit for HVM guests.
+
+If the current cpu isn't supported a message like  
+'VPMU: Initialization failed. ...'  
+is printed on the hypervisor serial log.
+
+For some Intel Nehalem processors a quirk handling exist for an unknown
+wrong behaviour (see handle_pmc_quirk()).
+
+If 'vpmu=bts' is specified the virtualisation of the Branch Trace Store (BTS)
+feature is switched on on Intel processors supporting this feature.
+
+*Warning:*
+As the BTS virtualisation is not 100% safe and because of the nehalem quirk
+don't use the vpmu flag on production systems with Intel cpus!
+
 ### vti\_vhpt\_size
 ### vti\_vtlb\_size
 ### watchdog
#2 lore raw

Am Freitag 27 April 2012, 10:29:55 schrieb Ian Campbell:

Quoted 11 lines · Dietmar Hahn
Quoted 10 lines

# HG changeset patch
# User Dietmar Hahn <[email protected]> # Date 1335517766 -7200
# Node ID 9ba4e4a5f3b1b7dad77e2801afc0253d6d30d565 # Parent 107285938c50f82667bd4d014820b439a077c22c

Add a short description to the vpmu boot option in the xen-command-line.markdown

Quoted 6 lines
Quoted 1 line

Can't we just blacklist systems with the nehalem quirk and otherwise enable it?

I'm not sure how to create a blacklist. The problem is, the processor models named in the check_pmc_quirk() function were found be doing some performance counter tests with machines accessible be me and looking what happens. As some other models may have the same PMU the hang may occur on other machines too.
Maybe we can change the policy to switch always on the vpmu stuff for the AMD cpus and enforce a flag for Intel?

Dietmar.

Quoted 37 lines

Ian.

Quoted 34 lines

diff -r 107285938c50 docs/misc/xen-command-line.markdown

docs/misc/xen-command-line.markdown +21 -0
@@ -543,7 +543,28 @@ console even after dom0 has been started
 relinquish control to dom0.
 
 ### vpid
+
 ### vpmu
+> `= ( bts )`
+
+> Default: `off`
+
+Switch on the virtualized performance monitoring unit for HVM guests.
+
+If the current cpu isn't supported a message like  
+'VPMU: Initialization failed. ...'  
+is printed on the hypervisor serial log.
+
+For some Intel Nehalem processors a quirk handling exist for an unknown
+wrong behaviour (see handle_pmc_quirk()).
+
+If 'vpmu=bts' is specified the virtualisation of the Branch Trace Store (BTS)
+feature is switched on on Intel processors supporting this feature.
+
+*Warning:*
+As the BTS virtualisation is not 100% safe and because of the nehalem quirk
+don't use the vpmu flag on production systems with Intel cpus!
+
 ### vti\_vhpt\_size
 ### vti\_vtlb\_size
 ### watchdog
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
#3 lore raw
In reply to Ian Campbell

Ian Campbell writes ("Re: [Xen-devel] [PATCH] docs: add vpmu description to xen-command-line.markdown"):

Quoted 7 lines · Dietmar Hahn
Quoted 6 lines

# HG changeset patch
# User Dietmar Hahn <[email protected]> # Date 1335517766 -7200
# Node ID 9ba4e4a5f3b1b7dad77e2801afc0253d6d30d565 # Parent 107285938c50f82667bd4d014820b439a077c22c

Quoted 7 lines
Quoted 5 lines

Add a short description to the vpmu boot option in the xen-command-line.markdown

Thanks,