aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_pagetab.c
Commit message (Collapse)AuthorAgeFilesLines
* libxc: introduce xc_domain_get_guest_width()Dario Faggioli2013-09-131-5/+3
| | | | | | | | | | | | | | As a wrapper to XEN_DOMCTL_get_address_size, and use it wherever the call was being issued directly via do_domctl(), saving quite some line of code. Actually, the function returns the guest width in bytes, rather than directly what XEN_DOMCTL_get_address_size provides (which is a number of bits), since that is what it is useful almost everywhere. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* x86, libxc: Fix xc_translate_foreign_address() for PV guests ofKeir Fraser2011-03-031-3/+4
| | | | | | | different bitness than dom0 (32-bit vs 64-bit). Original patch by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Keir Fraser <keir@xen.org>
* # HG changeset patchIan Campbell2010-08-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | # User Ian Campbell <ian.campbell@citrix.com> # Date 1282671421 -3600 # Node ID d1dd29a470ef1b9d2c77478a123326036dfe90bb # Parent d7a4adad9c328decbd384d87b23001aea8951b86 tools/libxc, tools/libelf: Relicense under LGPL v2.1 Relicense these two libraries under LGPL v2.1 only except where individual files already included the "or later" provision. Copyright holders have been contacted by Stephen Spector and have all agreed this change. Removed tools/libxc/ia64/aclinux.h since it appeared to be unused. There is a separate, more up to date, copy in xen/include/acpi/platform/aclinux.h which does appear to be used. Clarify the license of MiniOS privcmd.h under the same terms as other tools/include/xen-sys headers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stephen Spector <stephen.spector@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-6/+6
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: Fix xc_translate_foreign_address in non-paged modeKeir Fraser2009-03-311-1/+1
| | | | | | | Returns paddr rather than gfn when in non-paged mode. Add a shift to fix it. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* libxc support for the new partial-HVM-save domctl.Keir Fraser2009-02-051-22/+14
| | | | | | | This includes making the pagetable walker in xc_pagetab.c behave correctly for 32-bit and 64-bit HVM guests. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* libxc: Define xc_ffs{8,16,32,64} functions. Use them.Keir Fraser2009-01-061-2/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Make xc_translate_foreign_address aware of compat-mode guests andKeir Fraser2009-01-051-160/+75
| | | | | | | (32-bit) HVM guests. 64-bit HVM guests are still not supported for now, pending a sensible way of getting at the guest's EFER.LMA. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* libxc: The following patch replace the libxc interface to useKeir Fraser2008-06-191-2/+2
| | | | | | | vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* libxc foreign address translation bugKeir Fraser2008-05-021-1/+1
| | | | | | | | | In the xc_translate_foreign_address function from libxc, there is a check on the page directory entry to see if the page is 4K or 4M. However, the check is looking at bit 3, when it should be looking at bit 7. This patch fixes the problem. Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
* libxc: Fix xc_translate_foreign_address() to parse non-pae pagetableskfraser@localhost.localdomain2007-04-251-3/+3
| | | | | | correctly. From: Chris Morrow <cmorrow@yottayotta.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Lift physical address restriction in save/restore code.kfraser@localhost.localdomain2007-02-151-2/+2
| | | | | | Bump this to 44 bits for x86-32 and 52 bits for x86-64. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [LIBXC] Convert all printf/fprintf uses to use a macro instead.kaf24@firebug.cl.cam.ac.uk2006-06-071-10/+10
| | | | | | | Thus all can be disabled at compile time. It would be easy to make enabling/disabling a run-time option too. Signed-off-by: Keir Fraser <keir@xensource.com>
* [PAE] Fix tools to properly pack/unpack >4GB PAE CR3 values.kaf24@firebug.cl.cam.ac.uk2006-06-021-1/+1
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix a couple of bogus dom0_op names:kaf24@firebug.cl.cam.ac.uk2006-01-061-1/+1
| | | | | | | | | setdomaininfo -> setvcpucontext pincpudomain -> setvcpuaffinity Signed-off-by: Keir Fraser <keir@xensource.com>
* Add support to xenctx for printing stack traces on x86_32 and x86_64.Ian.Campbell@xensource.com2005-12-221-0/+192
To support this add xc_translate_foreign_address to libxc. This function walks page tables and translates virtual addresses using a given domain and vcpu page table. Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>