0c76f22ef1
- bnc#633573 - System fail to boot after running several warm reboot tests 22749-vtd-workarounds.patch - Upstream patches from Jan 22744-ept-pod-locking.patch 22777-vtd-ats-fixes.patch 22781-pod-hap-logdirty.patch 22782-x86-emul-smsw.patch 22789-i386-no-x2apic.patch 22790-svm-resume-migrate-pirqs.patch 22816-x86-pirq-drop-priv-check.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=94
19 lines
549 B
Diff
19 lines
549 B
Diff
From: Charles Coffing <ccoffing@novell.com>
|
|
Upstream: no
|
|
|
|
Index: xen-4.0.2-testing/tools/python/xen/xm/main.py
|
|
===================================================================
|
|
--- xen-4.0.2-testing.orig/tools/python/xen/xm/main.py
|
|
+++ xen-4.0.2-testing/tools/python/xen/xm/main.py
|
|
@@ -2054,6 +2054,10 @@ def xm_debug_keys(args):
|
|
def xm_top(args):
|
|
arg_check(args, "top", 0)
|
|
|
|
+ # A hack to get a clear error message if ran as non-root
|
|
+ if os.geteuid() != 0:
|
|
+ raise IOError()
|
|
+
|
|
os.system('xentop')
|
|
|
|
def xm_dmesg(args):
|