Commit 44401a2
KVM: Optimize overlapping memslots check
Do a quick lookup for possibly overlapping gfns when creating or moving
a memslot instead of performing a linear scan of the whole memslot set.
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
[sean: tweaked params to avoid churn in future cleanup]
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <a4795e5c2f624754e9c0aab023ebda1966feb3e1.1638817641.git.maciej.szmigiero@oracle.com>1 parent f420943 commit 44401a2
1 file changed
+22
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
1818 | 1831 | | |
1819 | 1832 | | |
1820 | 1833 | | |
| |||
1826 | 1839 | | |
1827 | 1840 | | |
1828 | 1841 | | |
1829 | | - | |
| 1842 | + | |
1830 | 1843 | | |
| 1844 | + | |
1831 | 1845 | | |
1832 | 1846 | | |
1833 | 1847 | | |
| |||
1856 | 1870 | | |
1857 | 1871 | | |
1858 | 1872 | | |
| 1873 | + | |
| 1874 | + | |
1859 | 1875 | | |
1860 | 1876 | | |
1861 | 1877 | | |
1862 | 1878 | | |
1863 | | - | |
| 1879 | + | |
1864 | 1880 | | |
1865 | 1881 | | |
1866 | 1882 | | |
| |||
1909 | 1925 | | |
1910 | 1926 | | |
1911 | 1927 | | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1924 | 1932 | | |
1925 | 1933 | | |
1926 | 1934 | | |
| |||
0 commit comments