Commit 0f9bdef
KVM: Wait 'til the bitter end to initialize the "new" memslot
Initialize the "new" memslot in the !DELETE path only after the various
sanity checks have passed. This will allow a future commit to allocate
@new dynamically without having to copy a memslot, and without having to
deal with freeing @new in error paths and in the "nothing to change" path
that's hiding in the sanity checks.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <a084d0531ca3a826a7f861eb2b08b5d1c06ef265.1638817641.git.maciej.szmigiero@oracle.com>1 parent 44401a2 commit 0f9bdef
1 file changed
+20
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
| 1846 | + | |
| 1847 | + | |
1846 | 1848 | | |
1847 | 1849 | | |
1848 | 1850 | | |
| |||
1869 | 1871 | | |
1870 | 1872 | | |
1871 | 1873 | | |
| 1874 | + | |
| 1875 | + | |
1872 | 1876 | | |
1873 | 1877 | | |
1874 | 1878 | | |
| |||
1892 | 1896 | | |
1893 | 1897 | | |
1894 | 1898 | | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
| 1899 | + | |
| 1900 | + | |
1904 | 1901 | | |
1905 | 1902 | | |
1906 | 1903 | | |
| |||
1909 | 1906 | | |
1910 | 1907 | | |
1911 | 1908 | | |
1912 | | - | |
| 1909 | + | |
1913 | 1910 | | |
1914 | 1911 | | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
1918 | 1915 | | |
1919 | 1916 | | |
1920 | | - | |
| 1917 | + | |
1921 | 1918 | | |
1922 | | - | |
| 1919 | + | |
1923 | 1920 | | |
1924 | 1921 | | |
1925 | 1922 | | |
1926 | 1923 | | |
1927 | 1924 | | |
1928 | 1925 | | |
1929 | | - | |
1930 | | - | |
| 1926 | + | |
1931 | 1927 | | |
1932 | 1928 | | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1933 | 1936 | | |
1934 | 1937 | | |
1935 | 1938 | | |
| |||
0 commit comments