Skip to contentSkip to conversation

Patching instructions with PV versions

DISCUSSION Dushyant Bansal 2 participants 3 messages Feb 26, 2011 – Mar 2, 2011

lore
Share & tools
lore
#0 lore raw

Hi,
I understand that in order to improve performance by reducing vm
exits, kvm uses one shared page between kvm and guest. Now, guest can map this page and access its fields using load, store instructions. Then, it patches instructions with their paravirtualized versions (inside kvm_use_magic_page). I have a few questions.
Is patching, by default enabled for every guest?
When is this patching done? Does it target only guest kernel code?

Thanks,
Dushyant

#1 lore raw

Hi Dushyant,
Please refer to the magic page section of the following document:
linux/Documentation/kvm/ppc-pv.txt

Regards
Varun
________________________________________
From: [email protected] [[email protected]] on behalf of Dushyant Bansal [[email protected]]
Sent: Saturday, February 26, 2011 5:35 PM
To: [email protected]
Subject: Patching instructions with PV versions

Hi,
I understand that in order to improve performance by reducing vm
exits, kvm uses one shared page between kvm and guest. Now, guest can map this page and access its fields using load, store instructions. Then, it patches instructions with their paravirtualized versions (inside kvm_use_magic_page). I have a few questions.
Is patching, by default enabled for every guest?
When is this patching done? Does it target only guest kernel code?

Thanks,
Dushyant
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Dushyant Bansal
Quoted 4 lines · On Monday 28 February 2011 07:43 PM, Sethi Varun-B16395 wrote:

Hi Dushyant,
Please refer to the magic page section of the following document:
linux/Documentation/kvm/ppc-pv.txt

Thanks, now I do have a better understanding.

Quoted 30 lines

Regards
Varun
________________________________________
From: [email protected] [[email protected]] on behalf of Dushyant Bansal [[email protected]]
Sent: Saturday, February 26, 2011 5:35 PM
To: [email protected]
Subject: Patching instructions with PV versions

Hi,
I understand that in order to improve performance by reducing vm
exits, kvm uses one shared page between kvm and guest. Now, guest can map this page and access its fields using load, store instructions. Then, it patches instructions with their paravirtualized versions (inside kvm_use_magic_page). I have a few questions.
Is patching, by default enabled for every guest?
When is this patching done? Does it target only guest kernel code?

Thanks,
Dushyant
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html