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


Groups > linux.kernel > #1303605 > unrolled thread

[PATCH 3/4] KVM: renumber architecture-dependent requests

Started byPaolo Bonzini <pbonzini@redhat.com>
First post2016-01-07 15:20 +0100
Last post2016-01-08 07:10 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] KVM: renumber architecture-dependent requests Paolo Bonzini <pbonzini@redhat.com> - 2016-01-07 15:20 +0100
    Re: [PATCH 3/4] KVM: renumber architecture-dependent requests Christian Borntraeger <borntraeger@de.ibm.com> - 2016-01-07 16:30 +0100
      Re: [PATCH 3/4] KVM: renumber architecture-dependent requests Paolo Bonzini <pbonzini@redhat.com> - 2016-01-07 16:50 +0100
        Re: [PATCH 3/4] KVM: renumber architecture-dependent requests Christian Borntraeger <borntraeger@de.ibm.com> - 2016-01-07 17:00 +0100
    Re: [PATCH 3/4] KVM: renumber architecture-dependent requests Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> - 2016-01-08 07:10 +0100

#1303605 — [PATCH 3/4] KVM: renumber architecture-dependent requests

FromPaolo Bonzini <pbonzini@redhat.com>
Date2016-01-07 15:20 +0100
Subject[PATCH 3/4] KVM: renumber architecture-dependent requests
Message-ID<qOjzX-Lp-11@gated-at.bofh.it>
Leave room for 4 more arch-independent requests.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 include/linux/kvm_host.h | 59 ++++++++++++++++++++++++------------------------
 1 file changed, 29 insertions(+), 30 deletions(-)

diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 48abf6792286..b0ec0f778192 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -114,43 +114,42 @@ static inline bool is_error_page(struct page *page)
  * vcpu->requests bit members
  */
 #define KVM_REQ_TLB_FLUSH          0
-#define KVM_REQ_MMU_RELOAD         3
-#define KVM_REQ_PENDING_TIMER      5
-#define KVM_REQ_UNHALT             6
+#define KVM_REQ_MMU_RELOAD         1
+#define KVM_REQ_PENDING_TIMER      2
+#define KVM_REQ_UNHALT             3
 
 /* x86-specific requests */
-#define KVM_REQ_MIGRATE_TIMER      1
-#define KVM_REQ_REPORT_TPR_ACCESS  2
-#define KVM_REQ_TRIPLE_FAULT       4
-#define KVM_REQ_MMU_SYNC           7
-#define KVM_REQ_CLOCK_UPDATE       8
-/* 9 is unused */
-#define KVM_REQ_DEACTIVATE_FPU    10
-#define KVM_REQ_EVENT             11
-#define KVM_REQ_APF_HALT          12
-#define KVM_REQ_STEAL_UPDATE      13
-#define KVM_REQ_NMI               14
-#define KVM_REQ_PMU               15
-#define KVM_REQ_PMI               16
-#define KVM_REQ_MASTERCLOCK_UPDATE 18
-#define KVM_REQ_MCLOCK_INPROGRESS 19
-#define KVM_REQ_SCAN_IOAPIC       21
-#define KVM_REQ_GLOBAL_CLOCK_UPDATE 22
+#define KVM_REQ_MIGRATE_TIMER      8
+#define KVM_REQ_REPORT_TPR_ACCESS  9
+#define KVM_REQ_TRIPLE_FAULT      10
+#define KVM_REQ_MMU_SYNC          11
+#define KVM_REQ_CLOCK_UPDATE      12
+#define KVM_REQ_DEACTIVATE_FPU    13
+#define KVM_REQ_EVENT             14
+#define KVM_REQ_APF_HALT          15
+#define KVM_REQ_STEAL_UPDATE      16
+#define KVM_REQ_NMI               17
+#define KVM_REQ_PMU               18
+#define KVM_REQ_PMI               19
+#define KVM_REQ_SMI               20
+#define KVM_REQ_MASTERCLOCK_UPDATE 21
+#define KVM_REQ_MCLOCK_INPROGRESS 22
+#define KVM_REQ_SCAN_IOAPIC       23
+#define KVM_REQ_GLOBAL_CLOCK_UPDATE 24
 #define KVM_REQ_APIC_PAGE_RELOAD  25
