add XenStore viewer
PATCH 1/1 add XenStore viewer
Hi,
Rejigged my XenStore viewer to apply to unstable, use the python distutils properly, etc.
What is it? A small PyQT application that displays the contents of XenStore graphically as a collapsible tree, making it easy to inspect the contents of XenStore and manipulate its values. I've wished for something like this many times when trying to debug xenbus interactions.
It's small chunk of code and adds useful but non-critical functionality, so I'd propose it be merged unless anyone has objections (nobody squealed last time, so I'm guessing not).
I'm open to suggestions regarding other features that'd be useful but it does what I want for the moment, I think.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
Now with patched attached - bonus! Thanks to those who pointed out my error ;-)
Cheers,
Mark
Quoted 19 lines · Mark Williamson
Hi,
Rejigged my XenStore viewer to apply to unstable, use the python distutils properly, etc.
What is it? A small PyQT application that displays the contents of XenStore graphically as a collapsible tree, making it easy to inspect the contents of XenStore and manipulate its values. I've wished for something like this many times when trying to debug xenbus interactions.
It's small chunk of code and adds useful but non-critical functionality, so I'd propose it be merged unless anyone has objections (nobody squealed last time, so I'm guessing not).
I'm open to suggestions regarding other features that'd be useful but it does what I want for the moment, I think.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
tools/misc/Makefile +1 -1
@@ -14,7 +14,7 @@ TARGETS := $(TARGETS-y) INSTALL_BIN = $(TARGETS) xencons -INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf +INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf xsview .PHONY: all all: build
tools/misc/xsview +11 -0
@@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import sys + +sys.path.append('/usr/lib/python') +sys.path.append('/usr/lib64/python') +from xen.xsview import main + +main.main(sys.argv) + +
tools/python/setup.py +1 -0
@@ -79,6 +79,7 @@ 'xen.xm', 'xen.web', 'xen.sv', + 'xen.xsview', 'xen.xend.tests', 'xen.xend.server.tests',
tools/python/xen/xsview/main.py +10 -0
@@ -0,0 +1,10 @@ +from xsviewer import * +from qt import * + +def main(args): + app = QApplication(args) + mainwin = XSViewer(app) + mainwin.show() + app.connect(app, SIGNAL("lastWindowClosed()"), + app, SLOT("quit()")) + app.exec_loop()
tools/python/xen/xsview/xsviewer.py +168 -0
168 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
hi
I read the code of "save"and "restore"virtual machine in the PVmode, and there are many interactions with the xenstore, it seems that when restoring virtual machine, adding the entry in xenstore will invoke some watch function to add and initiate some useful devices in the dom0 for backend, is it ? and does it even inform the guestos to add frontend ? I am not familar with python, and confused about the whole workflow for the "save" and "restore" of virtual machine, is the resume function below the major function for "restore" or not? could someone give me an explanation about the workflow about the "save" and "restore"
Thanks in advance
______________________________________
def resume(self):
"""Resumes a domain that has come back from suspension.""" state = self._stateGet()
if state in (DOM_STATE_SUSPENDED, DOM_STATE_HALTED):
try:self._constructDomain()self._storeVmDetails()self._createDevices()self._createChannels()self._storeDomDetails()self._endRestore()
________________________________
Quoted 39 lines · Mark Williamson
Now with patched attached - bonus! Thanks to those who pointed out my error ;-)
Cheers,
MarkQuoted 14 lines · Mark Williamson
Hi,
Rejigged my XenStore viewer to apply to unstable, use the python distutils properly, etc.
What is it? A small PyQT application that displays the contents of XenStore graphically as a collapsible tree, making it easy to inspect the contents of XenStore and manipulate its values. I've wished for something like this many times when trying to debug xenbus interactions.
It's small chunk of code and adds useful but non-critical functionality, so I'd propose it be merged unless anyone has objections (nobody squealed last time, so I'm guessing not).
Quoted 6 lines
I'm open to suggestions regarding other features that'd be useful but it does what I want for the moment, I think.
Cheers,
Mark------------------------------------------------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel