|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
Re: [Xen-ia64-devel] PATCH: define guest_mode (instead of user_mode)
On Tue, 2007-05-08 at 15:26 +0200, Tristan Gingold wrote:
> diff -r 8519e5db6510 -r 8e5083feaa52 xen/arch/ia64/vmx/vmx_process.c
> --- a/xen/arch/ia64/vmx/vmx_process.c Tue May 08 15:07:51 2007 +0200
> +++ b/xen/arch/ia64/vmx/vmx_process.c Tue May 08 15:24:57 2007 +0200
> @@ -164,7 +164,7 @@ vmx_ia64_handle_break (unsigned long ifa
> if (iim == 0)
> vmx_die_if_kernel("Break 0 in Hypervisor.", regs, iim);
>
> - if (!user_mode(regs)) {
> + if (ia64_psr(regs)->cpl == 0) {
Why is this first one a special case? ie. why not !guest_mode(regs)
same as the next one? Thanks,
Alex
> /* Allow hypercalls only when cpl = 0. */
> if (iim == d->arch.breakimm) {
> ia64_hypercall(regs);
> diff -r 8519e5db6510 -r 8e5083feaa52 xen/arch/ia64/xen/faults.c
> --- a/xen/arch/ia64/xen/faults.c Tue May 08 15:07:51 2007 +0200
> +++ b/xen/arch/ia64/xen/faults.c Tue May 08 15:24:57 2007 +0200
> @@ -209,7 +209,7 @@ void ia64_do_page_fault(unsigned long ad
>
> if (is_ptc_l_needed)
> vcpu_ptc_l(current, address, logps);
> - if (!user_mode(regs)) {
> + if (!guest_mode(regs)) {
--
Alex Williamson HP Open Source & Linux Org.
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
|
|
|
|