This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] Question about "include/asm-x86/domain.h: struct arch_vc

On 24 Feb 2006, at 16:31, Elizeu Santos-Neto wrote:

I'm trying to carefully understand the process of creating a domain and
vcpu initialization. In particular, I'm currently interested in
understanding exactly which information the "vcpu" structure holds.
        Which kind of flags does "arch_vcpu.flags" contain? I saw a comment /*
TF_ */, but I did not quite get it.

        What is it used for?

They're defined in asm/processor.h. There's only one right now -- TF_kernel mode, which indicates whether the guest is currently running in kernel mode or not. This is needed on x86/64 since guest applications and guets kernel both run in ring 3 and so there is no way to distinguish the two modes without maintaining a sfotware flag in Xen.

 -- Keir

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>