Daniel Veillard
dc28f35f11
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in
...
src/driver.h src/libvirt.c src/libvirt_sym.version
src/proxy_internal.c src/test.c src/xen_internal.c
src/xend_internal.c src/xml.c src/xml.h src/xs_internal.c:
intagrated patch from Michel Ponceau to add hot-plug devices
support to the API, integrated in driver API and fixed
a few small things. Still a TODO in src/xml.c about
moving xenstore direct accesses to a new routine.
Daniel
2006-11-16 18:11:28 +00:00
Daniel P. Berrange
18035eddd3
Don't process inactive domains in regular Xen driver backends
2006-11-15 21:03:34 +00:00
Daniel P. Berrange
77bcf6b598
Added several iterators to hashtable API
2006-11-15 20:11:56 +00:00
Daniel P. Berrange
678073a297
Fixed const warning
2006-11-15 20:06:35 +00:00
Daniel P. Berrange
523389a72b
Added virConfNew() and virConfSetValue() apis to virConf object
2006-11-15 19:46:23 +00:00
Daniel P. Berrange
6d8b20ce85
Added support for non-bridged networking
2006-11-15 00:38:13 +00:00
Daniel Veillard
caaf9441f3
* src/xend_internal.c src/xml.c: fix for shareable drive support
...
rhbz#214908
Daniel
2006-11-13 17:09:31 +00:00
Daniel P. Berrange
c41481197d
Fix memory leak of xml parser context
2006-11-10 23:46:12 +00:00
Daniel Veillard
28a60cbcdb
* src/xend_internal.c src/xml.c: add an extra element currentMemory
...
to the XML description and handle its serialization back and
forth between XML and S-Expr
* tests/sexpr2xmltest.c tests/xml2sexprtest.c
tests/sexpr2xmldata/sexpr2xml-curmem.*
tests/xml2sexprdata/xml2sexpr-curmem.*: added specific regression
tests for this, this didn't disturb any of the other tests.
Daniel
2006-11-10 11:13:01 +00:00
Daniel P. Berrange
0c62b5f6d5
Added implementation of GetOSType driver to test backend
2006-11-08 18:54:57 +00:00
Daniel Veillard
892a8c3881
* include/libvirt/virterror.h src/virterror.c src/xend_internal.c
...
src/xml.c: give proper indication of the failures raised by the
XML parser on not well formed XML, should fix rhbz#208545
Daniel
2006-11-08 16:55:20 +00:00
Daniel Veillard
515618b907
* src/libvirt.c src/proxy_internal.c src/xs_internal.c: fix the
...
patch for rhbz#214264 in the case of Domain 0 on Xen and push the
defaulting to "linux" down to the xen specific parts.
Daniel
2006-11-08 13:53:29 +00:00
Daniel P. Berrange
287e5fe8a7
Ensure connection object gets associated with errors
2006-11-07 21:52:44 +00:00
Daniel Veillard
d762148aaf
* libvirt.spec.in: libvirt-devel depends on pkgconfig
...
* proxy/libvirt_proxy.c src/libvirt.c src/proxy_internal.[ch]
src/xs_internal.[ch]: the virtGetOsType entry point was calling
the xenstore directly instead of going though driver, refactored
and implemented a specific new RPC with the proxy when this is
called as non-root fixes rhbz#214264 .
Daniel
2006-11-07 16:28:16 +00:00
Daniel Veillard
4a9ce62fe9
* src/xend_internal.c: when getting informations about a non
...
existant domain, it is not a good idea to raise the HTTP
404 GET error, the handling is better done somewhere up in
the stack.
Daniel
2006-10-31 10:25:13 +00:00
Daniel Veillard
297a77f6da
* config.h.in configure.in libvirt.spec.in docs/libvir.html
...
docs/news.html include/libvirt/libvirt.h: preparing release of
libvirt-0.1.8
* src/xen_internal.c: fixed a compilation problem
Daniel
2006-10-16 16:04:55 +00:00
Daniel Veillard
5533a01af3
* src/xen_internal.c: one of the fix for system with page size != 4k
...
was missing
Daniel
2006-10-12 16:25:51 +00:00
Daniel Veillard
321c24bb00
* src/xen_internal.c: applied patch from Philippe Berthault
...
fixing the vcpu number initialization
Daniel
2006-10-12 12:31:51 +00:00
Daniel Veillard
d9388dbfbd
* src/xen_internal.c: applied patch from Peter Vetere so that
...
crashed domains ain't reported as shut off.
Daniel
2006-10-11 16:11:59 +00:00
Daniel P. Berrange
16a65d1c93
Added support for <driver> element and blktap
2006-10-09 14:32:07 +00:00
Daniel P. Berrange
8c5ce29411
Fixed multiple memory leaks & make test suite check for leaks with valgrind
2006-10-06 15:32:48 +00:00
Daniel Veillard
18351e0ffc
* src/xen_internal.c: Daniel Berrange fixed some mlock size problem
...
doing a bit of cleanup too
Daniel
2006-10-02 22:13:12 +00:00
Daniel P. Berrange
cce70e0132
Fix mlock() of getdomaininfolist data buffer
2006-10-02 19:26:39 +00:00
Daniel Veillard
ea541f83b9
* src/virsh.c: add #include <locale.h> to be able to compile without
...
optimization
Daniel
2006-09-29 16:23:27 +00:00
Daniel Veillard
2c32196a2f
* src/xen_internal.c: fix for system with page size != 4k
...
Daniel
2006-09-29 16:12:08 +00:00
Daniel Veillard
177cf2edee
* docs/bugs.html docs/libvir.html: added pointers on how to report
...
bugs in bugzilla as suggested by markmc
* src/xend_internal.c: first step for #208545 raise an error at the
libvirt level
Daniel
2006-09-29 12:00:58 +00:00
Daniel P. Berrange
26d1767317
Really, fixed struct for getdomaininfo to work on both 3.0.2 & 3.0.3 on 32-bit archs this time.
2006-09-28 23:29:25 +00:00
Daniel P. Berrange
01ae3678f1
Fixed buffer overflow in populating CPU<->VCPU mapping. Cleanup whitespace
2006-09-28 19:20:52 +00:00
Daniel P. Berrange
e8e5844089
Added support for i18n translation with gettext
2006-09-21 15:24:37 +00:00
Daniel Veillard
546026a5be
* src/Makefile.am: add a tst target to ease building test progs
...
* src/xend_internal.c: fix the reconnection problem to xend pointed
by Philippe Berthault
* tests/Makefile.am tests/reconnect.c: add a specific test case
Daniel
2006-09-21 09:15:33 +00:00
Daniel Veillard
29182e995e
* src/xen_internal.c: applied patch from Jim Fehlig, about
...
one of the content of the hypercall structures in 3.0.2
Daniel
2006-09-19 15:55:57 +00:00
Daniel P. Berrange
4e7b9aa2e1
Ensure we strip the :disk postfix from disks in Xen 3.0.3
2006-09-14 15:34:50 +00:00
Daniel P. Berrange
1ed4d29208
Allow setting of VNC port when creating domains
2006-09-12 01:34:26 +00:00
Daniel P. Berrange
3708258fad
Added support for XenD 3.0.3 style HVM cdrom config
2006-09-12 01:16:22 +00:00
Daniel Veillard
786e029cd7
* NEWS configure.in docs//* include/libvirt/libvirt.h libvirt.specx.*:
...
preparing release 0.1.5
* proxy/libvirt_proxy.c src/xen_internal.c: tiny fixes
Daniel
2006-09-05 06:48:44 +00:00
Daniel Veillard
f247adc56c
* src/xen_internal.c: finished to convert to the new hypervisor
...
calls the xenHypervisorGetVcpus entry point, though it is untested
Daniel
2006-09-05 06:19:28 +00:00
Daniel P. Berrange
903c78f540
Added missing return(-1) to cpu APIs. #ifdef out methods not used by proxy
2006-09-04 19:15:10 +00:00
Daniel P. Berrange
c63f08e06f
Allow trailing ',' in lists, and '_' in names
2006-09-03 17:46:32 +00:00
Daniel P. Berrange
9302933f09
Several bug fixes to list of domains. Display '-' instead of '-1' for inactive domains
2006-09-03 17:34:04 +00:00
Daniel Veillard
4028abe6b3
Removed debug, oops, Daniel
2006-09-02 21:27:09 +00:00
Daniel Veillard
86247f2c23
* src/xen_internal.c: converting to handle the new incompatible
...
hypercalls while still able to detect older versions, lot of
work, seems okay, there is just one function not yet converted
* src/xs_internal.c: dropping virConnectCheckStoreID()
Daniel
2006-09-02 21:23:14 +00:00
Daniel P. Berrange
6a0c75a7b3
Added new start, define,undefine commands. Added flags to allow list to show inactive domains
2006-08-30 14:32:32 +00:00
Daniel P. Berrange
25726a0ff4
Added driver backends for ListDefinedDomains, NumOfDefinedDomains, DomainStart, DomainDefineXML, DomainUndefine & hooked up all related infrastructure
2006-08-30 14:21:03 +00:00
Daniel Veillard
c0b1a946a6
* src/conf.c: add missing entry point virConfGetValue()
...
Daniel
2006-08-29 22:45:44 +00:00
Daniel Veillard
3bbac7cdb6
* TODO libvirt.spec.in: update
...
* configure.in include/libvirt/virterror.h src/Makefile.am
src/conf.c src/conf.h src/virterror.c src/xen_internal.c:
adding a subset of Xen config file parser, and serializer
* tests/Makefile.am tests/conftest.c tests/test_conf.sh
tests/confdata/Makefile.am tests/confdata/fc4.conf
tests/confdata/fc4.out: adding test program for config in and out
Daniel
2006-08-29 22:27:07 +00:00
Daniel P. Berrange
55bf738483
Add handling of error HTTP 500 codes
2006-08-29 18:12:22 +00:00
Daniel Veillard
ea30f6aa24
* src/sexpr.c src/sexpr.h src/xend_internal.c src/xml.c: applied
...
patch from Jeremy Katz to add graphical console for PV Xen guests
Daniel
2006-08-26 15:30:44 +00:00
Daniel P. Berrange
18bb75eb84
Allow VIRSH_DEFAULT_CONNECT_URI to override default URI. Don't asusme there is always a domain-0
2006-08-25 22:40:33 +00:00
Daniel P. Berrange
441246297e
Added tests for the SEXPR<->XML conversion process
2006-08-24 15:05:19 +00:00
Daniel P. Berrange
0658b086cd
Check for failure of virConnectListDomains in 'list' command
2006-08-21 17:58:09 +00:00
Daniel P. Berrange
129a24ea8c
Fix networking in paravirt guests
2006-08-18 20:20:50 +00:00
Daniel Veillard
adec25590c
* src/xml.c: fix virParseUUID()
...
Daniel
2006-08-17 18:39:32 +00:00
Daniel Veillard
6d1ef709cc
* NEWS configure.in doc//* include/libvirt/libvirt.h
...
include/libvirt/libvirt.h.in: preparing release of 0.1.4,
regenerated docs, fixed a few things
* src/proxy_internal.c src/test.c src/xend_internal.c:
a few trivial fixes
Daniel
2006-08-16 17:58:23 +00:00
Daniel P. Berrange
9425a3e617
Added setvcpus, setmem, setmaxme commands to virsh
2006-08-16 17:30:33 +00:00
Daniel P. Berrange
5c2831b30b
Hook up more test driver methods. Allow HV config to be loaded from extenral XML definition
2006-08-16 16:36:39 +00:00
Daniel P. Berrange
64d25e8de5
Re-factored sexpr_uuid into virParseUUID
2006-08-16 16:33:55 +00:00
Daniel P. Berrange
bfd5060347
Make drivers be 'quiet' when opening RW connection. Removed duplicated RO checks
2006-08-16 16:29:46 +00:00
Daniel Veillard
b084f43f71
* include/libvirt/virterror.h src/libvirt.c src/virterror.c: enforce
...
blocking operations with side effect on read-only connections. Adds
a new error code and message.
Daniel
2006-08-16 16:14:53 +00:00
Daniel P. Berrange
075337182c
Added <features> tag to XML for enable CPU/system features like PAE, ACPI
2006-08-15 17:01:42 +00:00
Daniel P. Berrange
e1ec9651a2
Fixup handling of HVM boot preference, and include HVM cdrom/floppy in main device list
2006-08-11 14:40:04 +00:00
Daniel Veillard
d42014f108
* src/xml.c: markmc pointed out that using number(xpath) could lead
...
to NaN and following comparison would be wrong in a couple of places
if the element looked at was missing.
Daniel
2006-08-10 14:26:35 +00:00
Daniel P. Berrange
098e0a4bdc
Hook up virDomainGetXMLDesc to driver backends. Added implementation of virDomainGetXMLDesc driver for the setuid proxy
2006-08-09 15:21:16 +00:00
Daniel Veillard
0342994a8d
* src/driver.h src/libvirt.c src/proxy_internal.c src/test.c
...
src/xen_internal.c src/xend_internal.c src/xend_internal.h
src/xml.c src/xs_internal.c: cleanups, force the new vCPU
and affinity entry point to go though the driver framework,
and fix a few warning showing up in my pedantic environment.
Daniel
2006-08-08 22:22:55 +00:00
Daniel P. Berrange
3c43212307
Pull info about serial console TTY and VNC port from xenstore into domain XML
2006-08-08 20:14:40 +00:00
Daniel P. Berrange
4dfbf940a4
Fix corrupt XML when boot device is a cdrom
2006-08-07 19:56:37 +00:00
Daniel P. Berrange
a9fd476848
Added a port='...' attribute to <graphics> tag for VNC displays. Initially hardcoded to domid+5900
2006-08-07 19:53:41 +00:00
Daniel P. Berrange
f7e0594f87
Added vcpuinfo vcpupin commands to virsh. Fixed off by one bug in virDomainVcpuPin method
2006-08-07 14:35:20 +00:00
Daniel Veillard
7a8a63380f
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in
...
src/libvirt.c src/libvirt_sym.version src/xen_internal.c
src/xen_internal.h src/xend_internal.c src/xend_internal.h:
applied patch from Michel Ponceau and Philippe Berthault for
virtual CPU and affinity support plus a bit of cleanup.
Daniel
2006-08-04 10:41:05 +00:00
Daniel Veillard
6e7ec1f704
* src/virterror.c: Hugh Brock pointed out that error message
...
for bad argument were wrong and incomplete, this should fix it and
a few other problems in error reporting
Daniel
2006-07-28 15:10:18 +00:00
Daniel Veillard
c3415fbd3a
* proxy/Makefile.am src/xen_internal.c src/xend_internal.c: cleanup
...
code when compiled for the proxy, changed the command line macro and
remove warnings.
Daniel
2006-07-20 13:59:23 +00:00
Daniel P. Berrange
53161d7cb2
Bulk replace 'informations' with 'information'
2006-07-19 22:24:37 +00:00
Daniel Veillard
16e2cc5174
* src/xml.c: applied patch from Peter Vetere to pass down the
...
UUID from the XML description if present when creating the domain.
Daniel
2006-07-13 22:27:31 +00:00
Daniel Veillard
0798941a85
* configure.in libvirt.spec.in docs/* NEWS: preparing release of
...
libvirt-0.1.3
* src/xend_internal.c: uninitialized var and disable TCP slow start
Daniel
2006-07-11 16:57:03 +00:00
Daniel Veillard
3d90a9c86d
* src/xend_internal.c src/xml.c: patches from Jim Fehlig for HVM
...
guests, plus XML format changes and merge from Mark McLoughlin
Daniel
2006-07-10 11:21:24 +00:00
Daniel P. Berrange
3ffac4a188
Re-wrote xenDomainLookupByID to use more efficient XenD access
2006-07-07 18:58:35 +00:00
Mark McLoughlin
4d56d3c638
Wed Jul 5 17:11:32 IST 2006 Mark McLoughlin <markmc@redhat.com>
...
* xml.c: allow a <domain> to not have any <disk> devices - e.g.
when using an NFS root.
2006-07-07 14:36:27 +00:00
Daniel Veillard
e2bd543163
* src/xend_internal.c: fixed xenDaemonOpen() to try both unix and
...
http accesses by default and to use the provided URI otherwise,
applied Jim Fehlig patch working around xend connection close bug
* autogen.sh: fixed package name
Daniel
2006-07-06 09:29:34 +00:00
Mark McLoughlin
5004bee519
unleash the hush puppies
2006-07-05 21:52:52 +00:00
Mark McLoughlin
1addb9b1c0
Wed Jul 5 17:11:32 IST 2006 Mark McLoughlin <markmc@redhat.com>
...
* xml.c: make the entire <os> node optional if a bootloader
is specified. If we pass an image config to xend, the
bootloader gets ignored anyway.
2006-07-05 17:08:40 +00:00
Mark McLoughlin
48030121a1
Wed Jul 5 16:51:45 IST 2006 Mark McLoughlin <markmc@redhat.com>
...
* xml.c: only set bootloader flag when we actually get
a bootloader
2006-07-05 16:49:35 +00:00
Daniel Veillard
4fcc208fa4
* libvirt.spec.in proxy/Makefile.am: do the chown at the rpm packaging
...
level, to allow build as non-root
* src/xml.c: fix bug #197583 raised by markmc
Daniel
2006-07-04 12:46:14 +00:00
Daniel Veillard
567b42ce6a
* NEWS docs/* configure.in libvirt.spec.in include/libvirt/libvirt.h:
...
preparing release of 0.1.2
* src/proxy_internal.c: don't warn on open if using http and not the
proxy.
Daniel
2006-07-03 15:48:49 +00:00
Daniel Veillard
c74976f139
* libvirt.spec.in proxy/Makefile.am src/proxy_internal.c
...
src/xen_internal.c: fixing the proxy installation, integrate in
the spec file and fix a few bugs in the proxy, seems to behave
correctly now.
* docs/apibuild.py docs/*: fixing the doc and API generator
Daniel
2006-07-03 13:45:55 +00:00
Daniel Veillard
5995e2428c
* proxy/libvirt_proxy.c src/proxy_internal.[ch] src/xend_internal.[ch]:
...
finished the last entry point missing for the proxy code.
Daniel
2006-07-03 11:12:12 +00:00
Daniel Veillard
f14093e509
* proxy/libvirt_proxy.c src/proxy_internal.c: more bug fixes,
...
virsh starts to work normally over the proxy. Still one entry
point missing but it's minor.
Daniel
2006-06-30 16:23:16 +00:00
Daniel Veillard
ec48593fdc
* proxy/libvirt_proxy.c src/proxy_internal.c src/xen_internal.c
...
src/xen_internal.h src/xend_internal.c src/xend_internal.h:
implemented id based lookup and other cleanups, virsh starts to
work, but still some TODOs
Daniel
2006-06-29 23:53:31 +00:00
Daniel Veillard
337211e731
* src/proxy_internal.c src/proxy_internal.h src/driver.h src/libvirt.c
...
src/Makefile.am: moved proxy/proxy.h and proxy/proxy_client.c as
proxy_internal.[ch] and integrated them as a new driver.
* proxy/Makefile.am proxy/libvirt_proxy.c src/xen_internal.c
src/xen_internal.h src/xend_internal.c: various related cleanups.
Daniel
2006-06-29 22:12:47 +00:00
Daniel Veillard
c386d9747b
* proxy/libvirt_proxy.c proxy/proxy.h proxy/proxy_client.c: more
...
progresses on the proxy implementation.
* src/xend_internal.c src/xend_internal.h: exported one routine
Daniel
2006-06-29 14:44:37 +00:00
Daniel Veillard
27b7a8be52
* configure.in Makefile.am proxy/Makefile.am proxy/libvirt_proxy.c
...
proxy/proxy.h proxy/proxy_client.c src/internal.h src/xen_internal.c
src/xend_internal.c: started working on a proxy to access xend
for unpriviledged users to avoid opening xend HTTP service to
serve those read-only operations.
Daniel
2006-06-28 18:19:13 +00:00
Daniel Veillard
b62cdc1405
* configure.in libvirt.spec.in docs/examples/* include/Makefile.am
...
include/libvirt/virterror.h python/generator.py python/libvir.c
python/libvirt_wrap.h src/driver.h src/internal.h src/test.h
src/virsh.c src/virterror.c src/xend_internal.c src/xend_internal.h
src/xml.c src/xml.h: moved the includes from include/ to
include/libvirt to reflect the installed include tree. This
avoid using "" in the includes themselves.
Daniel
2006-06-26 15:02:18 +00:00
Daniel Veillard
ac4818d05a
* src/driver.h src/libvirt.c src/test.c src/xen_internal.c
...
src/xend_internal.c src/xs_internal.c: add driver numbers and
tweak a bit suspend/resume/destroy operation to avoid doing
them directly though the hypervisor if other succeeded first.
Daniel
2006-06-21 12:56:19 +00:00
Daniel Veillard
a2e2e4652f
* src/xen_internal.c: try to autodetect the Xen hypervisor version
...
used and switch automatically. A bit nasty though.
Daniel
2006-06-21 12:15:18 +00:00
Daniel Veillard
801bfd2ec9
* src/xen_internal.c: fix breakage introduced in Xen changeset 10277
...
Daniel
2006-06-20 16:07:41 +00:00
Daniel Veillard
d455b40712
* src/xen_internal.c src/xen_internal.h src/xs_internal.c: fix
...
a TODO in xs_internal.c pointed out by Philippe Berthault
Daniel
2006-06-16 15:28:26 +00:00
Daniel Veillard
15b40d295d
* src/libvirt.c src/xen_internal.c src/xend_internal.c: more driver
...
related cleanups, nearly finished
Daniel
2006-06-16 12:36:40 +00:00
Daniel Veillard
442b733e6c
* src/libvirt.c src/xend_internal.c src/xend_internal.h
...
src/xs_internal.c: more cleanups for the driver architecture
Daniel
2006-06-15 14:50:48 +00:00
Daniel P. Berrange
4ab2646127
Added implementation of shutdown & reboot driver methods
2006-06-14 23:58:34 +00:00
Daniel P. Berrange
5cc5f540f0
Connect up domain destroy, suspend, resume, reboot, shutdown methods to driver backends
2006-06-14 17:07:00 +00:00
Daniel Veillard
037f413e4e
* src/libvirt.c src/xend_internal.c src/xend_internal.h: cleaned up
...
virConnectListDomains and virConnectNumOfDomains, implemented xend
driver entry point for them.
daniel
2006-06-14 15:44:14 +00:00
Daniel Veillard
ef61dba0dc
* src/libvirt.c: Daniel P. Berrange pointed out a bug in virConnectOpen
...
Daniel
2006-06-14 13:03:04 +00:00