From: Avi Kivity <avi@redhat.com>
To: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>
Cc: mtosatti@redhat.com, kvm@vger.kernel.org,
yoshikawa.takuya@oss.ntt.co.jp, mingo@elte.hu
Subject: Re: [PATCH 1/4] KVM: MMU: Clean up the error handling of walk_addr_generic()
Date: Sun, 12 Jun 2011 18:45:34 +0300 [thread overview]
Message-ID: <4DF4DF1E.3020403@redhat.com> (raw)
In-Reply-To: <20110609230126.145e8029.takuya.yoshikawa@gmail.com>
On 06/09/2011 05:01 PM, Takuya Yoshikawa wrote:
> From: Takuya Yoshikawa<yoshikawa.takuya@oss.ntt.co.jp>
>
> Avoid two step jumps to the error handling part. This eliminates the
> use of the variables present and rsvd_fault.
>
> We also mark the variables write/user/fetch_fault with const to show
> these do not change in the function.
>
> These were suggested by Ingo Molnar.
> error:
> - walker->fault.vector = PF_VECTOR;
> - walker->fault.error_code_valid = true;
> - walker->fault.error_code = 0;
> - if (present)
> - walker->fault.error_code |= PFERR_PRESENT_MASK;
> -
> - walker->fault.error_code |= write_fault | user_fault;
> -
> + errcode |= write_fault | user_fault;
> if (fetch_fault&& mmu->nx)
> - walker->fault.error_code |= PFERR_FETCH_MASK;
> - if (rsvd_fault)
> - walker->fault.error_code |= PFERR_RSVD_MASK;
> + errcode |= PFERR_FETCH_MASK;
>
This area has changed, please regenerate against 'next'.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-06-12 15:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-09 13:59 [PATCH 0/4] KVM: MMU: Clean up walk_addr_generic() Takuya Yoshikawa
2011-06-09 14:01 ` [PATCH 1/4] KVM: MMU: Clean up the error handling of walk_addr_generic() Takuya Yoshikawa
2011-06-12 15:45 ` Avi Kivity [this message]
2011-06-09 14:02 ` [PATCH 2/4] KVM: MMU: Move some variables into the walk loop Takuya Yoshikawa
2011-06-09 14:03 ` [PATCH 3/4] KVM: MMU: Update walker->pt/pte_access directly Takuya Yoshikawa
2011-06-09 14:05 ` [PATCH 4/4] KVM: MMU: Split out the main body of walk_addr_generic() Takuya Yoshikawa
2011-06-09 14:18 ` Ingo Molnar
2011-06-12 15:47 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF4DF1E.3020403@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mtosatti@redhat.com \
--cc=takuya.yoshikawa@gmail.com \
--cc=yoshikawa.takuya@oss.ntt.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.