@@ -1520,9 +1520,6 @@ int gmap_shadow_r2t(struct gmap *sg, unsigned long saddr, unsigned long r2t,
1520
1520
page = gmap_alloc_crst ();
1521
1521
if (!page )
1522
1522
return - ENOMEM ;
1523
- page -> index = r2t & _REGION_ENTRY_ORIGIN ;
1524
- if (fake )
1525
- page -> index |= GMAP_SHADOW_FAKE_TABLE ;
1526
1523
s_r2t = page_to_phys (page );
1527
1524
/* Install shadow region second table */
1528
1525
spin_lock (& sg -> guest_table_lock );
@@ -1603,9 +1600,6 @@ int gmap_shadow_r3t(struct gmap *sg, unsigned long saddr, unsigned long r3t,
1603
1600
page = gmap_alloc_crst ();
1604
1601
if (!page )
1605
1602
return - ENOMEM ;
1606
- page -> index = r3t & _REGION_ENTRY_ORIGIN ;
1607
- if (fake )
1608
- page -> index |= GMAP_SHADOW_FAKE_TABLE ;
1609
1603
s_r3t = page_to_phys (page );
1610
1604
/* Install shadow region second table */
1611
1605
spin_lock (& sg -> guest_table_lock );
@@ -1686,9 +1680,6 @@ int gmap_shadow_sgt(struct gmap *sg, unsigned long saddr, unsigned long sgt,
1686
1680
page = gmap_alloc_crst ();
1687
1681
if (!page )
1688
1682
return - ENOMEM ;
1689
- page -> index = sgt & _REGION_ENTRY_ORIGIN ;
1690
- if (fake )
1691
- page -> index |= GMAP_SHADOW_FAKE_TABLE ;
1692
1683
s_sgt = page_to_phys (page );
1693
1684
/* Install shadow region second table */
1694
1685
spin_lock (& sg -> guest_table_lock );
0 commit comments