Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1273704 > unrolled thread

Re: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions

Started byWanpeng Li <kernellwp@gmail.com>
First post2015-11-20 04:00 +0100
Last post2015-11-20 08:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] KVM: x86: emulate: correct page fault error code for  NoWrite instructions Wanpeng Li <kernellwp@gmail.com> - 2015-11-20 04:00 +0100
    Re: [PATCH] KVM: x86: emulate: correct page fault error code for  NoWrite instructions Wanpeng Li <kernellwp@gmail.com> - 2015-11-20 04:30 +0100
      Re: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions Nadav Amit <nadav.amit@gmail.com> - 2015-11-20 08:50 +0100

#1273704 — Re: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions

FromWanpeng Li <kernellwp@gmail.com>
Date2015-11-20 04:00 +0100
SubjectRe: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions
Message-ID<qwK5z-1aE-5@gated-at.bofh.it>
Hi Paolo,
2015-02-09 17:03 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
> NoWrite instructions (e.g. cmp or test) never set the "write access"
> bit in the error code, even if one of the operands is treated as a
> destination.

Sorry to reply to an old commit, btw, could you point out where in SDM
describe above?

Regards,
Wanpeng Li
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1273713

FromWanpeng Li <kernellwp@gmail.com>
Date2015-11-20 04:30 +0100
Message-ID<qwKyC-1Hg-3@gated-at.bofh.it>
In reply to#1273704
2015-11-20 10:52 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
> Hi Paolo,
> 2015-02-09 17:03 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>> NoWrite instructions (e.g. cmp or test) never set the "write access"
>> bit in the error code, even if one of the operands is treated as a
>> destination.
>
> Sorry to reply to an old commit, btw, could you point out where in SDM
> describe above?

I see.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1273764 — Re: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions

FromNadav Amit <nadav.amit@gmail.com>
Date2015-11-20 08:50 +0100
SubjectRe: [PATCH] KVM: x86: emulate: correct page fault error code for NoWrite instructions
Message-ID<qwOCd-4dZ-5@gated-at.bofh.it>
In reply to#1273713
Wanpeng Li <kernellwp@gmail.com> wrote:

> 2015-11-20 10:52 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
>> Hi Paolo,
>> 2015-02-09 17:03 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>>> NoWrite instructions (e.g. cmp or test) never set the "write access"
>>> bit in the error code, even if one of the operands is treated as a
>>> destination.
>> 
>> Sorry to reply to an old commit, btw, could you point out where in SDM
>> describe above?
> 
> I see.

I don’t understand whether you still need my help, so to clarify: on a
page-fault the error code should indicate whether the access was due to a
write access. Previously KVM marked it as “write access” for instructions
such as test and cmp that do not perform write.

Nadav--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web