Re: [PATCH v1 1/6] linux-headers: Update for dirty ring

2023-02-22 Thread Gavin Shan

On 2/22/23 7:49 PM, Cornelia Huck wrote:

On Wed, Feb 22 2023, Gavin Shan  wrote:


On 2/22/23 3:30 AM, Peter Maydell wrote:

On Mon, 13 Feb 2023 at 00:39, Gavin Shan  wrote:


Signed-off-by: Gavin Shan 
---
   linux-headers/asm-arm64/kvm.h | 1 +
   linux-headers/linux/kvm.h | 2 ++
   2 files changed, 3 insertions(+)


For this to be a non-RFC patch, this needs to be a proper
sync of the headers against an upstream kernel tree.
(By-hand tweaks are fine for purposes of working on
and getting patchsets reviewed.)



Yes, I vaguely remember there is script to synchronize linux header files,
which is './scripts/update-linux-headers.sh'. I think I need to run the
following command to update?

# ./scripts/update-linux-headers.sh  


Yes, and please include a reference to the exact Linux version you used
in the commit :)



Nice, thanks, Connie :)




Re: [PATCH v1 1/6] linux-headers: Update for dirty ring

2023-02-22 Thread Cornelia Huck
On Wed, Feb 22 2023, Gavin Shan  wrote:

> On 2/22/23 3:30 AM, Peter Maydell wrote:
>> On Mon, 13 Feb 2023 at 00:39, Gavin Shan  wrote:
>>>
>>> Signed-off-by: Gavin Shan 
>>> ---
>>>   linux-headers/asm-arm64/kvm.h | 1 +
>>>   linux-headers/linux/kvm.h | 2 ++
>>>   2 files changed, 3 insertions(+)
>> 
>> For this to be a non-RFC patch, this needs to be a proper
>> sync of the headers against an upstream kernel tree.
>> (By-hand tweaks are fine for purposes of working on
>> and getting patchsets reviewed.)
>> 
>
> Yes, I vaguely remember there is script to synchronize linux header files,
> which is './scripts/update-linux-headers.sh'. I think I need to run the
> following command to update?
>
># ./scripts/update-linux-headers.sh  

Yes, and please include a reference to the exact Linux version you used
in the commit :)




Re: [PATCH v1 1/6] linux-headers: Update for dirty ring

2023-02-21 Thread Gavin Shan

On 2/22/23 3:30 AM, Peter Maydell wrote:

On Mon, 13 Feb 2023 at 00:39, Gavin Shan  wrote:


Signed-off-by: Gavin Shan 
---
  linux-headers/asm-arm64/kvm.h | 1 +
  linux-headers/linux/kvm.h | 2 ++
  2 files changed, 3 insertions(+)


For this to be a non-RFC patch, this needs to be a proper
sync of the headers against an upstream kernel tree.
(By-hand tweaks are fine for purposes of working on
and getting patchsets reviewed.)



Yes, I vaguely remember there is script to synchronize linux header files,
which is './scripts/update-linux-headers.sh'. I think I need to run the
following command to update?

  # ./scripts/update-linux-headers.sh  

Thanks,
Gavin




Re: [PATCH v1 1/6] linux-headers: Update for dirty ring

2023-02-21 Thread Peter Maydell
On Mon, 13 Feb 2023 at 00:39, Gavin Shan  wrote:
>
> Signed-off-by: Gavin Shan 
> ---
>  linux-headers/asm-arm64/kvm.h | 1 +
>  linux-headers/linux/kvm.h | 2 ++
>  2 files changed, 3 insertions(+)

For this to be a non-RFC patch, this needs to be a proper
sync of the headers against an upstream kernel tree.
(By-hand tweaks are fine for purposes of working on
and getting patchsets reviewed.)

thanks
-- PMM



[PATCH v1 1/6] linux-headers: Update for dirty ring

2023-02-12 Thread Gavin Shan
Signed-off-by: Gavin Shan 
---
 linux-headers/asm-arm64/kvm.h | 1 +
 linux-headers/linux/kvm.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h
index 4bf2d7246e..a7cfefb3a8 100644
--- a/linux-headers/asm-arm64/kvm.h
+++ b/linux-headers/asm-arm64/kvm.h
@@ -43,6 +43,7 @@
 #define __KVM_HAVE_VCPU_EVENTS
 
 #define KVM_COALESCED_MMIO_PAGE_OFFSET 1
+#define KVM_DIRTY_LOG_PAGE_OFFSET 64
 
 #define KVM_REG_SIZE(id)   \
(1U << (((id) & KVM_REG_SIZE_MASK) >> KVM_REG_SIZE_SHIFT))
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index ebdafa576d..5b4e0e4e68 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -1175,6 +1175,8 @@ struct kvm_ppc_resize_hpt {
 #define KVM_CAP_VM_DISABLE_NX_HUGE_PAGES 220
 #define KVM_CAP_S390_ZPCI_OP 221
 #define KVM_CAP_S390_CPU_TOPOLOGY 222
+#define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223
+#define KVM_CAP_DIRTY_LOG_RING_WITH_BITMAP 225
 
 #ifdef KVM_CAP_IRQ_ROUTING
 
-- 
2.23.0