aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
* Sanitise the trace-buffer hypervisor<->user interface.kaf24@firebug.cl.cam.ac.uk2005-10-311-6/+4
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* This is a set of changes which allow the tracebuffer functionality tokaf24@firebug.cl.cam.ac.uk2005-10-303-1/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | be enabled and disabled dynamically while the system is running. The existing DOM0_TBUFCONTROL hypercall is used, and three new operations have been added: enable, disable, and set_size. This is to address concerns that use of the trace buffers impacts system performance. The initial value of opt_tbuf_size is set to zero, so that trace buffers remain disabled by default. They can be enabled as they used to be, by adding tbuf_size= to the xen command line at boot time. They can also be turned on and off any time when the system is running. The size of the trace buffer allocation can also be changed dynamically while the system is running. The trace buffers may be completely deallocated by setting the size to zero. No change in buffer size can be done while tracing is enabled; Other Changes made: - Update the constants in tools/xentrace/formats to match those in public/trace.h - libxc functions for enable/disable, get/set size Still left to do: - remove all ifdef's for trace buffers and the 'trace' build option - xm command to do enable/disable trace buffers and get/set size Signed-off-by: Rob Gardner <rob.gardner@hp.com>
* mergekaf24@firebug.cl.cam.ac.uk2005-10-294-15/+22
|\
| * This patch provide local APIC support for vmx guest.kaf24@firebug.cl.cam.ac.uk2005-10-282-4/+7
| | | | | | | | | | | | | | | | | | | | | | A configure option is also added to disable it, which is off by default. Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com> Signed-off-by: Li Xin <xin.b.li@intel.com> Signed-off-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
| * To allow kernel to handle radically different hypervisors in the future,kaf24@firebug.cl.cam.ac.uk2005-10-271-0/+4
| | | | | | | | | | | | | | | | | | I thought a magic field in the start_info might be useful. I just chose "Xen-<major>.<minor>", but feel free to change it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
| * Use standard int typedefs.kaf24@firebug.cl.cam.ac.uk2005-10-271-11/+11
| | | | | | | | | | | | Signed-off-by: John Levon <levon@movementarian.org>
* | Necessary change to support ia64/vti domain build in common code.djm@kirby.fc.hp.com2005-10-242-40/+6
| | | | | | | | | | | | | | | | Signed-off-by Ke Yu <ke.yu@intel.com> Signed-off-by Anthony Xu <anthony.xu@intel.com> Signed-off-by Kevin Tian <kevin.tian@intel.com>
* | Image builder for ia64/vti domain, together with a example config file.djm@kirby.fc.hp.com2005-10-241-12/+651
| | | | | | | | | | | | | | | | Signed-off-by Ke Yu <ke.yu@intel.com> Signed-off-by Anthony Xu <anthony.xu@intel.com> Signed-off-by Kevin Tian <kevin.tian@intel.com>
* | Mergedjm@kirby.fc.hp.com2005-10-2422-337/+338
|\|
| * some fixes to VMX:kaf24@firebug.cl.cam.ac.uk2005-10-233-42/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) enable ACPI in VMXAssist by default. 2) do nothing when emulating wbinvd instruction in VMXAssist. 3) use MACRO in cpu number setting/getting code. 4) remove useless parameter flags from xc_vmx_build. 5) remove usage of dsi.v_start in xc_vmx_build when not handling vmxloader elf. 6) unmap shared_page_va when destroy VMX domain. 7) change virtual_platform_def to vmx_platform. 8) remove useless code in vmx_setup_platform. 9) change parameter of vmx_setup_platform from vcpu to domain. 10) in xen HV, vmx domain get domain processor number from the reserved E820 area. 11) in domain.c, don't define some functions when on i386 platform or no CONFIG_VMX. Also removed some ugly tailing space. Signed-off-by: Xin Li <xin.b.li@intel.com>
| * Take advantage of the new UUID (handle) stored for us in Xen to improve theemellor@leeni.uk.xensource.com2005-10-191-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recreation semantics. Remove the unpause at the end of xc_linux_restore, and move it to XendDomainInfo. This is necessary because xenstored now allocates the domain path when the domain is introduced, which means that the new domain cannot start running until that introduce is performed and the new devices configured. Give restore a separate completion phase in which domain details are stored. This is required because the domain path is no longer available until after the introduceDomain call. TODO: Split the domain introduction into two so that the domain path is available earlier. At the moment, the domain <-> store channel details are passed in to xenstored when the domain is introduced, but in the case of restore it is necessary to wait until the restore is completed before the channel MFN is available. Change the interface between XendDomainInfo and XendCheckpoint/image to not have hideous callbacks through setConsoleRef and setStoreRef. Instead, image.createImage explicitly returns those values, and XendCheckpoint passes them through to completeRestore. Move the purging of the domain path corresponding to a new domain from Xend to xenstored, since xenstored is now in charge of this path. With the domain path creation moved to xenstored, Xend cannot remove the path, because watches may have fired on it already. Fix the printf statement in xenstored in verbose mode that details the messages being written. This statement was printing the buffer using %s, but this buffer has an explicit length field, so we were seeing garbage after the correct details. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Remove 'n_vcpu' field from start_info structure. Domain0kaf24@firebug.cl.cam.ac.uk2005-10-182-7/+1
| | | | | | | | | | | | | | | | | | simply creates a CPU on every physical CPU. Other domains read the initial VCPU configuration from xenstore. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Merged.emellor@leeni.uk.xensource.com2005-10-172-6/+1
| |\
| | * Make the event-channel pending and mask arrays consist ofkaf24@firebug.cl.cam.ac.uk2005-10-172-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | longs. Thi sensures appropriate alignment for architectures that require it, and also allows us to naturally support up to 4096 event channels per 64-bit guest. Moved 'n_vcpu' field from shared_info to start_info. Really it ought to disappear altogether as the info can be derived from xenstore. Fix a weird bug in XendDomainInfo where 'vcpus' information for a domain defaults to floating point value 1.0 rather than integer 1. This looks like a Python bug to me, but in any case it is 'fixed' by explicitly converting the default value to an integer. Signed-off-by: Keir Fraser <keir@xensource.com>
| * | Have xenstored initialise its connections, meaning that xend can be out ofemellor@leeni.uk.xensource.com2005-10-172-17/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that loop completely -- the xc_init_store, initDomainStore calls can all go. Have xenstored understand where the local domain information goes. Xend no longer has to generate a path and pass it to xenstored through xs_introduce_domain -- we just allow xenstored to generate the path, and then call GetDomainPath later. There is still some work required to tidy this up. Change the uuid module to generate uuids as lists of bytes, not in the stringified form. Added a unit test for that module. Change the semantics of Xend restart, relying on these changes to the xenstored semantics and earlier changes to add an opaque handle to the hypervisor's domain-specific data block. The semantics are now clearer, as Xend can validate whether the details in the store match the current live domain. Added a usage statement to xenstored. Some of this code is by Steven Hand. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Plumb GETVCPUINFO dom0_op through to Python. Removekaf24@firebug.cl.cam.ac.uk2005-10-173-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | n_vcpu field from GETDOMAININFO: replaced with nr_online_vcpus and max_vcpu_id (both plumbed through to Python). TODO: Remove 'vcpus' entry in getdomaininfo Python dictionary. TODO: Don't represent 'cpumap' as a bitmap in Python. It would be more sensible to represent as a list of integer CPU numbers. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Clean up debug tracing in mm and mm audit code.kaf24@firebug.cl.cam.ac.uk2005-10-161-0/+2
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Remove bogus error message in libxenctrl.kaf24@firebug.cl.cam.ac.uk2005-10-151-10/+2
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * In addition to setting opaque handle during domainkaf24@firebug.cl.cam.ac.uk2005-10-142-0/+12
| | | | | | | | | | | | | | | | | | | | creation, allow it to be changed after creation via DOM0_SETDOMAINHANDLE operation (and libxc xc_domain_sethandle, and via Pyhton wrapper fn). Signed-off-by: Keir Fraser <keir@xensource.com>
| * Store an opaque handle (tools uuid) in the domain structurekaf24@firebug.cl.cam.ac.uk2005-10-144-37/+24
| | | | | | | | | | | | | | | | | | | | within Xen. Refactor GETVCPUCONTEXT into an op of the same name plus a new op GETVCPUINFO. Move the cpumap and cpu info arrays from GETDOMAININFO and move into new GETVCPUINFO. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix error output to stderr in xc_linux_build.kaf24@firebug.cl.cam.ac.uk2005-10-121-1/+1
| | | | | | | | | | Signed-off-by: Scott Parish <srparish@us.ibm.com>
| * New dom0_op to set max vcpus for a domain.kaf24@firebug.cl.cam.ac.uk2005-10-122-0/+20
| | | | | | | | | | | | | | Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix Xen public interfaces and the tools to consistentlykaf24@firebug.cl.cam.ac.uk2005-10-1221-207/+203
| | | | | | | | | | | | | | | | use stdint-format bitsize types (uint32_t and friends). Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix PAE overflow in xc_linux_build.kaf24@firebug.cl.cam.ac.uk2005-10-121-3/+3
| | | | | | | | | | Signed-off-by: srparish@us.ibm.com
| * Error print on err path.kaf24@firebug.cl.cam.ac.uk2005-10-121-1/+1
| | | | | | | | | | Signed-off-by: srparish@us.ibm.com
* | Modify printfs to be able to compile on ia64.djm@kirby.fc.hp.com2005-10-131-11/+8
|/ | | | | | Width arguments of printf ("%*") should be an int.
* Append a newline to error messages, so that they are parsed by XendCheckpoint.pyemellor@ewan2005-10-091-1/+1
| | | | | | | correctly. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* User tools send evtchn notifications via /dev/xen/evtchnkaf24@firebug.cl.cam.ac.uk2005-10-062-134/+7
| | | | | | | | rather than using hypercall directly. Signed-off-by: Keir Fraser <keir@xensource.com>
* Ensure that all fields of evtchn_op_t are initialised whenkaf24@firebug.cl.cam.ac.uk2005-10-061-31/+26
| | | | | | | | | | | making an event_channel_op hypercall. Stefan Berger gets the credit for diagnosing nasty domU driver problems that were a result of garbage fields. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* EVTCHNOP_alloc_unbound can allocate a port in an arbitrarykaf24@firebug.cl.cam.ac.uk2005-10-052-1/+5
| | | | | | | | domain (only if the caller is sufficiently privileged). Signed-off-by: Keir Fraser <keir@xensource.com>
* Clean up sched_op() hypercall interface. One particularkaf24@firebug.cl.cam.ac.uk2005-10-043-5/+6
| | | | | | | | | | change to watch out for is that the suspend record, on save/restore, is now passed via register %edx not %esi (both i386 and x86/64). Signed-off-by: Keir Fraser <keir@xensource.com>
* Allow EVTCHNOP_bind_{ipi,virq} to specify the vcpu tokaf24@firebug.cl.cam.ac.uk2005-10-041-1/+2
| | | | | | | | | bind to. Previously the alloacted port was implicitly bound to the calling vcpu. Signed-off-by: Keir Fraser <keir@xensource.com>
* Make PAE defs in xg_private.h usable in both 32- andkaf24@firebug.cl.cam.ac.uk2005-09-231-15/+18
| | | | | | | | 64-bit builds. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add VGA acceleration support for cirrus logic device modelkaf24@firebug.cl.cam.ac.uk2005-09-231-7/+16
| | | | | | | | Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
* Clean up xc_vmx_build():kaf24@firebug.cl.cam.ac.uk2005-09-233-468/+145
| | | | | | | | | | | | 1. Remove linux parameters. 2. Remove init ramdisk. 3. Remove e820 memmap config file parse. 4. Removed provisional GDT. 5. Removed some ugly tailing space. Signed-off-by: Xin B Li <xin.b.li@intel.com>
* Parse vcpus for VMX guest.kaf24@firebug.cl.cam.ac.uk2005-09-211-0/+4
| | | | | | | | | | Vcpus are passed to device model and vmx domain builder. Signed-off-by: Yan Li <yanx.li@intel.com> Signed-off-by: Xin Li <xin.b.li@intel.com>
* Dynamically generate the local apic entries in ACPI MADT table.kaf24@firebug.cl.cam.ac.uk2005-09-201-1/+29
| | | | | | | | | | | | | The number of local apic entries is decided by the #vcpus passed from the config file (eg./etc/xen/xmexample.vmx). This feature is required by the SMP VMX domain. Signed-off-by: Ke Yu <ke.yu@intel.com> Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
* Fix xc_ptrace (live debug, not coredump debug) for 32-bit pae.kaf24@firebug.cl.cam.ac.uk2005-09-194-94/+193
| | | | | | | | | Clean up interfaces and add simple documentation for using the domU debug interfaces. Signed-off-by: Keir Fraser <keir@xensource.com>
* Re-indent libxc to avoid hard tabs. Also, fix the PAEkaf24@firebug.cl.cam.ac.uk2005-09-1913-1012/+1165
| | | | | | | | | domain builder to correctly write PTEs that map pages above 4GB. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix the libxc Makefile.kaf24@firebug.cl.cam.ac.uk2005-09-151-2/+1
|
* merge?cl349@firebug.cl.cam.ac.uk2005-09-151-4/+14
|\
| * Like IA32 PAE xenlinux, we also need make VMX guest 1:1 page table PGDkaf24@firebug.cl.cam.ac.uk2005-09-151-4/+14
| | | | | | | | | | | | | | | | | | | | | | page below 4G. Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Chengyuan Li <chengyuan.li@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
* | Better build fix.cl349@firebug.cl.cam.ac.uk2005-09-151-4/+5
|/ | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Fix build!cl349@firebug.cl.cam.ac.uk2005-09-151-4/+4
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Merge latest xen-unstable into xen-ia64-unstable to prepdjm@kirby.fc.hp.com2005-09-146-30/+45
|\ | | | | | | | | for push back to xen-unstable
| * Fix xc_make_page_below_4G(). Should fix PAE domainkaf24@firebug.cl.cam.ac.uk2005-09-141-2/+2
| | | | | | | | | | | | | | | | building on >= 4GB systems. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix xc_domain_memory_decrease_reservation().kaf24@firebug.cl.cam.ac.uk2005-09-141-16/+19
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Add some sanity check when creating 3-level 1:1 page tablekaf24@firebug.cl.cam.ac.uk2005-09-141-8/+22
| | | | | | | | | | | | | | | | | | | | | | in VMX domain builder. - Add check for empty l2e page entry. - Add check for failed vl1tab map. Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
| * Get rid of anonymous unions in public header files.kaf24@firebug.cl.cam.ac.uk2005-09-142-2/+2
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Remove unsued domain_controller.h file.kaf24@firebug.cl.cam.ac.uk2005-09-141-2/+0
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>