Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1355138
| From | Radim Krčmář <rkrcmar@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC |
| Date | 2016-03-10 15:10 +0100 |
| Message-ID | <rb9rQ-823-21@gated-at.bofh.it> (permalink) |
| References | <r94PD-3Vt-3@gated-at.bofh.it> <r94PD-3Vt-1@gated-at.bofh.it> <raU9s-5u8-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-03-09 22:46+0100, Radim Krčmář: > 2016-03-04 14:46-0600, Suravee Suthikulpanit: >> From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> >> >> When a vcpu is loaded/unloaded to a physical core, we need to update >> information in the Physical APIC-ID table accordingly. >> >> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> >> --- >> +static int avic_vcpu_load(struct kvm_vcpu *vcpu, int cpu, bool is_load) > > This function does a lot and there is only one thing that must be done > in svm_vcpu_load: change host physical APIC ID if the CPU changed. > The rest can be done elsewhere: > - is_running when blocking. Well, we haven't reached an agreement on is_running yet. The situation: if we don't unset vcpu1.is_running when vcpu1 is scheduled out and vcpu2 gets scheduled on vcpu1's physical core, then vcpu2 would receive a doorbell intended to vcpu1. We'd like to keep is_running set when there is no reason to vmexit, but not if a guest can negatively affect other guests. How does receiving a stray doorbell affect the performance? Thanks. (Toggling is_running on load/put is definitely safer, so it's a good choice for first version.)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> - 2016-03-04 21:50 +0100
Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC Radim Krčmář <rkrcmar@redhat.com> - 2016-03-09 22:50 +0100
Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC Radim Krčmář <rkrcmar@redhat.com> - 2016-03-10 15:10 +0100
Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC Radim Krčmář <rkrcmar@redhat.com> - 2016-03-14 18:00 +0100
Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC Radim Krčmář <rkrcmar@redhat.com> - 2016-03-14 17:50 +0100
csiph-web