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


Groups > linux.kernel > #1542073

Re: [PATCH v2 3/3] kvm: svm: Use the hardware provided GPA instead of page walk

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 3/3] kvm: svm: Use the hardware provided GPA instead of page walk
Date 2016-12-14 18:30 +0100
Message-ID <sOlxn-LM-5@gated-at.bofh.it> (permalink)
References (4 earlier) <sMvAR-522-13@gated-at.bofh.it> <sMvAR-522-9@gated-at.bofh.it> <sNYUb-3UP-79@gated-at.bofh.it> <sNYUb-3UP-77@gated-at.bofh.it> <sOlxn-LM-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 14/12/2016 18:07, Brijesh Singh wrote:
>>
> 
> Since now we are going to perform multiple conditional checks before
> concluding that its safe to use HW provided GPA. How about if we add two
> functions "emulator_is_rep_string_op" and "emulator_is_two_mem_op" into
> emulator.c and  use these functions inside the x86.c to determine if its
> safe to use HW provided gpa?

Why not export only emulator_can_use_gpa from emulate.c?  (So in the end
leaving emulator_is_string_op in emulate.c was the right thing to do, it
was just the test that was wrong :)).

The patch below is still missing the check for cross-page MMIO.  Your
reference to the BKDG only covers MMCONFIG (sometimes referred to as
ECAM), not MMIO in general.  Doing AND or OR into video memory for
example is perfectly legal, and I'm fairly sure that some obscure legacy
software does PUSH/POP into vram as well!

Thanks,

Paolo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 3/3] kvm: svm: Use the hardware provided GPA instead of  page walk Paolo Bonzini <pbonzini@redhat.com> - 2016-12-13 18:20 +0100
  Re: [PATCH v2 3/3] kvm: svm: Use the hardware provided GPA instead of  page walk Paolo Bonzini <pbonzini@redhat.com> - 2016-12-14 18:30 +0100
    Re: [PATCH v2 3/3] kvm: svm: Use the hardware provided GPA instead of  page walk Paolo Bonzini <pbonzini@redhat.com> - 2016-12-14 19:50 +0100

csiph-web