Skip to contentSkip to conversation

shared_info setup

DISCUSSION Jan Beulich 2 participants 2 messages Jun 2, 2006

lore
Share & tools
lore
#0 lore raw

Isn't the comparison in the two places where HYPERVISOR_shared_info gets set up wrong in comparing a machine (=physical) address to a page count? I.e., shouldn't either it or nr_pages be shifted by PAGE_SHIFT? Jan

#1 lore raw
Quoted 2 lines · Jan Beulich

Isn't the comparison in the two places where HYPERVISOR_shared_info gets set up wrong in comparing a machine (=physical) address to a page count? I.e., shouldn't either it or nr_pages be shifted by PAGE_SHIFT? Jan

I think so. But I think actually the place that sets up without using fixmap could probably be got rid of -- although in that case there is no need to use fixmap, since we have the fixmap entry and the code to fill it in, we may as well do that in all cases.

-- Keir