-#define KVM_REQ_SMI               26
-#define KVM_REQ_HV_CRASH          27
-#define KVM_REQ_IOAPIC_EOI_EXIT   28
-#define KVM_REQ_HV_RESET          29
-#define KVM_REQ_HV_EXIT           30
-#define KVM_REQ_HV_STIMER         31
+#define KVM_REQ_HV_CRASH          26
+#define KVM_REQ_IOAPIC_EOI_EXIT   27
+#define KVM_REQ_HV_RESET          28
+#define KVM_REQ_HV_EXIT           29
+#define KVM_REQ_HV_STIMER         30
 
 /* PPC-specific requests */
-#define KVM_REQ_WATCHDOG          17
-#define KVM_REQ_EPR_EXIT          20
+#define KVM_REQ_WATCHDOG           8
+#define KVM_REQ_EPR_EXIT           9
 
 /* s390-specific requests */
-#define KVM_REQ_ENABLE_IBS        23
-#define KVM_REQ_DISABLE_IBS       24
+#define KVM_REQ_ENABLE_IBS         8
+#define KVM_REQ_DISABLE_IBS        9
 
 #define KVM_USERSPACE_IRQ_SOURCE_ID		0
 #define KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID	1
-- 
1.8.3.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1303658

FromChristian Borntraeger <borntraeger@de.ibm.com>
Date2016-01-07 16:30 +0100
Message-ID<qOkFI-1wu-17@gated-at.bofh.it>
In reply to#1303605
On 01/07/2016 03:17 PM, Paolo Bonzini wrote:
> Leave room for 4 more arch-independent requests.
> 


The patch subject is wrong.

"renumber architecture-dependent requests"

--> "renumber kvm requests"

as we also renumber the architecture independent ones.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1303690

FromPaolo Bonzini <pbonzini@redhat.com>
Date2016-01-07 16:50 +0100
Message-ID<qOkZ5-1DY-49@gated-at.bofh.it>
In reply to#1303658

On 07/01/2016 16:27, Christian Borntraeger wrote:
> On 01/07/2016 03:17 PM, Paolo Bonzini wrote:
>> Leave room for 4 more arch-independent requests.
> 
> The patch subject is wrong.
> 
> "renumber architecture-dependent requests"
> 
> --> "renumber kvm requests"
> 
> as we also renumber the architecture independent ones.

Right.  Ok with that change?

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1303697

FromChristian Borntraeger <borntraeger@de.ibm.com>
Date2016-01-07 17:00 +0100
Message-ID<qOl8K-1I5-21@gated-at.bofh.it>
In reply to#1303690
On 01/07/2016 04:45 PM, Paolo Bonzini wrote:
> 
> 
> On 07/01/2016 16:27, Christian Borntraeger wrote:
>> On 01/07/2016 03:17 PM, Paolo Bonzini wrote:
>>> Leave room for 4 more arch-independent requests.
>>
>> The patch subject is wrong.
>>
>> "renumber architecture-dependent requests"
>>
>> --> "renumber kvm requests"
>>
>> as we also renumber the architecture independent ones.
> 
> Right.  Ok with that change?

Reviewed-by with that change.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1304202

FromTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Date2016-01-08 07:10 +0100
Message-ID<qOypk-2DF-13@gated-at.bofh.it>
In reply to#1303605
On 2016/01/07 23:17, Paolo Bonzini wrote:
> Leave room for 4 more arch-independent requests.

In the current requests handling code, this ordering means
that architecture specific requests get handled only after
generic ones.

If someone wants to make a generic request that needs to be
handled before entering the guest from any architecture
specific request handler, this can be a problem.

If you can guarantee that this kind of dependencies will not
be introduced in the future, this change looks good to me.

Actually, I want to make the current dependencies, even between
architecture specific requests, more explicitly written in the
code.

  Takuya

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web