aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/ldt.h
Commit message (Collapse)AuthorAgeFilesLines
* 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: split struct vcpuJan Beulich2011-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is accomplished by splitting the guest_context member, which by itself is larger than a page on x86-64. Quite a number of fields of this structure is completely meaningless for HVM guests, and thus a new struct pv_vcpu gets introduced, which is being overlaid with struct hvm_vcpu in struct arch_vcpu. The one member that is mostly responsible for the large size is trap_ctxt, which now gets allocated separately (unless fitting on the same page as struct arch_vcpu, as is currently the case for x86-32), and only for non-hvm, non-idle domains. This change pointed out a latent problem in arch_set_info_guest(), which is permitted to be called on already initialized vCPU-s, but so far copied the new state into struct arch_vcpu without (in this case) actually going through all the necessary accounting/validation steps. The logic gets changed so that the pieces that bypass accounting will at least be verified to be no different from the currently active bits, and the whole change will fail in case they are. The logic does *not* get adjusted here to do full error recovery, that is, partially modified state continues to not get unrolled in case of failure. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86: make GDT per-CPUKeir Fraser2008-09-221-5/+4
| | | | | | | | | | | The major issue with supporting a significantly larger number of physical CPUs appears to be the use of per-CPU GDT entries - at present, x86-64 could support only up to 126 CPUs (with code changes to also use the top-most GDT page, that would be 254). Instead of trying to go with incremental steps here, by converting the GDT itself to be per-CPU, limitations in that respect go away entirely. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* xen: More 'IS_COMPAT' cleanups.kfraser@localhost.localdomain2007-04-271-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Introduce _DOMF_compat and infrastructure as well as several conditionalsEmmanuel Ackaouy2007-01-051-1/+2
| | | | | | | dealing with operations that need to distinguish between native and compatibility mode guests. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* bitkeeper revision 1.1733 (42ba827d4k5gz1Dasgd0gorMu-SSmQ)kaf24@firebug.cl.cam.ac.uk2005-06-231-3/+1
| | | | | | | | | | | The 32-bit x86 LTP exposed bugs with LDT handling with x86_64 Xen and XenLinux: - fill the code for arbitrary_virt_to_machine(XenLinux) - set 64-bit value for the base address for LDT (Xen) - fix a bug (64-bit cleanup) in map_ldt_shadow_page (Xen) Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
* bitkeeper revision 1.1644.1.1 (429f749dKFzVUg9NXDMVu4apHJvpNQ)kaf24@firebug.cl.cam.ac.uk2005-06-021-5/+5
| | | | | | | The last annoying rename: struct exec_domain *ed -> struct vcpu *v Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1443 (428b3f59xxbCVcbUBrHu1R1TkWcYhg)kaf24@firebug.cl.cam.ac.uk2005-05-181-1/+1
| | | | | | | | | Cleaner GDT interface. Xen now reserves the last 2 pages of a full-size (16 page) GDT. A guest can register a GDT with up to 7k entries. Xen automatically makes the GDT up to max size with empty page mappings, and turns page faults in that area to #GP(selector). Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.1.4 (427125bdwah0mehgnafVLP-gRLDM_w)kaf24@firebug.cl.cam.ac.uk2005-04-281-1/+1
| | | | | | | Avoid field duplication between vcpu_guest_context and arch_exec_domain structures. The latter now includes the former as a sub-field. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.58 (42288505tf22vxeNSISpP2B48DpV5A)kaf24@scramble.cl.cam.ac.uk2005-03-041-0/+1
| | | | | | Fix the Emacs 'local variables' block to include required end stmt. Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
* bitkeeper revision 1.1236.1.14 (421db08d6LIbanwxXMIaE6u0X5DIbQ)kaf24@scramble.cl.cam.ac.uk2005-02-241-1/+9
| | | | | | Move Emacs mode lines to end of files, out of the way. Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
* bitkeeper revision 1.1159.212.100 (42050e5fWLAKCQAvoZ3CPmyAaL-51g)kaf24@viper.(none)2005-02-051-7/+9
| | | | | | | Reorganise 'struct domain' and 'struct exec_domain' to each have an architecture-specific portion. Removed 'mm_struct'. Signed-off-by: keir.fraser@cl.cam.ac.uk
* bitkeeper revision 1.1159.1.425 (419a4cf9VuB3gYuI3YPyE637uwwiRA)cl349@freefall.cl.cam.ac.uk2004-11-161-3/+3
| | | | | | Extend perdomain_pt to support multiple vcpus. Add biglock.
* bitkeeper revision 1.1159.1.393 (4190a145cbZFKzGdkH5xPlOlxNNPnw)cl349@freefall.cl.cam.ac.uk2004-11-091-1/+1
| | | | | Split struct exec_domain out of struct domain.
* bitkeeper revision 1.982 (40d300456_XUbFFOMxRh4MjyB7AfJA)kaf24@scramble.cl.cam.ac.uk2004-06-181-1/+1
| | | | | | | | | Hacked the scheduler interfaces in Xen. We now have synchronous pause. Suspend/death VIRQs have gone away; replace by dom-controller msgs. Xen no longer knows about PS/2 keyboard/mouse; DOM0 can go straight at them.
* bitkeeper revision 1.952 (40c8935a3XSRdQfnx5RoO7XgaggvOQ)kaf24@scramble.cl.cam.ac.uk2004-06-101-0/+29
Towards x86_64 support. Merged a bunch of the existing x86_64 stuff back into a generic 'x86' architecture. Aim is to share as much as possible between 32- and 64-bit worlds.