Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1230555 > unrolled thread
| Started by | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| First post | 2015-09-22 20:00 +0200 |
| Last post | 2015-09-29 10:50 +0200 |
| Articles | 2 — 2 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.
Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-22 20:00 +0200
Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code Ingo Molnar <mingo@kernel.org> - 2015-09-29 10:50 +0200
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Date | 2015-09-22 20:00 +0200 |
| Subject | Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code |
| Message-ID | <qbA1c-46k-5@gated-at.bofh.it> |
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar <mingo@kernel.org> wrote:
> xen_mm_pin_all()/unpin_all() are used to implement full guest instance
> suspend/restore. It's a stop-all method that needs to iterate through
> all allocated pgds in the system to fix them up for Xen's use.
And _this_ is why I'd reall ylike that "for_each_mm()" helper.
Yeah, yeah, maybe it would require syntax like
for_each_mm (tsk, mm) {
...
} end_for_each_mm(mm);
to do variable allocation things or cleanups (ie "end_for_each_mm()"
might drop the task lock etc), but wouldn't that still be better than
this complex boilerplate thing?
Linus
--
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]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2015-09-29 10:50 +0200 |
| Subject | Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code |
| Message-ID | <qdYLN-1nH-39@gated-at.bofh.it> |
| In reply to | #1230555 |
* Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar <mingo@kernel.org> wrote:
> > xen_mm_pin_all()/unpin_all() are used to implement full guest instance
> > suspend/restore. It's a stop-all method that needs to iterate through
> > all allocated pgds in the system to fix them up for Xen's use.
>
> And _this_ is why I'd reall ylike that "for_each_mm()" helper.
>
> Yeah, yeah, maybe it would require syntax like
>
> for_each_mm (tsk, mm) {
> ...
> } end_for_each_mm(mm);
>
> to do variable allocation things or cleanups (ie "end_for_each_mm()" might drop
> the task lock etc), but wouldn't that still be better than this complex
> boilerplate thing?
Yeah, agreed absolutely.
Thanks,
Ingo
--
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] | [standalone]
Back to top | Article view | linux.kernel
csiph-web