diff mbox series

[V13,1/9] linux-headers: Update MIPS KVM type defintition

Message ID 1602059975-10115-2-git-send-email-chenhc@lemote.com
State Superseded
Headers show
Series mips: Add Loongson-3 machine support | expand

Commit Message

chen huacai Oct. 7, 2020, 8:39 a.m. UTC
Update MIPS KVM type defintition from Linux 5.9-rc6.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 linux-headers/linux/kvm.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Philippe Mathieu-Daudé Oct. 10, 2020, 8:25 a.m. UTC | #1
On 10/7/20 10:39 AM, Huacai Chen wrote:
> Update MIPS KVM type defintition from Linux 5.9-rc6.


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


> 

> Signed-off-by: Huacai Chen <chenhc@lemote.com>

> ---

>   linux-headers/linux/kvm.h | 5 +++--

>   1 file changed, 3 insertions(+), 2 deletions(-)

> 

> diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h

> index 6683e2e..c138b2f 100644

> --- a/linux-headers/linux/kvm.h

> +++ b/linux-headers/linux/kvm.h

> @@ -790,9 +790,10 @@ struct kvm_ppc_resize_hpt {

>   #define KVM_VM_PPC_HV 1

>   #define KVM_VM_PPC_PR 2

>   

> -/* on MIPS, 0 forces trap & emulate, 1 forces VZ ASE */

> -#define KVM_VM_MIPS_TE		0

> +/* on MIPS, 0 indicates auto, 1 forces VZ ASE, 2 forces trap & emulate */

> +#define KVM_VM_MIPS_AUTO	0

>   #define KVM_VM_MIPS_VZ		1

> +#define KVM_VM_MIPS_TE		2

>   

>   #define KVM_S390_SIE_PAGE_OFFSET 1

>   

>
Peter Maydell Oct. 10, 2020, 12:59 p.m. UTC | #2
On Wed, 7 Oct 2020 at 09:44, Huacai Chen <zltjiangshi@gmail.com> wrote:
>

> Update MIPS KVM type defintition from Linux 5.9-rc6.

>

> Signed-off-by: Huacai Chen <chenhc@lemote.com>

> ---


Is this a sync using scripts/update-linux-headers.sh ?

(I vaguely had the idea of adding a --make-commit option to
that script so it would automatically create a git commit
with a header message saying it was a sync against the
kernel git commit, but I never got round to it.)

thanks
-- PMM
Philippe Mathieu-Daudé Oct. 10, 2020, 1:11 p.m. UTC | #3
On 10/10/20 2:59 PM, Peter Maydell wrote:
> On Wed, 7 Oct 2020 at 09:44, Huacai Chen <zltjiangshi@gmail.com> wrote:

>>

>> Update MIPS KVM type defintition from Linux 5.9-rc6.

>>

>> Signed-off-by: Huacai Chen <chenhc@lemote.com>

>> ---

> 

> Is this a sync using scripts/update-linux-headers.sh ?

> 

> (I vaguely had the idea of adding a --make-commit option to

> that script so it would automatically create a git commit

> with a header message saying it was a sync against the

> kernel git commit, but I never got round to it.)


I just realized you merged this change as commit 94c7fefcb45
("linux headers: sync to 5.9-rc7") =)

> 

> thanks

> -- PMM

>
diff mbox series

Patch

diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 6683e2e..c138b2f 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -790,9 +790,10 @@  struct kvm_ppc_resize_hpt {
 #define KVM_VM_PPC_HV 1
 #define KVM_VM_PPC_PR 2
 
-/* on MIPS, 0 forces trap & emulate, 1 forces VZ ASE */
-#define KVM_VM_MIPS_TE		0
+/* on MIPS, 0 indicates auto, 1 forces VZ ASE, 2 forces trap & emulate */
+#define KVM_VM_MIPS_AUTO	0
 #define KVM_VM_MIPS_VZ		1
+#define KVM_VM_MIPS_TE		2
 
 #define KVM_S390_SIE_PAGE_OFFSET 1