lkml.org 
[lkml]   [2021]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 09/19] KVM: selftests: Use alloc page helper for xAPIC IPI test
    From
    Use the common page allocation helper for the xAPIC IPI test, effectively
    raising the minimum virtual address from 0x1000 to 0x2000. Presumably
    the test won't explode if it can't get a page at address 0x1000...

    Cc: Peter Shier <pshier@google.com>
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    ---
    tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c b/tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c
    index 21b22718a9db..5a79c8ed4611 100644
    --- a/tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c
    +++ b/tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c
    @@ -427,7 +427,7 @@ int main(int argc, char *argv[])

    vm_vcpu_add_default(vm, SENDER_VCPU_ID, sender_guest_code);

    - test_data_page_vaddr = vm_vaddr_alloc(vm, 0x1000, 0x1000, 0, 0);
    + test_data_page_vaddr = vm_vaddr_alloc_page(vm);
    data =
    (struct test_data_page *)addr_gva2hva(vm, test_data_page_vaddr);
    memset(data, 0, sizeof(*data));
    --
    2.32.0.288.g62a8d224e6-goog
    \
     
     \ /
      Last update: 2021-06-22 22:07    [W:4.358 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site