* [RFC, PATCH 4/5] Paravirt_ops drop internal patches.patch
@ 2007-04-20 1:52 Zachary Amsden
2007-04-20 5:10 ` Jeremy Fitzhardinge
0 siblings, 1 reply; 3+ messages in thread
From: Zachary Amsden @ 2007-04-20 1:52 UTC (permalink / raw)
To: Andrew Morton, Andi Kleen, Jeremy Fitzhardinge, Rusty Russell,
Chris Wright, Ingo Molnar, Petr Vandrovec, Pratap Subrahmanyam,
Dan Hecht, Dan Arai, Virtualization Mailing List, Chaz Masden,
Zachary Amsden
Some of these boot hooks do not need to be patched, in fact, it is better not
to patch them at all and thus keep them totally private.
Signed-off-by: Zachary Amsden <zach@vmware.com>
diff -r dba7b8b8e43d include/asm-i386/paravirt.h
--- a/include/asm-i386/paravirt.h Thu Apr 19 16:12:02 2007 -0700
+++ b/include/asm-i386/paravirt.h Thu Apr 19 16:16:19 2007 -0700
@@ -686,12 +686,12 @@ static inline unsigned long apic_read(un
static inline void setup_boot_clock(void)
{
- PVOP_VCALL0(setup_boot_clock);
+ paravirt_ops.setup_boot_clock();
}
static inline void setup_secondary_clock(void)
{
- PVOP_VCALL0(setup_secondary_clock);
+ paravirt_ops.setup_secondary_clock();
}
#endif
@@ -711,7 +711,7 @@ static inline void startup_ipi_hook(int
static inline void startup_ipi_hook(int phys_apicid, unsigned long start_eip,
unsigned long start_esp)
{
- PVOP_VCALL3(startup_ipi_hook, phys_apicid, start_eip, start_esp);
+ paravirt_ops.startup_ipi_hook(phys_apicid, start_eip, start_esp);
}
#endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC, PATCH 4/5] Paravirt_ops drop internal patches.patch
2007-04-20 1:52 [RFC, PATCH 4/5] Paravirt_ops drop internal patches.patch Zachary Amsden
@ 2007-04-20 5:10 ` Jeremy Fitzhardinge
2007-04-20 5:13 ` Zachary Amsden
0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Fitzhardinge @ 2007-04-20 5:10 UTC (permalink / raw)
To: Zachary Amsden
Cc: Andrew Morton, Petr Vandrovec, Chaz Masden,
Virtualization Mailing List, Chris Wright, Andi Kleen,
Ingo Molnar
Zachary Amsden wrote:
> Some of these boot hooks do not need to be patched, in fact, it is better not
> to patch them at all and thus keep them totally private.
>
I think I generally backed off on patching init functions and the like.
Are these really the only ones which need adjustment? I bet things like
the descriptor functions could be indirect/private with very little impact.
J
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC, PATCH 4/5] Paravirt_ops drop internal patches.patch
2007-04-20 5:10 ` Jeremy Fitzhardinge
@ 2007-04-20 5:13 ` Zachary Amsden
0 siblings, 0 replies; 3+ messages in thread
From: Zachary Amsden @ 2007-04-20 5:13 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: Andrew Morton, Petr Vandrovec, Chaz Masden,
Virtualization Mailing List, Chris Wright, Andi Kleen,
Ingo Molnar
Jeremy Fitzhardinge wrote:
> Zachary Amsden wrote:
>
>> Some of these boot hooks do not need to be patched, in fact, it is better not
>> to patch them at all and thus keep them totally private.
>>
>>
>
> I think I generally backed off on patching init functions and the like.
> Are these really the only ones which need adjustment? I bet things like
> the descriptor functions could be indirect/private with very little impact.
>
Perhaps, but I'd rather not split hairs on it just yet - I actually have
no idea exactly which paravirt-ops will be needed, and so far, my
conclusions have led me to believe that a fare bit more than the obvious
paravirt-ops need to be available to modules. So I would rather just
split off pure init functions, which really have no business being
exported to modules.
Zach
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-20 5:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 1:52 [RFC, PATCH 4/5] Paravirt_ops drop internal patches.patch Zachary Amsden
2007-04-20 5:10 ` Jeremy Fitzhardinge
2007-04-20 5:13 ` Zachary Amsden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).