hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/powerpc/kvm/e500_mmu.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved.
34 *
....@@ -10,10 +11,6 @@
1011 * Description:
1112 * This file is based on arch/powerpc/kvm/44x_tlb.c,
1213 * by Hollis Blanchard <hollisb@us.ibm.com>.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License, version 2, as
16
- * published by the Free Software Foundation.
1714 */
1815
1916 #include <linux/kernel.h>
....@@ -536,10 +533,6 @@
536533 return get_tlb_raddr(gtlbe) | (eaddr & pgmask);
537534 }
538535
539
-void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu)
540
-{
541
-}
542
-
543536 /*****************************************/
544537
545538 static void free_gtlb(struct kvmppc_vcpu_e500 *vcpu_e500)
....@@ -783,7 +776,7 @@
783776 if (!pages)
784777 return -ENOMEM;
785778
786
- ret = get_user_pages_fast(cfg->array, num_pages, 1, pages);
779
+ ret = get_user_pages_fast(cfg->array, num_pages, FOLL_WRITE, pages);
787780 if (ret < 0)
788781 goto free_pages;
789782