aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert 16560:822d4ec5cfb1.Keir Fraser2007-12-081-2/+2
| | | | | | | | | | | | | Preference seems to be to update library versions only when the ABI changes. Only libxenctrl/libxenguest have their version number changed to 3.2.0, as a reminder that they change on pretty much every major release. libfsimage/libxenstore/libblktap have not changed substantially recently, hence the ABI has not changed, and version number stays the same as in Xen 3.1 (and before). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Rationalise library soname versions.Keir Fraser2007-12-071-2/+2
| | | | | | | | | | | | | | | | * Arrange for the sonames of libxenstore, libxc, libfsimage and libblktap to be set from a single place in Config.mk. * Bumps the soname major version number to 3.2 in preparation for 3.2 rc1 after which we do not expect to have ABI changes. I have not done anything about libaio and libflask. The former is imported from elsewhere and if we're lucky will have sane versioning upstream. libflask has a very small interface and I'm hoping that the XSM authors have been keeping some ABI discipline. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: Interface has changed a bit since Xen 3.1, so bump the majorKeir Fraser2007-12-061-1/+1
| | | | | number. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xc ptrace: Fix a couple of bugs in page-table walking.Keir Fraser2007-12-061-15/+2
| | | | Signed-off-by: John Zulauf <john.zulauf@intel.com>
* x86 domain builder: Propagate x86_compat return code.Keir Fraser2007-12-051-1/+3
| | | | Signed-off-by: Elizabeth Kon <eak@us.ibm.com>
* Merge with ia64.Keir Fraser2007-12-041-2/+6
|\
| * domain builder: make mmap() failure message more verbose.Keir Fraser2007-12-041-2/+6
| | | | | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* | [IA64] Implement guest_os_type for ia64Alex Williamson2007-11-292-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes use of the domain config option guest_os_type for ia64 and removes the backing for the previous ACPI based mechanism used previously. A user wanting optimal performance for a specific type of OS guest running in an HVM domain should make use of this new option. See updated xmexmaple.vti for available options. All supported OSes should always work using the default option or leaving the option unspecified. Originally based on patch from Zhang Xin. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] vcpu_setcontext: only set cr_irr if VGCF_SET_CR_IRR flag is set.Alex Williamson2007-11-281-1/+1
|/ | | | | | | | | | cr_irr can be modified even when a vcpu is blocked (by itv handler). Unconditionally setting cr_irr can trouble debugger as it may clear a bit of cr_irr and thus miss an interrupt. This can be very annoying if the interrupt is itv and the vcpu is inside PAL_HALT_LIGHT (the vcpu stays blocked forever). Signed-off-by: Tristan Gingold <tgingold@free.fr>
* libxc: Minor clean up of xc_core, and fix for -fstrict-overflow.Keir Fraser2007-11-222-7/+13
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* qemu: more verbose on failures.Keir Fraser2007-11-162-6/+18
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* libxc: Consistently print errno on write() error in domain_save code.Keir Fraser2007-11-111-21/+17
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* libxc: Consolidate read()/write() syscall wrappers to read/write anKeir Fraser2007-11-1110-228/+136
| | | | | | | exact number of bytes. The consolidated versions are more watertight than the various versions previously distributed around the library source code. Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64] vti save-restore: ia64 hvm builder clean up with respect to hvm params.Alex Williamson2007-11-073-37/+26
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Allow incremental access to hypervisor console log.Keir Fraser2007-10-292-4/+14
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* x86: Fix MTRR/PAT virtualisation on PAEKeir Fraser2007-10-262-6/+6
| | | | | | Various 'long's should be 'u64's. Signed-off-by: Disheng Su <disheng.su@intel.com>
* x86: Save/restore new syscall/sysenter context info.Keir Fraser2007-10-252-40/+84
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* merge with xen-unstable.hg (staging)Alex Williamson2007-10-233-1/+24
|\
| * libxc: check length on string copy (strcpy -> strncpy).Keir Fraser2007-10-231-1/+3
| | | | | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
| * hvm, vt-d: Add memory cache-attribute pinning domctl for HVMKeir Fraser2007-10-232-0/+21
| | | | | | | | | | | | guests. Use this to pin virtual framebuffer VRAM as attribute WB, even if guest tries to map with other attributes. Signed-off-by: Disheng Su <disheng.su@intel.com>
* | merge with xen-unstable.hg (staging)Alex Williamson2007-10-222-1/+2
|\|
| * ia64: Fix ia64 PV domain creation with new vhpt-size parameter.Keir Fraser2007-10-222-1/+2
| | | | | | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* | [IA64] Don't share privregs with hvm domainAlex Williamson2007-10-222-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't share privregs with hvm domain and twist IA64 xen dump core format slightly. Xen shares privregs pages with IA64 HVM domain for xm dump-core to dump the pages. However sharing the page allows hvm guest domain peek/destroy the page contents that might cause xen crash. And the xen dump core file doesn't need privregs page because cpu context should be obtained from vcpu context in case of IA64 HVM domain. Although this patch modify xen dump core format, current crash utility (at least crash 4.0-4.7) doesn't look into .xen_ia64_mmapped_regs section and I don't know any other tools to understand xen dump core file. So this format modification doesn't cause incompatibility issue. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] vti domain save/restore: libxc: implement vti domain save/restoreAlex Williamson2007-10-213-250/+695
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hgAlex Williamson2007-10-215-4/+55
|\|
| * ia64: configure VHPT size per domain: common partKeir Fraser2007-10-191-0/+1
| | | | | | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
| * tools: Remove bogus external uses of xc_private.h. Clean up libflask.Keir Fraser2007-10-183-1/+51
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * libxc: Avoid overflow in xc_domain_dumpcore_via_callback().Keir Fraser2007-10-151-3/+3
| | | | | | | | | | | | nr_pages*PAGE_SIZE can overflow a 32-bit long. From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] hvm domain builder clean up. use xc_vcpu_setcontext().Alex Williamson2007-10-121-23/+4
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Remove duplicate xc_get/set_hvm_param() definitionsAlex Williamson2007-10-121-48/+0
|/ | | | | | | Remove duplicated xc_get/set_hvm_param definition in xc_ia64_hvm_build.c They are also defined in xc_domain.c. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Initialize last_error in libxc.Keir Fraser2007-10-051-0/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvm: Avoid need for ugly setcpucontext() in HVM domain builder byKeir Fraser2007-10-011-53/+15
| | | | | | | pre-setting the vcpu0 to runnable inside Xen, and have the builder insert a JMP instruction to reach the hvmloader entry point from address 0x0. Signed-off-by: Keir Fraser <keir@xensource.com>
* libxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.Keir Fraser2007-10-011-2/+4
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* libxc: NetBSD-specific pieces.Keir Fraser2007-09-242-0/+272
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* libxc: improve error message when starting a domain and mmap() failsKeir Fraser2007-09-211-1/+4
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* [TOOLS] Make xc_domain_{save, restore} understand compat guestsTim Deegan2007-09-197-199/+350
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* libxc portability fixes for NetBSD.kfraser@localhost.localdomain2007-09-193-19/+81
| | | | | | | | | | | - use MAP_ANON, that is what both (BSD-)Unix and Linux have - change last_error handling to use pthreads - round mlock() parameters to page alignment - cleanup: No need to include <xen/sys/privcmd.h> a second time in xg_private.h Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Log an error when enabling shadow mode fails for live relocation.kfraser@localhost.localdomain2007-09-181-7/+12
| | | | Signed-off-by: Doug Merrill <dpmerrill@novell.com>
* PCI passthru: tools changes (generic and vt-d)kfraser@localhost.localdomain2007-09-142-0/+147
| | | | | | | | | | | | | I have added CONFIG_PASSTHROUGH in ioemu/Makefile.target and ioemu/hw/pc.c in attached vtd_tools2.patch. This should turn off libpci usage by default until user specifically enables it. This can be safely check-in without breaking builds for people who do not care about pass-through devices. I will try to think of a better way to enable this. Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Guy Zana <guy@neocleus.com>
* [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()Alex Williamson2007-09-101-2/+3
| | | | | | use xc_map_foreign_pages() where possible Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* merge with xen-unstable.hg (staging)Alex Williamson2007-09-072-0/+41
|\
| * xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()kfraser@localhost.localdomain2007-09-072-0/+41
| | | | | | | | | | | | | | | | | | xc_map_foreign_batch() can succeed partially. It is awkward to use when you're only interested in complete success. Provide new xc_map_foreign_pages() convenience function for that kind of use. Also convert two obvious calls to use it. Signed-off-by: Markus Armbruster <armbru@redhat.com>
* | [IA64] Foreign p2m: make xc_ia64_get_pfn_list() staticAlex Williamson2007-09-062-5/+1
| | | | | | | | | | | | Now xc_ia64_get_pfn_list() isn't used anymore. Make it static. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: rewrite save/restore with foreign p2mAlex Williamson2007-09-063-116/+311
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: xc_core: ia64 xc_core_arch_gpfn_may_present()Alex Williamson2007-09-062-15/+64
| | | | | | | | | | | | | | Prevent warning message when xm dump-core Using foreign p2m exposure, we can avoid to map the page which isn't allocated. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: libxc sideAlex Williamson2007-09-062-7/+184
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: Fix vti domain builder.Alex Williamson2007-09-061-1/+3
| | | | | | | | | | | | It should set arch_domain::convmem_end. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hg (staging)Alex Williamson2007-09-0611-194/+276
|\|
| * libxenctrl: xc_destroy_domain() handles EAGAIN.kfraser@localhost.localdomain2007-08-311-1/+5
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Cleanups after XSM checkin.kfraser@localhost.localdomain2007-08-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com> --HG-- rename : xen/include/public/acm.h => xen/include/public/xsm/acm.h rename : xen/include/public/acm_ops.h => xen/include/public/xsm/acm_ops.h rename : xen/include/acm/acm_core.h => xen/include/xsm/acm/acm_core.h rename : xen/include/acm/acm_endian.h => xen/include/xsm/acm/acm_endian.h rename : xen/include/acm/acm_hooks.h => xen/include/xsm/acm/acm_hooks.h